diff --git a/.openapi-generator-ignore b/.openapi-generator-ignore index 775a0a4..45141b6 100644 --- a/.openapi-generator-ignore +++ b/.openapi-generator-ignore @@ -24,10 +24,16 @@ build.gradle -src/main/java/org/openapitools/client/model/FilterType.java README.md settings.gradle -#the api client contains the custom code for static initialization from the json file src/main/java/io/tiledb/cloud/TileDBClient.java -src/main/java/io/tiledb/cloud/Login.java +src/main/java/io/tiledb/cloud/TileDBLogin.java +src/main/java/io/tiledb/cloud/TileDBSQL.java +src/main/java/io/tiledb/cloud/TileDBUDF.java +src/main/java/io/tiledb/cloud/TileDBUtils.java +src/main/java/io/tiledb/cloud/Pair.java +src/main/java/io/tiledb/cloud/CustomCode.txt + + + diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 2b98d07..9d414f7 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -1,7 +1,5 @@ -.github/workflows/maven.yml .gitignore .travis.yml -README.md api/openapi.yaml build.sbt docs/AWSAccessCredentials.md @@ -12,6 +10,7 @@ docs/ArrayActivityLog.md docs/ArrayApi.md docs/ArrayBrowserData.md docs/ArrayBrowserSidebar.md +docs/ArrayConsolidationRequest.md docs/ArrayEndTimestampData.md docs/ArrayFavorite.md docs/ArrayFavoritesData.md @@ -30,15 +29,22 @@ docs/ArrayTaskStatus.md docs/ArrayTaskType.md docs/ArrayTasksApi.md docs/ArrayType.md +docs/ArrayVacuumRequest.md +docs/AssetLocations.md +docs/AssetType.md docs/Attribute.md docs/AttributeBufferHeader.md docs/AttributeBufferSize.md +docs/Backoff.md docs/Datatype.md docs/Dimension.md docs/DimensionCoordinate.md docs/DimensionTileExtent.md docs/Domain.md docs/DomainArray.md +docs/DomainCheckResult.md +docs/DomainCheckStatus.md +docs/DomainVerificationStatus.md docs/Error.md docs/FavoritesApi.md docs/FileCreate.md @@ -54,9 +60,15 @@ docs/FilterData.md docs/FilterOption.md docs/FilterPipeline.md docs/FilterType.md +docs/FragmentInfo.md +docs/FragmentInfoRequest.md +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 @@ -71,12 +83,16 @@ docs/GroupMemberType.md docs/GroupRegister.md docs/GroupSharing.md docs/GroupSharingRequest.md +docs/GroupType.md +docs/GroupTypeMetadataKey.md docs/GroupUpdate.md docs/GroupsApi.md docs/Invitation.md docs/InvitationApi.md docs/InvitationArrayShareEmail.md docs/InvitationData.md +docs/InvitationFailedRecipients.md +docs/InvitationGroupShareEmail.md docs/InvitationOrganizationJoinEmail.md docs/InvitationStatus.md docs/InvitationType.md @@ -116,25 +132,35 @@ docs/Querystatus.md docs/Querytype.md docs/ReadState.md docs/RegisteredTaskGraph.md -docs/RegisteredTaskGraphNode.md docs/RegisteredTaskGraphsApi.md docs/ResetUserPasswordRequest.md docs/ResultFormat.md +docs/RetryPolicy.md +docs/RetryStrategy.md docs/SQLParameters.md +docs/SSODomainConfig.md +docs/SSODomainConfigResponse.md +docs/SSODomainSetup.md docs/SSOProvider.md +docs/SingleFragmentInfo.md docs/SqlApi.md docs/StatsApi.md +docs/StorageLocation.md docs/Subarray.md docs/SubarrayPartitioner.md docs/SubarrayPartitionerCurrent.md docs/SubarrayPartitionerState.md docs/SubarrayRanges.md docs/Subscription.md +docs/TGArrayNodeData.md docs/TGInputNodeData.md +docs/TGQueryRanges.md docs/TGSQLNodeData.md docs/TGUDFArgument.md docs/TGUDFEnvironment.md +docs/TGUDFEnvironmentResources.md docs/TGUDFNodeData.md +docs/TaskGraph.md docs/TaskGraphActions.md docs/TaskGraphClientNodeStatus.md docs/TaskGraphLog.md @@ -142,10 +168,15 @@ docs/TaskGraphLogRunLocation.md docs/TaskGraphLogStatus.md docs/TaskGraphLogsApi.md docs/TaskGraphLogsData.md +docs/TaskGraphNode.md docs/TaskGraphNodeMetadata.md docs/TaskGraphSharing.md +docs/TaskGraphType.md +docs/TaskGraphs.md +docs/TaskGraphsApi.md docs/TasksApi.md docs/TileDBConfig.md +docs/TileDBConfigEntriesInner.md docs/Token.md docs/TokenRequest.md docs/TokenScope.md @@ -175,7 +206,6 @@ gradle/wrapper/gradle-wrapper.properties gradlew gradlew.bat pom.xml -settings.gradle src/main/AndroidManifest.xml src/main/java/org/openapitools/client/ApiCallback.java src/main/java/org/openapitools/client/ApiClient.java @@ -204,6 +234,7 @@ 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 @@ -223,6 +254,7 @@ 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 @@ -240,15 +272,22 @@ 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 @@ -261,9 +300,16 @@ 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 @@ -278,10 +324,14 @@ 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 @@ -317,31 +367,45 @@ 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/RegisteredTaskGraphNode.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 @@ -362,3 +426,200 @@ 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 diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index 6d54bbd..358e78e 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -6.0.1 \ No newline at end of file +6.1.0 \ No newline at end of file diff --git a/api/openapi.yaml b/api/openapi.yaml deleted file mode 100644 index 9f52a54..0000000 --- a/api/openapi.yaml +++ /dev/null @@ -1,16747 +0,0 @@ -openapi: 3.0.1 -info: - description: TileDB Storage Platform REST API - title: TileDB Storage Platform API - version: 2.2.19 -servers: -- url: /v1 -security: -- BasicAuth: [] -- ApiKeyAuth: [] -paths: - /.stats: - get: - description: Fetch libtiledb stat - operationId: getTiledbStats - responses: - "200": - content: - application/json: - example: - stats: "123" - schema: - $ref: '#/components/schemas/getTiledbStats_200_response' - description: stats - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - stats - x-accepts: application/json - /arrays: - get: - description: get all array metadata user has access to - operationId: getAllArrayMetadata - parameters: - - description: "Public share values can be one of exclude, only" - in: query - name: public_share - schema: - type: string - responses: - "200": - content: - application/json: - schema: - items: - $ref: '#/components/schemas/ArrayInfo' - type: array - description: array metadata for all arrays user has access to - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - array - x-accepts: application/json - /arrays/{namespace}: - get: - description: get metadata on all arrays in a namespace - operationId: getArraysInNamespace - parameters: - - description: namespace array is in (an organization name or user's username) - in: path - name: namespace - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - items: - $ref: '#/components/schemas/ArrayInfo' - type: array - description: array metadata for all arrays in a namespace - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - array - x-accepts: application/json - /arrays/{namespace}/{array}: - delete: - description: delete a array - operationId: deleteArray - parameters: - - description: namespace array is in (an organization name or user's username) - in: path - name: namespace - required: true - schema: - type: string - - description: name/uri of array that is url-encoded - in: path - name: array - required: true - schema: - type: string - - description: Content Type of input and return mime - in: header - name: Content-Type - required: true - schema: - default: application/json - type: string - responses: - "204": - content: {} - description: delete array successful - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - array - x-accepts: application/json - get: - description: get an ArraySchema using a url encoded uri - operationId: getArray - parameters: - - description: namespace array is in (an organization name or user's username) - in: path - name: namespace - required: true - schema: - type: string - - description: name/uri of array that is url-encoded - in: path - name: array - required: true - schema: - type: string - - description: Content Type of input and return mime - in: header - name: Content-Type - required: true - schema: - default: application/json - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ArraySchema' - application/capnp: - schema: - $ref: '#/components/schemas/ArraySchema' - description: get ArraySchema - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - application/capnp: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - array - x-accepts: application/json - post: - description: create a array schema at a specified URI registered to a group/project - operationId: createArray - parameters: - - description: namespace array is in (an organization name or user's username) - in: path - name: namespace - required: true - schema: - type: string - - description: name/uri of array that is url-encoded - in: path - name: array - required: true - schema: - type: string - - description: Content Type of input and return mime - in: header - name: Content-Type - required: true - schema: - default: application/json - type: string - - description: Optional registered access credentials to use for creation - in: header - name: X-TILEDB-CLOUD-ACCESS-CREDENTIALS-NAME - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ArraySchema' - description: ArraySchema being created - required: true - responses: - "204": - content: {} - description: schema created successfully - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - array - x-codegen-request-body-name: ArraySchema - x-content-type: application/json - x-accepts: application/json - /arrays/{namespace}/{array}/activity: - get: - description: get array activity logs - operationId: arrayActivityLog - parameters: - - description: namespace array is in (an organization name or user's username) - in: path - name: namespace - required: true - schema: - type: string - - description: name/uri of array that is url-encoded - in: path - name: array - required: true - schema: - type: string - - description: "Start time of window of fetch logs, unix epoch in seconds (default:\ - \ seven days ago)" - in: query - name: start - schema: - format: uint64 - type: integer - - description: "End time of window of fetch logs, unix epoch in seconds (default:\ - \ current utc timestamp)" - in: query - name: end - schema: - format: uint64 - type: integer - - description: "Event values can be one or more of the following read, write,\ - \ create, delete, register, deregister, comma separated" - in: query - name: event_types - schema: - type: string - - description: Array task ID To filter activity to - in: query - name: task_id - schema: - type: string - - description: Excludes activity log results that do not contain an array task - UUID - in: query - name: has_task_id - schema: - type: boolean - responses: - "200": - content: - application/json: - schema: - items: - $ref: '#/components/schemas/ArrayActivityLog' - type: array - description: log of array activity - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - array - x-accepts: application/json - /arrays/{namespace}/{array}/activity/{id}: - get: - description: get activity log by ID - operationId: getActivityLogById - parameters: - - description: namespace array is in (an organization name or user's username) - in: path - name: namespace - required: true - schema: - type: string - - description: name/uri of array that is url-encoded - in: path - name: array - required: true - schema: - type: string - - description: ID of the activity - in: path - name: id - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ArrayActivityLog' - description: array activity - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - array - x-accepts: application/json - /arrays/{namespace}/{array}/deregister: - delete: - description: deregister a array - operationId: deregisterArray - parameters: - - description: namespace array is in (an organization name or user's username) - in: path - name: namespace - required: true - schema: - type: string - - description: name/uri of array that is url-encoded - in: path - name: array - required: true - schema: - type: string - responses: - "204": - content: {} - description: deregistered array successful - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - array - x-accepts: application/json - /arrays/{namespace}/{array}/array_metadata: - get: - description: get metadata on an array - operationId: getArrayMetadataCapnp - parameters: - - description: namespace array is in (an organization name or user's username) - in: path - name: namespace - required: true - schema: - type: string - - description: name/uri of array that is url-encoded - in: path - name: array - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ArrayMetadata' - application/capnp: - schema: - $ref: '#/components/schemas/ArrayMetadata' - description: array metadata for an array - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - application/capnp: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - array - x-accepts: application/json - post: - description: update metadata on an array - operationId: updateArrayMetadataCapnp - parameters: - - description: namespace array is in (an organization name or user's username) - in: path - name: namespace - required: true - schema: - type: string - - description: name/uri of array that is url-encoded - in: path - name: array - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ArrayMetadata' - application/capnp: - schema: - $ref: '#/components/schemas/ArrayMetadata' - description: List of metadata entries - required: true - responses: - "200": - content: {} - description: array metadata updated successfully - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - application/capnp: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - array - x-codegen-request-body-name: arrayMetadataEntries - x-content-type: application/json - x-accepts: application/json - /arrays/{namespace}/{array}/metadata: - get: - description: get metadata on an array - operationId: getArrayMetadata - parameters: - - description: namespace array is in (an organization name or user's username) - in: path - name: namespace - required: true - schema: - type: string - - description: name/uri of array that is url-encoded - in: path - name: array - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ArrayInfo' - description: array metadata for an array - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - array - x-accepts: application/json - patch: - description: update metadata on an array - operationId: updateArrayMetadata - parameters: - - description: namespace array is in (an organization name or user's username) - in: path - name: namespace - required: true - schema: - type: string - - description: name/uri of array that is url-encoded - in: path - name: array - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ArrayInfoUpdate' - description: array metadata to update - required: true - responses: - "204": - content: {} - description: array metadata updated successfully - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - array - x-codegen-request-body-name: array_metadata - x-content-type: application/json - x-accepts: application/json - /arrays/{namespace}/{array}/fragment_end_timestamp: - get: - description: "Get fragment end_timestamp on an array, will search for the closest\ - \ end_timestamp to the timestamp asked" - operationId: getFragmentEndTimestamp - parameters: - - description: namespace array is in (an organization name or user's username) - in: path - name: namespace - required: true - schema: - type: string - - description: name/uri of array that is url-encoded - in: path - name: array - required: true - schema: - type: string - - description: Milliseconds since Unix epoch - in: query - name: end_timestamp - schema: - format: uint64 - type: integer - responses: - "200": - content: - application/json: - schema: - description: "Milliseconds since Unix epoch, end_timestamp of selected\ - \ fragment or latest timestamp if input timestamp is omitted" - format: uint64 - type: integer - description: fragment end_timestamp on an array - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - array - x-accepts: application/json - /arrays/{namespace}/{array}/register: - post: - description: register an array at a specified URI registered to the given namespace - operationId: registerArray - parameters: - - description: namespace array is in (an organization name or user's username) - in: path - name: namespace - required: true - schema: - type: string - - description: name/uri of array that is url-encoded - in: path - name: array - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ArrayInfoUpdate' - description: metadata associated with array - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ArrayInfo' - description: array registered successfully - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - array - x-codegen-request-body-name: array_metadata - x-content-type: application/json - x-accepts: application/json - /arrays/{namespace}/{array}/consolidate: - post: - description: consolidate an array at a specified URI - operationId: consolidateArray - parameters: - - description: namespace array is in (an organization name or user's username) - in: path - name: namespace - required: true - schema: - type: string - - description: name/uri of array that is url-encoded - in: path - name: array - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/TileDBConfig' - description: tiledb configuration - required: true - responses: - "204": - content: {} - description: array consolidated successfully - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - array - x-codegen-request-body-name: tiledb_config - x-content-type: application/json - x-accepts: application/json - /arrays/{namespace}/{array}/vacuum: - post: - description: vacuum an array at a specified URI - operationId: vacuumArray - parameters: - - description: namespace array is in (an organization name or user's username) - in: path - name: namespace - required: true - schema: - type: string - - description: name/uri of array that is url-encoded - in: path - name: array - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/TileDBConfig' - description: tiledb configuration - required: true - responses: - "204": - content: {} - description: array vacuumed successfully - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - array - x-codegen-request-body-name: tiledb_config - x-content-type: application/json - x-accepts: application/json - /arrays/{namespace}/{array}/share: - get: - description: Get all sharing details of the array - operationId: getArraySharingPolicies - parameters: - - description: namespace array is in (an organization name or user's username) - in: path - name: namespace - required: true - schema: - type: string - - description: name/uri of array that is url-encoded - in: path - name: array - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - items: - $ref: '#/components/schemas/ArraySharing' - type: array - description: List of all specific sharing policies - "404": - content: {} - description: Array does not exist or user does not have permissions to view - array-sharing policies - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - array - x-accepts: application/json - patch: - description: Share an array with a user - operationId: shareArray - parameters: - - description: namespace array is in (an organization name or user's username) - in: path - name: namespace - required: true - schema: - type: string - - description: name/uri of array that is url-encoded - in: path - name: array - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ArraySharing' - description: "Namespace and list of permissions to share with. An empty list\ - \ of permissions will remove the namespace; if permissions already exist\ - \ they will be deleted then new ones added. In the event of a failure, the\ - \ new policies will be rolled back to prevent partial policies, and it's\ - \ likely the array will not be shared with the namespace at all." - required: true - responses: - "204": - content: {} - description: Array shared successfully - "404": - content: {} - description: Array does not exist or user does not have permissions to share - array - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - array - x-codegen-request-body-name: array_sharing - x-content-type: application/json - x-accepts: application/json - /arrays/{namespace}/{array}/non_empty_domain: - get: - description: get the non empty domain of an array - operationId: getArrayNonEmptyDomain - parameters: - - description: namespace array is in (an organization name or user's username) - in: path - name: namespace - required: true - schema: - type: string - - description: name/uri of array that is url-encoded - in: path - name: array - required: true - schema: - type: string - - description: Content Type of input and return mime - in: header - name: Content-Type - required: true - schema: - default: application/json - type: string - - description: Name of organization or user who should be charged for this request - in: header - name: X-Payer - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/NonEmptyDomain' - description: get the non empty domain of an array - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - array - x-accepts: application/json - /arrays/{namespace}/{array}/max_buffer_sizes: - get: - description: get the max buffer sizes of an array for a subarray - operationId: getArrayMaxBufferSizes - parameters: - - description: namespace array is in (an organization name or user's username) - in: path - name: namespace - required: true - schema: - type: string - - description: name/uri of array that is url-encoded - in: path - name: array - required: true - schema: - type: string - - description: CSV string of subarray to get max buffer sizes for - in: query - name: subarray - required: true - schema: - type: string - - description: Content Type of input and return mime - in: header - name: Content-Type - required: true - schema: - default: application/json - type: string - - description: Name of organization or user who should be charged for this request - in: header - name: X-Payer - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/MaxBufferSizes' - description: get the max buffer sizes of an array for a subarray - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - array - x-accepts: application/json - /arrays/{namespace}/{array}/udf/submit: - post: - description: send a UDF to run against a specified array/URI registered to a - group/project - operationId: submitUDF - parameters: - - description: namespace array is in (an organization name or user's username) - in: path - name: namespace - required: true - schema: - type: string - - description: name/uri of array that is url-encoded - in: path - name: array - required: true - schema: - type: string - - description: Name of organization or user who should be charged for this request - in: header - name: X-Payer - schema: - type: string - - description: Encoding to use - in: header - name: Accept-Encoding - schema: - type: string - - description: "flag to indicate if v2 array UDFs should be used, currently\ - \ in beta testing. Setting any value will enable v2 array UDFs." - in: query - name: v2 - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/MultiArrayUDF' - description: UDF to run - required: true - responses: - "200": - content: - application/octet-stream: - schema: - format: binary - type: string - description: UDF completed and the UDF-type specific result is returned - headers: - X-TILEDB-CLOUD-TASK-ID: - description: Task ID for just completed request - schema: - type: string - default: - content: - application/octet-stream: - schema: - $ref: '#/components/schemas/Error' - description: error response - headers: - X-TILEDB-CLOUD-TASK-ID: - description: Task ID for just request if task was started - schema: - type: string - tags: - - udf - x-codegen-request-body-name: udf - x-content-type: application/json - x-accepts: application/octet-stream - /arrays/{namespace}/{array}/query/submit: - post: - description: send a query to run against a specified array/URI registered to - a group/project - operationId: submitQuery - parameters: - - description: namespace array is in (an organization name or user's username) - in: path - name: namespace - required: true - schema: - type: string - - description: name/uri of array that is url-encoded - in: path - name: array - required: true - schema: - type: string - - description: type of query - in: query - name: type - required: true - schema: - type: string - - description: Content Type of input and return mime - in: header - name: Content-Type - required: true - schema: - default: application/json - type: string - - description: Name of organization or user who should be charged for this request - in: header - name: X-Payer - schema: - type: string - - description: open_at for array in unix epoch - in: query - name: open_at - schema: - format: uint64 - type: integer - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/Query' - application/capnp: - schema: - $ref: '#/components/schemas/Query' - description: query to run - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/Query' - application/capnp: - schema: - $ref: '#/components/schemas/Query' - description: query completed and results are returned in query object - headers: - X-TILEDB-CLOUD-TASK-ID: - description: Task ID for just completed query - schema: - type: string - "204": - content: {} - description: query completed successfully with no return - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - application/capnp: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - query - x-codegen-request-body-name: query - x-content-type: application/json - x-accepts: application/json - /arrays/{namespace}/{array}/query/submit_query_json: - post: - description: "send a query to run against a specified array/URI registered to\ - \ a group/project, returns JSON results" - operationId: submitQueryJson - parameters: - - description: namespace array is in (an organization name or user's username) - in: path - name: namespace - required: true - schema: - type: string - - description: name/uri of array that is url-encoded - in: path - name: array - required: true - schema: - type: string - - description: Content Type of input and return mime - in: header - name: Content-Type - required: true - schema: - default: application/json - type: string - - description: Name of organization or user who should be charged for this request - in: header - name: X-Payer - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/QueryJson' - description: query to run - required: true - responses: - "200": - content: - application/json: - example: - data: "{\"a1\":[0,1,2,3,0,1,2,3]}" - schema: - type: object - description: query completed and results are returned in JSON format - headers: - X-TILEDB-CLOUD-TASK-ID: - description: Task ID for just completed query - schema: - type: string - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - query - x-codegen-request-body-name: queryJson - x-content-type: application/json - x-accepts: application/json - /arrays/{namespace}/{array}/query/get_file: - get: - description: "send a query to run against a specified array/URI registered to\ - \ a group/project, returns file bytes" - operationId: getFile - parameters: - - description: namespace array is in (an organization name or user's username) - in: path - name: namespace - required: true - schema: - type: string - - description: name/uri of array that is url-encoded - in: path - name: array - required: true - schema: - type: string - - description: Content Type of input and return mime - in: header - name: Content-Type - required: true - schema: - default: application/json - type: string - - description: Name of organization or user who should be charged for this request - in: header - name: X-Payer - schema: - type: string - responses: - "200": - content: - application/x-ipynb+json: - example: "{data=abcd}" - schema: - format: binary - type: string - description: query completed and result bytes are returned - headers: - X-TILEDB-CLOUD-TASK-ID: - description: Task ID for just completed query - schema: - type: string - default: - content: - application/x-ipynb+json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - query - x-accepts: application/x-ipynb+json - /arrays/{namespace}/{array}/query/finalize: - post: - description: send a query to run against a specified array/URI registered to - a group/project - operationId: finalizeQuery - parameters: - - description: namespace array is in (an organization name or user's username) - in: path - name: namespace - required: true - schema: - type: string - - description: name/uri of array that is url-encoded - in: path - name: array - required: true - schema: - type: string - - description: type of query - in: query - name: type - required: true - schema: - type: string - - description: Content Type of input and return mime - in: header - name: Content-Type - required: true - schema: - default: application/json - type: string - - description: Name of organization or user who should be charged for this request - in: header - name: X-Payer - schema: - type: string - - description: open_at for array in unix epoch - in: query - name: open_at - schema: - format: uint64 - type: integer - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/Query' - application/capnp: - schema: - $ref: '#/components/schemas/Query' - description: query to run - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/Query' - application/capnp: - schema: - $ref: '#/components/schemas/Query' - description: query completed and results are returned in query object - headers: - X-TILEDB-CLOUD-TASK-ID: - description: Task ID for just completed query - schema: - type: string - "204": - content: {} - description: query completed successfully with no return - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - application/capnp: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - query - x-codegen-request-body-name: query - x-content-type: application/json - x-accepts: application/json - /arrays/{namespace}/{array}/query/est_result_sizes: - post: - description: send a query to run against a specified array/URI registered to - a group/project - operationId: getEstResultSizes - parameters: - - description: namespace array is in (an organization name or user's username) - in: path - name: namespace - required: true - schema: - type: string - - description: name/uri of array that is url-encoded - in: path - name: array - required: true - schema: - type: string - - description: type of query - in: query - name: type - required: true - schema: - type: string - - description: Content Type of input and return mime - in: header - name: Content-Type - required: true - schema: - default: application/json - type: string - - description: Name of organization or user who should be charged for this request - in: header - name: X-Payer - schema: - type: string - - description: open_at for array in unix epoch - in: query - name: open_at - schema: - format: uint64 - type: integer - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/Query' - application/capnp: - schema: - $ref: '#/components/schemas/Query' - description: query to run - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/Query' - application/capnp: - schema: - $ref: '#/components/schemas/Query' - description: query est result size computed and results are returned in - query object - headers: - X-TILEDB-CLOUD-TASK-ID: - description: Task ID for just computed query result size - schema: - type: string - "204": - content: {} - description: query completed successfully with no return - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - application/capnp: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - query - x-codegen-request-body-name: query - x-content-type: application/json - x-accepts: application/json - /arrays/{namespace}/{array}/sample: - get: - description: get an sample set of data from the array - operationId: getArraySampleData - parameters: - - description: namespace array is in (an organization name or user's username) - in: path - name: namespace - required: true - schema: - type: string - - description: name/uri of array that is url-encoded - in: path - name: array - required: true - schema: - type: string - - description: Number of sample results to return - in: query - name: samples - schema: - default: 5.0 - format: uint8 - type: number - responses: - "200": - content: - application/json: - example: - dim1: - - 1 - - 2 - - 3 - - 1 - - 2 - dim2: - - 1 - - 1 - - 1 - - 2 - - 2 - attribute1: - - 1 - - 2 - - 3 - - 4 - - 5 - attribute2: - - test1 - - test2 - - test3 - - test4 - - test5 - schema: - $ref: '#/components/schemas/ArraySample' - description: get array sample data - default: - content: - application/json: - example: - message: Error try again - code: 1 - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - array - x-accepts: application/json - /arrays/{namespace}/{array}/metadata_json: - get: - description: get metadata from the array in JSON format - operationId: getArrayMetaDataJson - parameters: - - description: namespace array is in (an organization name or user's username) - in: path - name: namespace - required: true - schema: - type: string - - description: name/uri of array that is url-encoded - in: path - name: array - required: true - schema: - type: string - - description: (optional) limit character length of returned values - in: query - name: length - schema: - type: integer - - description: "Milliseconds since Unix epoch, metadata will use open_at functionality\ - \ to open array at the specific timestamp" - in: query - name: end_timestamp - schema: - format: uint64 - type: integer - responses: - "200": - content: - application/json: - example: - key1: 25 - key2: - - 25 - - 26 - - 27 - - 28 - key3: 25.1 - key4: - - 25.1 - - 26.2 - - 27.3 - - 28.4 - key5: This is TileDB array metadata - schema: - $ref: '#/components/schemas/ArrayMetadataJson' - description: get array metadata - default: - content: - application/json: - example: - message: Error try again - code: 1 - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - array - x-accepts: application/json - /arrays/{namespace}/{array}/non_empty_domain_json: - get: - description: get non-empty domain from the array in json format - operationId: getArrayNonEmptyDomainJson - parameters: - - description: namespace array is in (an organization name or user's username) - in: path - name: namespace - required: true - schema: - type: string - - description: name/uri of array that is url-encoded - in: path - name: array - required: true - schema: - type: string - responses: - "200": - content: - application/json: - example: - dim1: - - 1 - - 20 - dim2: - - a - - c - schema: - $ref: '#/components/schemas/NonEmptyDomainJson' - description: get array non-empty domaim - default: - content: - application/json: - example: - message: Error try again - code: 1 - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - array - x-accepts: application/json - /arrays/{namespace}/{array}/end_timestamps: - get: - description: "retrieve a list of timestamps from the array fragment info listing\ - \ in milliseconds, paginated" - parameters: - - description: namespace array is in (an organization name or user's username) - in: path - name: namespace - required: true - schema: - type: string - - description: name/uri of array that is url-encoded - in: path - name: array - required: true - schema: - type: string - - description: pagination offset - in: query - name: page - schema: - type: integer - - description: pagination limit - in: query - name: per_page - schema: - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ArrayEndTimestampData' - description: "list of timestamps in milliseconds, paginated" - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - array - x-accepts: application/json - /arrays/last_accessed: - get: - operationId: getLastAccessedArrays - responses: - "200": - content: - application/json: - schema: - items: - $ref: '#/components/schemas/LastAccessedArray' - type: array - description: gets last accessed arrays - default: - content: - application/json: - example: - message: Error try again - code: 1 - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - array - x-accepts: application/json - /user: - get: - description: get a user - operationId: getUser - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/User' - description: user details - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - user - x-accepts: application/json - post: - description: create a user - operationId: createUser - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/User' - description: user to create - required: true - responses: - "204": - content: {} - description: user created successfully - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - user - x-codegen-request-body-name: user - x-content-type: application/json - x-accepts: application/json - /user/password_reset: - post: - description: reset user password - operationId: resetUserPassword - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/resetUserPassword_request' - description: password to update for user requesting update - required: true - responses: - "204": - content: {} - description: User password updated successfully - "404": - content: {} - description: User not found - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - user - x-codegen-request-body-name: user - x-content-type: application/json - x-accepts: application/json - /user/confirm_email: - post: - description: confirm user email - operationId: confirmEmail - responses: - "204": - content: {} - description: User email confirmed successfully - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - user - x-accepts: application/json - /users/{username}: - delete: - description: delete a user - operationId: deleteUser - parameters: - - description: username or ID - in: path - name: username - required: true - schema: - type: string - responses: - "204": - content: {} - description: user deleted - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - user - x-accepts: application/json - get: - description: get a user - operationId: getUserWithUsername - parameters: - - description: username or ID - in: path - name: username - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/User' - description: user details - "404": - content: {} - description: User does not exist - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - user - x-accepts: application/json - patch: - description: update a user - operationId: updateUser - parameters: - - description: username or ID - in: path - name: username - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/User' - description: user details to update - required: true - responses: - "204": - content: {} - description: user updated successfully - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - user - x-codegen-request-body-name: user - x-content-type: application/json - x-accepts: application/json - /credentials/{namespace}/aws: - get: - description: Check if aws keys are set - operationId: checkAWSAccessCredentials - parameters: - - description: namespace - in: path - name: namespace - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - items: - $ref: '#/components/schemas/AWSAccessCredentials' - type: array - description: AWS keys are set - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - user - - organization - x-accepts: application/json - post: - description: Add aws keys - operationId: addAWSAccessCredentials - parameters: - - description: namespace - in: path - name: namespace - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AWSAccessCredentials' - description: aws access credentials to store for a namespace - required: true - responses: - "204": - content: {} - description: AWS keys added successfully - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - user - - organization - x-codegen-request-body-name: awsAccessCredentials - x-content-type: application/json - x-accepts: application/json - /credentials/{namespace}/aws/{name}: - delete: - description: delete a AWS Access credentials in a namespace. This will likely - cause arrays to become unreachable - operationId: deleteAWSAccessCredentials - parameters: - - description: namespace - in: path - name: namespace - required: true - schema: - type: string - - description: name - in: path - name: name - required: true - schema: - type: string - responses: - "204": - content: {} - description: AWS credentials deleted - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - user - - organization - x-accepts: application/json - get: - description: Check if aws keys are set by name - operationId: checkAWSAccessCredentialsByName - parameters: - - description: namespace - in: path - name: namespace - required: true - schema: - type: string - - description: name - in: path - name: name - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/AWSAccessCredentials' - description: AWS keys are set - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - user - - organization - x-accepts: application/json - patch: - description: Update aws keys or associated buckets. This will update the key - associations for each array in the namespace - operationId: updateAWSAccessCredentials - parameters: - - description: namespace - in: path - name: namespace - required: true - schema: - type: string - - description: name - in: path - name: name - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AWSAccessCredentials' - description: aws credentials to update - required: true - responses: - "204": - content: {} - description: AWS keys updated successfully - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - user - - organization - x-codegen-request-body-name: awsAccessCredentials - x-content-type: application/json - x-accepts: application/json - /organization: - post: - description: "create a organization, the user creating will be listed as owner" - operationId: createOrganization - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/Organization' - description: organization to create - required: true - responses: - "204": - content: {} - description: organization created successfully - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - organization - x-codegen-request-body-name: organization - x-content-type: application/json - x-accepts: application/json - /organizations: - get: - description: get all organizations that the user is member of - operationId: getAllOrganizations - responses: - "200": - content: - application/json: - schema: - items: - $ref: '#/components/schemas/Organization' - type: array - description: array of organizations the user is member of - "400": - content: {} - description: Error finding organizations - "500": - content: {} - description: "Request user not found, or has empty context" - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - organization - x-accepts: application/json - /organizations/{organization}: - delete: - description: delete a organization - operationId: deleteOrganization - parameters: - - description: organization name or ID - in: path - name: organization - required: true - schema: - type: string - responses: - "204": - content: {} - description: organization deleted - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - organization - x-accepts: application/json - get: - description: get a organization - operationId: getOrganization - parameters: - - description: organization name or ID - in: path - name: organization - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/Organization' - description: organization details - "404": - content: {} - description: Organization does not exist - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - organization - x-accepts: application/json - patch: - description: update a organization - operationId: updateOrganization - parameters: - - description: organization name or ID - in: path - name: organization - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/Organization' - description: organization details to update - required: true - responses: - "204": - content: {} - description: organization updated successfully - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - organization - x-codegen-request-body-name: organizationDetails - x-content-type: application/json - x-accepts: application/json - /organizations/{organization}/user: - post: - description: add a user to an organization - operationId: addUserToOrganization - parameters: - - description: organization name - in: path - name: organization - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/OrganizationUser' - description: user to add - required: true - responses: - "204": - content: {} - description: user added to organization successfully - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - user - - organization - x-codegen-request-body-name: user - x-content-type: application/json - x-accepts: application/json - /organizations/{organization}/{username}: - delete: - description: delete a user from an organization - operationId: deleteUserFromOrganization - parameters: - - description: organization name - in: path - name: organization - required: true - schema: - type: string - - description: username to manipulate - in: path - name: username - required: true - schema: - type: string - responses: - "204": - content: {} - description: user delete from organization successfully - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - user - - organization - x-accepts: application/json - get: - description: get a user from an organization - operationId: getOrganizationUser - parameters: - - description: organization name - in: path - name: organization - required: true - schema: - type: string - - description: username to manipulate - in: path - name: username - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/OrganizationUser' - description: user from organization - "404": - content: {} - description: User is not in organization - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - user - - organization - x-accepts: application/json - patch: - description: update a user in an organization - operationId: updateUserInOrganization - parameters: - - description: organization name - in: path - name: organization - required: true - schema: - type: string - - description: username to manipulate - in: path - name: username - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/OrganizationUser' - description: user details to update - required: true - responses: - "204": - content: {} - description: user update in organization successfully - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - user - - organization - x-codegen-request-body-name: user - x-content-type: application/json - x-accepts: application/json - /session: - get: - description: Get session token for user - operationId: getSession - parameters: - - description: "flag to create a token with expiration of 30 days, default is\ - \ false" - in: query - name: remember_me - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/Token' - description: Session token - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - user - x-accepts: application/json - /tasks: - get: - description: Fetch a list of all array tasks a user has access to - parameters: - - description: namespace to filter - in: query - name: namespace - schema: - type: string - - description: username to filter - in: query - name: created_by - schema: - type: string - - description: name/uri of array that is url-encoded to filter - in: query - name: array - schema: - type: string - - description: start time for tasks to filter by - in: query - name: start - schema: - format: uint64 - type: integer - - description: end time for tasks to filter by - in: query - name: end - schema: - format: uint64 - type: integer - - description: pagination offset - in: query - name: page - schema: - type: integer - - description: pagination limit - in: query - name: per_page - schema: - type: integer - - description: "task type, \"QUERY\", \"SQL\", \"UDF\", \"GENERIC_UDF\"" - in: query - name: type - schema: - type: string - - description: "task_type to exclude matching array in results, more than one\ - \ can be included" - explode: false - in: query - name: exclude_type - schema: - items: - type: string - type: array - style: form - - description: "match file_type of task array, more than one can be included" - explode: true - in: query - name: file_type - schema: - items: - type: string - type: array - style: form - - description: "exclude file_type of task arrays, more than one can be included" - explode: true - in: query - name: exclude_file_type - schema: - items: - type: string - type: array - style: form - - description: Filter to only return these statuses - in: query - name: status - schema: - type: string - - description: "search string that will look at name, namespace or description\ - \ fields" - in: query - name: search - schema: - type: string - - description: "sort by which field valid values include start_time, name" - in: query - name: orderby - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ArrayTaskData' - description: Array of all tasks user has access too - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - tasks - x-accepts: application/json - /tasks/sidebar: - get: - operationId: getArrayTasksSidebar - parameters: - - description: "Fetch tasks created after this time, unix epoch in seconds,\ - \ default 7 days ago" - in: query - name: start - schema: - format: uint64 - type: integer - - description: "Fetch tasks created before this time, unix epoch in seconds,\ - \ default now" - in: query - name: end - schema: - format: uint64 - type: integer - responses: - "200": - content: - application/json: - example: - organizations: - - organization1 - - organization2 - - organization3 - result_count_for_all: 74 - result_count_by_namespace: - mockuser: 14 - organization1: 6 - organization2: 52 - organization3: 2 - schema: - $ref: '#/components/schemas/ArrayTaskBrowserSidebar' - description: sidebar metadata for task definitions for all arrays user has - access to - "404": - content: {} - description: array tasks not found - default: - content: - application/json: - example: - message: Error try again - code: 1 - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - array_tasks - x-accepts: application/json - /task/{id}: - get: - description: Fetch an array task - parameters: - - description: task ID to fetch - in: path - name: id - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ArrayTask' - description: Array task - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - tasks - x-accepts: application/json - /task/{id}/result: - get: - description: Retrieve results of an array task - parameters: - - description: task ID to retrieve stored results - in: path - name: id - required: true - schema: - type: string - - description: Encoding to use - in: header - name: Accept-Encoding - schema: - type: string - responses: - "200": - content: - application/json: - schema: - format: binary/json - type: string - description: output and format of originating request - headers: - Content-Type: - description: format results are delivered in - schema: - type: string - "202": - content: {} - description: task is still executing - "404": - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: "results were not saved, or results have expored" - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - tasks - x-accepts: application/json - /token: - post: - description: "Request an authorization token, optionally taken a TokenRequest\ - \ object to set parameters on the token" - operationId: requestToken - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/TokenRequest' - description: token request object - required: false - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/Token' - description: token - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - user - x-codegen-request-body-name: tokenRequest - x-content-type: application/json - x-accepts: application/json - /tokens: - get: - description: Fetch a list of user tokens - responses: - "200": - content: - application/json: - schema: - items: - $ref: '#/components/schemas/Token' - type: array - description: Array of user created non-session tokens - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - user - x-accepts: application/json - /tokens/session: - get: - description: Fetch a list of user session tokens - responses: - "200": - content: - application/json: - schema: - items: - $ref: '#/components/schemas/Token' - type: array - description: Array of user created session tokens - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - user - x-accepts: application/json - /tokens/{token}: - delete: - description: revoke an authorization token - operationId: revokeToken - parameters: - - description: token name or token itself - in: path - name: token - required: true - schema: - type: string - responses: - "204": - content: {} - description: revokation successfully - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - user - x-accepts: application/json - /tokens/scopes: - get: - description: retrieves available token scopes for a user - operationId: getTokenScopes - responses: - "200": - content: - application/json: - schema: - items: - $ref: '#/components/schemas/TokenScope' - type: array - description: available token scopes - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - user - x-accepts: application/json - /sql/{namespace}: - post: - description: Run a sql query - operationId: runSQL - parameters: - - description: namespace to run task under is in (an organization name or user's - username) - in: path - name: namespace - required: true - schema: - type: string - - description: Encoding to use - in: header - name: Accept-Encoding - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/SQLParameters' - description: sql being submitted - required: true - responses: - "200": - content: - application/json: - schema: - items: - properties: {} - type: object - type: array - description: "JSON results in array of objects form, if the query returns\ - \ results" - headers: - X-TILEDB-CLOUD-TASK-ID: - description: Task ID for just completed query - schema: - type: string - "204": - content: {} - description: SQL executed successfully - headers: - X-TILEDB-CLOUD-TASK-ID: - description: Task ID for just completed query - schema: - type: string - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - sql - - tasks - x-codegen-request-body-name: sql - x-content-type: application/json - x-accepts: application/json - /udfs/generic/{namespace}: - post: - description: submit a generic UDF in the given namespace - operationId: submitGenericUDF - parameters: - - description: namespace array is in (an organization name or user's username) - in: path - name: namespace - required: true - schema: - type: string - - description: Encoding to use - in: header - name: Accept-Encoding - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/GenericUDF' - description: UDF to run - required: true - responses: - "200": - content: - application/octet-stream: - schema: - format: binary - type: string - description: UDF completed and the UDF-type specific result is returned - headers: - X-TILEDB-CLOUD-TASK-ID: - description: Task ID for just completed request - schema: - type: string - default: - content: - application/octet-stream: - schema: - $ref: '#/components/schemas/Error' - description: error response - headers: - X-TILEDB-CLOUD-TASK-ID: - description: Task ID for just request if task was started - schema: - type: string - tags: - - udf - x-codegen-request-body-name: udf - x-content-type: application/json - x-accepts: application/octet-stream - /udfs/arrays/{namespace}: - post: - description: submit a multi-array UDF in the given namespace - operationId: submitMultiArrayUDF - parameters: - - description: namespace array is in (an organization name or user's username) - in: path - name: namespace - required: true - schema: - type: string - - description: Encoding to use - in: header - name: Accept-Encoding - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/MultiArrayUDF' - description: UDF to run - required: true - responses: - "200": - content: - application/octet-stream: - schema: - format: binary - type: string - description: UDF completed and the UDF-type specific result is returned - headers: - X-TILEDB-CLOUD-TASK-ID: - description: Task ID for just completed request - schema: - type: string - default: - content: - application/octet-stream: - schema: - $ref: '#/components/schemas/Error' - description: error response - headers: - X-TILEDB-CLOUD-TASK-ID: - description: Task ID for just request if task was started - schema: - type: string - tags: - - udf - x-codegen-request-body-name: udf - x-content-type: application/json - x-accepts: application/octet-stream - /udf/{namespace}/{name}: - delete: - description: delete a registered UDF -- this will remove all sharing and can - not be undone - operationId: deleteUDFInfo - parameters: - - description: namespace array is in (an organization name or user's username) - in: path - name: namespace - required: true - schema: - type: string - - description: name to register UDF under - in: path - name: name - required: true - schema: - type: string - responses: - "204": - content: {} - description: UDF deleted successfully - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - udf - x-accepts: application/json - get: - description: get a specific UDF in the given namespace - operationId: getUDFInfo - parameters: - - description: namespace array is in (an organization name or user's username) - in: path - name: namespace - required: true - schema: - type: string - - description: name to register UDF under - in: path - name: name - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/UDFInfo' - description: UDFInfo was retrieved successfully - "404": - content: {} - description: UDF not found - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - udf - x-accepts: application/json - patch: - description: update an existing registered UDF in the given namespace - operationId: updateUDFInfo - parameters: - - description: namespace array is in (an organization name or user's username) - in: path - name: namespace - required: true - schema: - type: string - - description: name to register UDF under - in: path - name: name - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UDFInfoUpdate' - description: UDF to update - required: true - responses: - "204": - content: {} - description: UDF updated successfully - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - udf - x-codegen-request-body-name: udf - x-content-type: application/json - x-accepts: application/json - post: - description: register a UDF in the given namespace - operationId: registerUDFInfo - parameters: - - description: namespace array is in (an organization name or user's username) - in: path - name: namespace - required: true - schema: - type: string - - description: name to register UDF under - in: path - name: name - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UDFInfoUpdate' - description: UDF to register - required: true - responses: - "204": - content: {} - description: UDF registered successfully - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - udf - x-codegen-request-body-name: udf - x-content-type: application/json - x-accepts: application/json - /udf/{namespace}/{name}/share: - get: - description: Get all sharing details of the UDF - operationId: getUDFInfoSharingPolicies - parameters: - - description: namespace array is in (an organization name or user's username) - in: path - name: namespace - required: true - schema: - type: string - - description: name of UDFInfo - in: path - name: name - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - items: - $ref: '#/components/schemas/UDFSharing' - type: array - description: List of all specific sharing policies - "404": - content: {} - description: UDF does not exist or user does not have permissions to view - array-sharing policies - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - udf - x-accepts: application/json - patch: - description: Share a UDF with a user - operationId: shareUDFInfo - parameters: - - description: namespace array is in (an organization name or user's username) - in: path - name: namespace - required: true - schema: - type: string - - description: name of UDFInfo - in: path - name: name - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UDFSharing' - description: "Namespace and list of permissions to share with. An empty list\ - \ of permissions will remove the namespace; if permissions already exist\ - \ they will be deleted then new ones added. In the event of a failure, the\ - \ new policies will be rolled back to prevent partial policies, and it's\ - \ likely the UDF will not be shared with the namespace at all." - required: true - responses: - "204": - content: {} - description: UDF shared successfully - "404": - content: {} - description: UDF does not exist or user does not have permissions to share - UDF - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - udf - x-codegen-request-body-name: udf_sharing - x-content-type: application/json - x-accepts: application/json - /udf/{namespace}/{name}/copy: - post: - description: Copy a tiledb udf at the specified location - operationId: HandleCopyUDF - parameters: - - description: namespace array is in (an organization name or user's username) - in: path - name: namespace - required: true - schema: - type: string - - description: name of UDFInfo - in: path - name: name - required: true - schema: - type: string - - description: Optional registered access credentials to use for creation - in: header - name: X-TILEDB-CLOUD-ACCESS-CREDENTIALS-NAME - schema: - type: string - - description: Milliseconds since Unix epoch - in: query - name: end_timestamp - schema: - format: uint64 - type: integer - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UDFCopy' - description: Input/Output information to copy a UDF - required: true - responses: - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/UDFCopied' - description: UDF copied - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - udf - x-codegen-request-body-name: UDFCopy - x-content-type: application/json - x-accepts: application/json - /udf/{namespace}/{array}/end_timestamps: - get: - description: "retrieve a list of timestamps from the array fragment info listing\ - \ in milliseconds, paginated" - parameters: - - description: namespace array is in (an organization name or user's username) - in: path - name: namespace - required: true - schema: - type: string - - description: name/uri of array that is url-encoded - in: path - name: array - required: true - schema: - type: string - - description: pagination offset - in: query - name: page - schema: - type: integer - - description: pagination limit - in: query - name: per_page - schema: - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ArrayEndTimestampData' - description: "list of timestamps in milliseconds, paginated" - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - udf - x-accepts: application/json - /notebooks/server/{namespace}/status: - get: - description: Get status of the notebook server - operationId: getNotebookServerStatus - parameters: - - description: namespace notebook is in (an organization name or user's username) - in: path - name: namespace - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/NotebookStatus' - description: status of running notebook - "202": - content: {} - description: Notebook server is pending - "402": - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: Payment required - "404": - content: {} - description: Notebook is not running - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - notebook - x-accepts: application/json - /notebooks/server/{namespace}: - delete: - description: Shutdown a notebook server - operationId: shutdownNotebookServer - parameters: - - description: namespace notebook is in (an organization name or user's username) - in: path - name: namespace - required: true - schema: - type: string - responses: - "204": - content: {} - description: Notebook shutdown successfully - "404": - content: {} - description: Notebook is not running - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - notebook - x-accepts: application/json - /notebooks/{namespace}/{array}/rename: - patch: - description: "update name on a notebok, moving related S3 object to new location" - operationId: updateNotebookName - parameters: - - description: namespace array is in (an organization name or user's username) - in: path - name: namespace - required: true - schema: - type: string - - description: name/uri of notebook (array) that is url-encoded - in: path - name: array - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ArrayInfoUpdate' - description: notebook (array) metadata to update - required: true - responses: - "204": - content: {} - description: notebook name updated successfully - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - notebook - x-codegen-request-body-name: notebook_metadata - x-content-type: application/json - x-accepts: application/json - /notebooks/{namespace}/{array}/copy: - post: - description: Copy a tiledb notebook at the specified location - operationId: HandleCopyNotebook - parameters: - - description: The namespace of the notebook - in: path - name: namespace - required: true - schema: - type: string - - description: The name of the notebook - in: path - name: array - required: true - schema: - type: string - - description: Optional registered access credentials to use for creation - in: header - name: X-TILEDB-CLOUD-ACCESS-CREDENTIALS-NAME - schema: - type: string - - description: "Milliseconds since Unix epoch, copy will use open_at functionality\ - \ to copy notebook created at the specific timestamp" - in: query - name: end_timestamp - schema: - format: uint64 - type: integer - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NotebookCopy' - description: Input/Output information to create a new TileDB file - required: true - responses: - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/NotebookCopied' - description: Notebook copied - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - notebook - x-codegen-request-body-name: NotebookCopy - x-content-type: application/json - x-accepts: application/json - /notebooks/{namespace}/upload: - post: - description: Upload a notebook at the specified location - operationId: HandleUploadNotebook - parameters: - - description: The namespace of the notebook - in: path - name: namespace - required: true - schema: - type: string - - description: Optional registered access credentials to use for creation - in: header - name: X-TILEDB-CLOUD-ACCESS-CREDENTIALS-NAME - schema: - type: string - requestBody: - content: - multipart/form-data: - schema: - $ref: '#/components/schemas/HandleUploadNotebook_request' - required: true - responses: - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/FileUploaded' - description: File uploaded - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - notebook - x-content-type: multipart/form-data - x-accepts: application/json - /notebooks/{namespace}/{array}/end_timestamps: - get: - description: "retrieve a list of timestamps from the array fragment info listing\ - \ in milliseconds, paginated" - parameters: - - description: namespace array is in (an organization name or user's username) - in: path - name: namespace - required: true - schema: - type: string - - description: name/uri of array that is url-encoded - in: path - name: array - required: true - schema: - type: string - - description: pagination offset - in: query - name: page - schema: - type: integer - - description: pagination limit - in: query - name: per_page - schema: - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ArrayEndTimestampData' - description: "list of timestamps in milliseconds, paginated" - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - notebooks - x-accepts: application/json - /invitations: - get: - description: Fetch a list of invitations - operationId: fetchInvitations - parameters: - - description: name or ID of organization to filter - in: query - name: organization - schema: - type: string - - description: name/uri of array that is url-encoded to filter - in: query - name: array - schema: - type: string - - description: start time for tasks to filter by - in: query - name: start - schema: - format: uint64 - type: integer - - description: end time for tasks to filter by - in: query - name: end - schema: - format: uint64 - type: integer - - description: pagination offset - in: query - name: page - schema: - type: integer - - description: pagination limit - in: query - name: per_page - schema: - type: integer - - description: "invitation type, \"ARRAY_SHARE\", \"JOIN_ORGANIZATION\"" - in: query - name: type - schema: - type: string - - description: "Filter to only return \"PENDING\", \"ACCEPTED\"" - in: query - name: status - schema: - type: string - - description: "sort by which field valid values include timestamp, array_name,\ - \ organization_name" - in: query - name: orderby - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/InvitationData' - description: List of invitations and pagination metadata - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - invitation - x-accepts: application/json - /invitations/{invitation}: - post: - description: Accepts invitation - operationId: acceptInvitation - parameters: - - description: the ID of invitation about to be accepted - in: path - name: invitation - required: true - schema: - type: string - responses: - "204": - content: {} - description: Invitation was accepted successfully - "404": - content: {} - description: Could not find invitation identifier - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - invitation - x-accepts: application/json - /invitations/{invitation}/{namespace}/{array}/share: - delete: - description: Cancels array sharing invitation - operationId: cancelShareArrayByInvite - parameters: - - description: namespace array is in (an organization name or user's username) - in: path - name: namespace - required: true - schema: - type: string - - description: the ID of invitation about to be cancelled - in: path - name: invitation - required: true - schema: - type: string - - description: name/uri of array that is url-encoded - in: path - name: array - required: true - schema: - type: string - responses: - "204": - content: {} - description: Invitation cancelled successfully - "404": - content: {} - description: No invitation was found to cancel - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - invitation - x-accepts: application/json - /invitations/{invitation}/{organization}/join: - delete: - description: Cancels join organization invitation - operationId: cancelJoinOrganization - parameters: - - description: the ID of invitation about to be cancelled - in: path - name: invitation - required: true - schema: - type: string - - description: name or UUID of organization - in: path - name: organization - required: true - schema: - type: string - responses: - "204": - content: {} - description: Invitation cancelled successfully - "404": - content: {} - description: No invitation was found to cancel - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - invitation - x-accepts: application/json - /invitations/{namespace}/{array}/share: - post: - description: Sends email to multiple recipients with sharing information regarding - an array - operationId: shareArrayByInvite - parameters: - - description: namespace array is in (an organization name or user's username) - in: path - name: namespace - required: true - schema: - type: string - - description: name/uri of array that is url-encoded - in: path - name: array - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/InvitationArrayShareEmail' - description: list of email recipients - required: true - responses: - "204": - content: {} - description: Email sent successfully to user for email confirmation link - "404": - content: - application/json: - schema: - $ref: '#/components/schemas/InvitationArrayShareEmail' - description: Could not reach one or more recipients - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - invitation - x-codegen-request-body-name: email_invite - x-content-type: application/json - x-accepts: application/json - /invitations/{organization}/join: - post: - description: Sends email to multiple recipients with joining information regarding - an organization - operationId: joinOrganization - parameters: - - description: name or UUID of organization - in: path - name: organization - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/InvitationOrganizationJoinEmail' - description: list of email recipients - required: true - responses: - "204": - content: {} - description: Email sent successfully to user for email confirmation link - "404": - content: - application/json: - schema: - $ref: '#/components/schemas/InvitationOrganizationJoinEmail' - description: Could not reach one or more recipients - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - invitation - x-codegen-request-body-name: email_invite - x-content-type: application/json - x-accepts: application/json - /arrays/browser/shared: - get: - description: Fetch a list of all arrays that have been shared with the user - parameters: - - description: pagination offset - in: query - name: page - schema: - type: integer - - description: pagination limit - in: query - name: per_page - schema: - type: integer - - description: "search string that will look at name, namespace or description\ - \ fields" - in: query - name: search - schema: - type: string - - description: namespace - in: query - name: namespace - schema: - type: string - - description: "sort by which field valid values include last_accessed, size,\ - \ name" - in: query - name: orderby - schema: - type: string - - description: "permissions valid values include read, read_write, write, admin" - in: query - name: permissions - schema: - type: string - - description: "tag to search for, more than one can be included" - explode: true - in: query - name: tag - schema: - items: - type: string - type: array - style: form - - description: "tags to exclude matching array in results, more than one can\ - \ be included" - explode: true - in: query - name: exclude_tag - schema: - items: - type: string - type: array - style: form - - description: "file_type to search for, more than one can be included" - explode: true - in: query - name: file_type - schema: - items: - type: string - type: array - style: form - - description: "file_type to exclude matching array in results, more than one\ - \ can be included" - explode: true - in: query - name: exclude_file_type - schema: - items: - type: string - type: array - style: form - - description: "file_property key-value pair (comma separated, i.e. key,value)\ - \ to search for, more than one can be included" - explode: true - in: query - name: file_property - schema: - items: - type: string - type: array - style: form - - description: namespaces to filter results of where there arrays were shared - to - explode: true - in: query - name: shared_to - schema: - items: - type: string - type: array - style: form - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ArrayBrowserData' - description: Array of array info that has been shared with the user - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - array - x-accepts: application/json - /arrays/browser/shared/sidebar: - get: - description: Fetch a list of all arrays that have been shared with the user - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ArrayBrowserSidebar' - description: Array of array info that has been shared with the user - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - array - x-accepts: application/json - /arrays/browser/public: - get: - description: Fetch a list of all arrays that have been shared publically - parameters: - - description: pagination offset - in: query - name: page - schema: - type: integer - - description: pagination limit - in: query - name: per_page - schema: - type: integer - - description: "search string that will look at name, namespace or description\ - \ fields" - in: query - name: search - schema: - type: string - - description: namespace - in: query - name: namespace - schema: - type: string - - description: "sort by which field valid values include last_accessed, size,\ - \ name" - in: query - name: orderby - schema: - type: string - - description: "permissions valid values include read, read_write, write, admin" - in: query - name: permissions - schema: - type: string - - description: "tag to search for, more than one can be included" - explode: true - in: query - name: tag - schema: - items: - type: string - type: array - style: form - - description: "tags to exclude matching array in results, more than one can\ - \ be included" - explode: true - in: query - name: exclude_tag - schema: - items: - type: string - type: array - style: form - - description: "file_type to search for, more than one can be included" - explode: true - in: query - name: file_type - schema: - items: - type: string - type: array - style: form - - description: "file_type to exclude matching array in results, more than one\ - \ can be included" - explode: true - in: query - name: exclude_file_type - schema: - items: - type: string - type: array - style: form - - description: "file_property key-value pair (comma separated, i.e. key,value)\ - \ to search for, more than one can be included" - explode: true - in: query - name: file_property - schema: - items: - type: string - type: array - style: form - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ArrayBrowserData' - description: Array of array info that has been shared publically - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - array - x-accepts: application/json - /arrays/browser/public/sidebar: - get: - description: Fetch a sidebar of all arrays that have been shared publically - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ArrayBrowserSidebar' - description: Array of array info that has been shared publically - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - array - x-accepts: application/json - /arrays/browser/owned: - get: - description: Fetch a list of all arrays that are owned directly by user or user's - organizations - parameters: - - description: pagination offset - in: query - name: page - schema: - type: integer - - description: pagination limit - in: query - name: per_page - schema: - type: integer - - description: "search string that will look at name, namespace or description\ - \ fields" - in: query - name: search - schema: - type: string - - description: namespace - in: query - name: namespace - schema: - type: string - - description: "sort by which field valid values include last_accessed, size,\ - \ name" - in: query - name: orderby - schema: - type: string - - description: "permissions valid values include read, read_write, write, admin" - in: query - name: permissions - schema: - type: string - - description: "tag to search for, more than one can be included" - explode: true - in: query - name: tag - schema: - items: - type: string - type: array - style: form - - description: "tags to exclude matching array in results, more than one can\ - \ be included" - explode: true - in: query - name: exclude_tag - schema: - items: - type: string - type: array - style: form - - description: "file_type to search for, more than one can be included" - explode: true - in: query - name: file_type - schema: - items: - type: string - type: array - style: form - - description: "file_type to exclude matching array in results, more than one\ - \ can be included" - explode: true - in: query - name: exclude_file_type - schema: - items: - type: string - type: array - style: form - - description: "file_property key-value pair (comma separated, i.e. key,value)\ - \ to search for, more than one can be included" - explode: true - in: query - name: file_property - schema: - items: - type: string - type: array - style: form - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ArrayBrowserData' - description: Array of array info that are owned directly by user or user's - organizations - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - array - x-accepts: application/json - /arrays/browser/owned/sidebar: - get: - description: Fetch a sidebar for arrays that are owned directly by user or user's - organizations - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ArrayBrowserSidebar' - description: Array of array info that are owned directly by user or user's - organizations - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - array - x-accepts: application/json - /arrays/favorites: - get: - description: Fetch a page of array favorites of connected user - operationId: listArrayFavorites - parameters: - - description: pagination offset - in: query - name: page - schema: - type: integer - - description: pagination limit - in: query - name: per_page - schema: - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ArrayFavoritesData' - description: Available array favorites are returned - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - favorites - x-accepts: application/json - /arrays/favorites/uuids: - get: - description: Fetch all favorite array uuids of connected user - operationId: listArrayFavoritesUUIDs - responses: - "200": - content: - application/json: - schema: - items: - $ref: '#/components/schemas/ArrayFavorite' - type: array - description: Available favorites array uuids are returned - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - favorites - x-accepts: application/json - /arrays/favorites/{namespace}/{name}: - delete: - description: Delete specific array favorite - operationId: deleteArrayFavorite - parameters: - - description: The namespace of the array - in: path - name: namespace - required: true - schema: - type: string - - description: The name of the array - in: path - name: name - required: true - schema: - type: string - responses: - "204": - content: {} - description: array favorite item deleted successfully - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - favorites - x-accepts: application/json - get: - description: Fetch array favorite of a specific array - operationId: getArrayFavorite - parameters: - - description: The namespace of the array - in: path - name: namespace - required: true - schema: - type: string - - description: The name of the array - in: path - name: name - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ArrayFavorite' - description: OK - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - favorites - x-accepts: application/json - post: - description: Add a new array favorite - operationId: addArrayFavorite - parameters: - - description: The namespace of the array - in: path - name: namespace - required: true - schema: - type: string - - description: The name of the array - in: path - name: name - required: true - schema: - type: string - responses: - "204": - content: {} - description: Item added to favorites successfully - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - favorites - x-accepts: application/json - /notebooks/favorites: - get: - description: Fetch a page of notebook favorites of connected user - operationId: listNotebookFavorites - parameters: - - description: return only dashboards - in: query - name: is_dashboard - schema: - type: boolean - - description: pagination offset - in: query - name: page - schema: - type: integer - - description: pagination limit - in: query - name: per_page - schema: - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/NotebookFavoritesData' - description: Available notebook favorites are returned - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - favorites - x-accepts: application/json - /notebooks/favorites/uuids: - get: - description: Fetch all favorite notebook uuids of connected user - operationId: listNotebookFavoritesUUIDs - responses: - "200": - content: - application/json: - schema: - items: - $ref: '#/components/schemas/NotebookFavorite' - type: array - description: Available favorites notebook uuids are returned - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - favorites - x-accepts: application/json - /notebooks/favorites/{namespace}/{name}: - delete: - description: Delete specific notebook favorite - operationId: deleteNotebookFavorite - parameters: - - description: The namespace of the notebook - in: path - name: namespace - required: true - schema: - type: string - - description: The name of the notebook - in: path - name: name - required: true - schema: - type: string - responses: - "204": - content: {} - description: notebook favorite item deleted successfully - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - favorites - x-accepts: application/json - get: - description: Fetch notebook favorite of a specific notebook - operationId: getNotebookFavorite - parameters: - - description: The namespace of the notebook - in: path - name: namespace - required: true - schema: - type: string - - description: The name of the notebook - in: path - name: name - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/NotebookFavorite' - description: OK - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - favorites - x-accepts: application/json - post: - description: Add a new notebook favorite - operationId: addNotebookFavorite - parameters: - - description: The namespace of the notebook - in: path - name: namespace - required: true - schema: - type: string - - description: The name of the notebook - in: path - name: name - required: true - schema: - type: string - responses: - "204": - content: {} - description: Item added to favorites successfully - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - favorites - x-accepts: application/json - /ml_models/favorites: - get: - description: Fetch a page of ML models favorites of connected user - operationId: listMLModelFavorites - parameters: - - description: pagination offset - in: query - name: page - schema: - type: integer - - description: pagination limit - in: query - name: per_page - schema: - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/MLModelFavoritesData' - description: Available ML models favorites are returned - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - favorites - x-accepts: application/json - /ml_models/favorites/uuids: - get: - description: Fetch all favorite ML models uuids of connected user - operationId: listMLModelFavoritesUUIDs - responses: - "200": - content: - application/json: - schema: - items: - $ref: '#/components/schemas/MLModelFavorite' - type: array - description: Available favorites ML model uuids are returned - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - favorites - x-accepts: application/json - /ml_models/favorites/{namespace}/{name}: - delete: - description: Delete specific ML model favorite - operationId: deleteMLModelFavorite - parameters: - - description: The namespace of the ML model - in: path - name: namespace - required: true - schema: - type: string - - description: The name of the ML model - in: path - name: name - required: true - schema: - type: string - responses: - "204": - content: {} - description: ML model favorite item deleted successfully - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - favorites - x-accepts: application/json - get: - description: Fetch ML model favorite of a specific ML model - operationId: getMLModelFavorite - parameters: - - description: The namespace of the ML model - in: path - name: namespace - required: true - schema: - type: string - - description: The name of the ML model - in: path - name: name - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/MLModelFavorite' - description: OK - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - favorites - x-accepts: application/json - post: - description: Add a new ML model favorite - operationId: addMLModelFavorite - parameters: - - description: The namespace of the ML model - in: path - name: namespace - required: true - schema: - type: string - - description: The name of the ML model - in: path - name: name - required: true - schema: - type: string - responses: - "204": - content: {} - description: Item added to favorites successfully - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - favorites - x-accepts: application/json - /udfs/favorites: - get: - description: Fetch a page of UDF favorites of connected user - operationId: listUDFFavorites - parameters: - - description: pagination offset - in: query - name: page - schema: - type: integer - - description: pagination limit - in: query - name: per_page - schema: - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/UDFFavoritesData' - description: Available UDF favorites are returned - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - favorites - x-accepts: application/json - /udfs/favorites/uuids: - get: - description: Fetch all favorite UDF uuids of connected user - operationId: listUDFFavoritesUUIDs - responses: - "200": - content: - application/json: - schema: - items: - $ref: '#/components/schemas/UDFFavorite' - type: array - description: Available favorites UDF uuids are returned - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - favorites - x-accepts: application/json - /udfs/favorites/{namespace}/{name}: - delete: - description: Delete specific UDF favorite - operationId: deleteUDFFavorite - parameters: - - description: The namespace of the UDF - in: path - name: namespace - required: true - schema: - type: string - - description: The name of the UDF - in: path - name: name - required: true - schema: - type: string - responses: - "204": - content: {} - description: UDF favorite item deleted successfully - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - favorites - x-accepts: application/json - get: - description: Fetch UDF favorite of a specific UDF - operationId: getUDFFavorite - parameters: - - description: The namespace of the UDF - in: path - name: namespace - required: true - schema: - type: string - - description: The name of the UDF - in: path - name: name - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/UDFFavorite' - description: OK - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - favorites - x-accepts: application/json - post: - description: Add a new UDF favorite - operationId: addUDFFavorite - parameters: - - description: The namespace of the UDF - in: path - name: namespace - required: true - schema: - type: string - - description: The name of the UDF - in: path - name: name - required: true - schema: - type: string - responses: - "204": - content: {} - description: Item added to favorites successfully - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - favorites - x-accepts: application/json - /files/{namespace}: - post: - description: Create a tiledb file at the specified location - operationId: HandleCreateFile - parameters: - - description: The namespace of the file - in: path - name: namespace - required: true - schema: - type: string - - description: Optional registered access credentials to use for creation - in: header - name: X-TILEDB-CLOUD-ACCESS-CREDENTIALS-NAME - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/FileCreate' - description: Input/Output information to create a new TileDB file - required: true - responses: - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/FileCreated' - description: File created - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - files - x-codegen-request-body-name: FileCreate - x-content-type: application/json - x-accepts: application/json - /files/{namespace}/upload: - post: - description: Upload a tiledb file at the specified location - operationId: HandleUploadFile - parameters: - - description: The namespace of the file - in: path - name: namespace - required: true - schema: - type: string - - description: Optional registered access credentials to use for creation - in: header - name: X-TILEDB-CLOUD-ACCESS-CREDENTIALS-NAME - schema: - type: string - requestBody: - content: - multipart/form-data: - schema: - $ref: '#/components/schemas/HandleUploadFile_request' - required: true - responses: - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/FileUploaded' - description: File uploaded - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - files - x-content-type: multipart/form-data - x-accepts: application/json - /files/{namespace}/{file}/export: - post: - description: Export a TileDB File back to its original file format - operationId: HandleExportFile - parameters: - - description: The namespace of the file - in: path - name: namespace - required: true - schema: - type: string - - description: The file identifier - in: path - name: file - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/FileExport' - description: Export configuration information - required: true - responses: - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/FileExported' - description: File exported - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - files - x-codegen-request-body-name: FileExport - x-content-type: application/json - x-accepts: application/json - /groups/browser/owned/filters: - get: - description: Fetch data to initialize filters for the groups browser - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/GroupBrowserFilterData' - description: Filter data - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - groups - x-accepts: application/json - /groups/browser/owned: - get: - description: Returns one page of owned groups. - operationId: listOwnedGroups - parameters: - - description: pagination offset - in: query - name: page - schema: - type: integer - - description: pagination limit - in: query - name: per_page - schema: - type: integer - - description: "search string that will look at name, namespace or description\ - \ fields" - in: query - name: search - schema: - type: string - - description: namespace - in: query - name: namespace - schema: - type: string - - description: "sort by which field valid values include last_accessed, size,\ - \ name" - in: query - name: orderby - schema: - type: string - - description: "permissions valid values include read, read_write, write, admin" - in: query - name: permissions - schema: - type: string - - description: "tag to search for, more than one can be included" - explode: true - in: query - name: tag - schema: - items: - type: string - type: array - style: form - - description: "tags to exclude matching array in results, more than one can\ - \ be included" - explode: true - in: query - name: exclude_tag - schema: - items: - type: string - type: array - style: form - - description: "if true, ignores the nesting of groups and searches all of them" - in: query - name: flat - schema: - type: boolean - - description: search only the children of the groups with this uuid - in: query - name: parent - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/GroupBrowserData' - description: the group contents - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - groups - x-accepts: application/json - /groups/browser/shared/filters: - get: - description: Fetch data to initialize filters for the groups browser - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/GroupBrowserFilterData' - description: Filter data - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - groups - x-accepts: application/json - /groups/browser/shared: - get: - description: Returns one page of shared groups. - operationId: listSharedGroups - parameters: - - description: pagination offset - in: query - name: page - schema: - type: integer - - description: pagination limit - in: query - name: per_page - schema: - type: integer - - description: "search string that will look at name, namespace or description\ - \ fields" - in: query - name: search - schema: - type: string - - description: namespace - in: query - name: namespace - schema: - type: string - - description: "sort by which field valid values include last_accessed, size,\ - \ name" - in: query - name: orderby - schema: - type: string - - description: "permissions valid values include read, read_write, write, admin" - in: query - name: permissions - schema: - type: string - - description: "tag to search for, more than one can be included" - explode: true - in: query - name: tag - schema: - items: - type: string - type: array - style: form - - description: "tags to exclude matching array in results, more than one can\ - \ be included" - explode: true - in: query - name: exclude_tag - schema: - items: - type: string - type: array - style: form - - description: "if true, ignores the nesting of groups and searches all of them" - in: query - name: flat - schema: - type: boolean - - description: search only the children of the groups with this uuid - in: query - name: parent - schema: - type: string - - description: namespaces to filter results of where there groups were shared - to - explode: true - in: query - name: shared_to - schema: - items: - type: string - type: array - style: form - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/GroupBrowserData' - description: the group contents - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - groups - x-accepts: application/json - /groups/browser/public/filters: - get: - description: Fetch data to initialize filters for the groups browser - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/GroupBrowserFilterData' - description: Filter data - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - groups - x-accepts: application/json - /groups/browser/public: - get: - description: Returns one page of public groups. - operationId: listPublicGroups - parameters: - - description: pagination offset - in: query - name: page - schema: - type: integer - - description: pagination limit - in: query - name: per_page - schema: - type: integer - - description: "search string that will look at name, namespace or description\ - \ fields" - in: query - name: search - schema: - type: string - - description: namespace - in: query - name: namespace - schema: - type: string - - description: "sort by which field valid values include last_accessed, size,\ - \ name" - in: query - name: orderby - schema: - type: string - - description: "permissions valid values include read, read_write, write, admin" - in: query - name: permissions - schema: - type: string - - description: "tag to search for, more than one can be included" - explode: true - in: query - name: tag - schema: - items: - type: string - type: array - style: form - - description: "tags to exclude matching array in results, more than one can\ - \ be included" - explode: true - in: query - name: exclude_tag - schema: - items: - type: string - type: array - style: form - - description: "if true, ignores the nesting of groups and searches all of them" - in: query - name: flat - schema: - type: boolean - - description: search only the children of the groups with this uuid - in: query - name: parent - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/GroupBrowserData' - description: the group contents - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - groups - x-accepts: application/json - /groups/{group_namespace}/{group_name}/contents/filters: - get: - description: Fetch data to initialize filters for the group contents - parameters: - - description: The namespace of the group - in: path - name: group_namespace - required: true - schema: - type: string - - description: The unique name or id of the group - in: path - name: group_name - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/GroupContentsFilterData' - description: Filter data - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - groups - x-accepts: application/json - /groups/{group_namespace}/{group_name}/contents: - get: - description: Returns the contents of the group - operationId: getGroupContents - parameters: - - description: The namespace of the group - in: path - name: group_namespace - required: true - schema: - type: string - - description: The unique name or id of the group - in: path - name: group_name - required: true - schema: - type: string - - description: pagination offset for assets - in: query - name: page - schema: - type: integer - - description: pagination limit for assets - in: query - name: per_page - schema: - type: integer - - description: namespace to search for - in: query - name: namespace - schema: - type: string - - description: "search string that will look at name, namespace or description\ - \ fields" - in: query - name: search - schema: - type: string - - description: "sort by which field valid values include last_accessed, size,\ - \ name" - in: query - name: orderby - schema: - type: string - - description: "tag to search for, more than one can be included" - explode: true - in: query - name: tag - schema: - items: - type: string - type: array - style: form - - description: "tags to exclude matching array in results, more than one can\ - \ be included" - explode: true - in: query - name: exclude_tag - schema: - items: - type: string - type: array - style: form - - description: "member type to search for, more than one can be included" - explode: true - in: query - name: member_type - schema: - items: - type: string - type: array - style: form - - description: "member type to exclude matching groups in results, more than\ - \ one can be included" - explode: true - in: query - name: exclude_member_type - schema: - items: - type: string - type: array - style: form - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/GroupContents' - description: the group contents - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - groups - x-accepts: application/json - post: - description: Changes the contents of the group by adding/removing members. - operationId: changeGroupContents - parameters: - - description: The namespace of the group - in: path - name: group_namespace - required: true - schema: - type: string - - description: The unique name or id of the group - in: path - name: group_name - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/GroupChanges' - required: false - responses: - "204": - content: {} - description: all changes applied successfully - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - groups - x-codegen-request-body-name: GroupChanges - x-content-type: application/json - x-accepts: application/json - /groups/{namespace}/{array}/register: - post: - description: Registers an existing group in the namespace. - operationId: registerGroup - parameters: - - description: The namespace of the group - in: path - name: namespace - required: true - schema: - type: string - - description: The unique name or id of the group - in: path - name: array - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/GroupRegister' - required: false - responses: - "204": - content: {} - description: group created successfully - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - groups - x-codegen-request-body-name: GroupRegister - x-content-type: application/json - x-accepts: application/json - /groups/{namespace}/create: - post: - description: Creates a new group in the namespace. - operationId: createGroup - parameters: - - description: The namespace of the group - in: path - name: namespace - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/GroupCreate' - required: false - responses: - "204": - content: {} - description: group created successfully - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - groups - x-codegen-request-body-name: GroupCreate - x-content-type: application/json - x-accepts: application/json - /groups/{group_namespace}/{group_name}/share: - get: - description: Get all sharing details of the group - operationId: getGroupSharingPolicies - parameters: - - description: The namespace of the group - in: path - name: group_namespace - required: true - schema: - type: string - - description: The unique name or id of the group - in: path - name: group_name - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - items: - $ref: '#/components/schemas/GroupSharing' - type: array - description: List of all specific sharing policies - "404": - content: {} - description: Group does not exist or user does not have permissions to view - group-sharing policies - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - groups - x-accepts: application/json - patch: - description: Share a group with a namespace - operationId: shareGroup - parameters: - - description: The namespace of the group - in: path - name: group_namespace - required: true - schema: - type: string - - description: The unique name or id of the group - in: path - name: group_name - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/GroupSharingRequest' - description: "Namespace and list of permissions to share with. Sharing is\ - \ recursive, it is applied to all reachable subgroups and arrays of the\ - \ group. An empty list of permissions will remove the namespace; if permissions\ - \ already exist they will be deleted then new ones added. In the event of\ - \ a failure, the new policies will be rolled back to prevent partial policies,\ - \ and it's likely the group will not be shared with the namespace at all." - required: true - responses: - "204": - content: {} - description: Group shared successfully - "404": - content: {} - description: Group does not exist or user does not have permissions to share - group - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - groups - x-codegen-request-body-name: group_sharing_request - x-content-type: application/json - x-accepts: application/json - /groups/{group_namespace}/{group_name}: - delete: - description: Deletes the group. The assets are not deleted nor are not relocated - to any other group - operationId: deleteGroup - parameters: - - description: The namespace of the group - in: path - name: group_namespace - required: true - schema: - type: string - - description: The unique name or id of the group - in: path - name: group_name - required: true - schema: - type: string - responses: - "204": - content: {} - description: group deleted successfully - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - groups - x-accepts: application/json - get: - description: Returns the the group - operationId: getGroup - parameters: - - description: The namespace of the group - in: path - name: group_namespace - required: true - schema: - type: string - - description: The unique name or id of the group - in: path - name: group_name - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/GroupInfo' - description: the group metadata - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - groups - x-accepts: application/json - patch: - description: Changes attributes of the group - operationId: updateGroup - parameters: - - description: The namespace of the group - in: path - name: group_namespace - required: true - schema: - type: string - - description: The unique name or id of the group - in: path - name: group_name - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/GroupUpdate' - required: false - responses: - "204": - content: {} - description: attributes changed successfully - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - groups - x-codegen-request-body-name: GroupUpdate - x-content-type: application/json - x-accepts: application/json - /taskgraphs/{namespace}/log: - post: - description: Create a task graph log. - operationId: createTaskGraphLog - parameters: - - description: The namespace that will own this task graph log. - in: path - name: namespace - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/TaskGraphLog' - required: true - responses: - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/TaskGraphLog' - description: "The task graph was created. The returned TaskGraphLog will\ - \ include the data the client sent, with the server-defined fields added\ - \ in.\n" - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - task_graph_logs - x-codegen-request-body-name: log - x-content-type: application/json - x-accepts: application/json - /taskgraphs/logs: - get: - description: "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.)\nEntries in\ - \ the response are ordered from newest to oldest. Pagination parameters work\ - \ as in other API methods; see PaginationMetadata.\n" - operationId: listTaskGraphLogs - parameters: - - description: Include logs for this namespace. - in: query - name: namespace - schema: - type: string - - description: Include logs from only this user. - in: query - name: created_by - schema: - type: string - - description: search string that will look at name. - in: query - name: search - schema: - type: string - - description: Include logs created after this time. - in: query - name: start_time - schema: - format: date-time - type: string - - description: Include logs created before this time. - in: query - name: end_time - schema: - format: date-time - type: string - - description: pagination offset - in: query - name: page - schema: - type: integer - - description: pagination limit - in: query - name: per_page - schema: - type: integer - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/TaskGraphLogsData' - description: The task graph logs that matched the user's query. - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - task_graph_logs - x-accepts: application/json - /taskgraphs/{namespace}/logs/{id}: - get: - description: | - Fetch information about a single task graph execution. - operationId: getTaskGraphLog - parameters: - - description: The namespace that owns this task graph log. - in: path - name: namespace - required: true - schema: - type: string - - description: The UUID of the task graph log entry. - in: path - name: id - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/TaskGraphLog' - description: Information about the execution of a single task graph. - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - task_graph_logs - x-accepts: application/json - patch: - description: | - Update information about a single task graph execution. - operationId: updateTaskGraphLog - parameters: - - description: The namespace that owns this task graph log. - in: path - name: namespace - required: true - schema: - type: string - - description: The UUID of the task graph log entry. - in: path - name: id - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/TaskGraphLog' - description: "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`.\n" - required: true - responses: - "204": - content: {} - description: Log entry updated successfully. - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - task_graph_logs - x-codegen-request-body-name: log - x-content-type: application/json - x-accepts: application/json - /taskgraphs/{namespace}/logs/{id}/report_client_node: - post: - operationId: reportClientNode - parameters: - - description: The namespace that owns this task graph log. - in: path - name: namespace - required: true - schema: - type: string - - description: The UUID of the task graph log entry. - in: path - name: id - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/TaskGraphClientNodeStatus' - description: The node status to report. - required: true - responses: - "204": - content: {} - description: Status reported successfully. - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - task_graph_logs - x-codegen-request-body-name: report - x-content-type: application/json - x-accepts: application/json - /taskgraphs/{namespace}/registered/{name}: - delete: - description: | - Delete the given registered task graph. - operationId: deleteRegisteredTaskGraph - parameters: - - description: The namespace that owns this registered UDF. - in: path - name: namespace - required: true - schema: - type: string - - description: The name of the registered task graph. - in: path - name: name - required: true - schema: - type: string - responses: - "204": - content: {} - description: Task graph successfully deleted. - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - registered_task_graphs - x-accepts: application/json - get: - description: | - Fetch the contents of this registered task graph. - operationId: getRegisteredTaskGraph - parameters: - - description: The namespace that owns this registered UDF. - in: path - name: namespace - required: true - schema: - type: string - - description: The name of the registered task graph. - in: path - name: name - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/RegisteredTaskGraph' - description: The contents of the registered task graph. - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - registered_task_graphs - x-accepts: application/json - patch: - description: | - Update the contents of an existing registered task graph. - operationId: updateRegisteredTaskGraph - parameters: - - description: The namespace that owns this registered UDF. - in: path - name: namespace - required: true - schema: - type: string - - description: The name of the registered task graph. - in: path - name: name - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/RegisteredTaskGraph' - description: The new contents of the task graph. - required: false - responses: - "204": - content: {} - description: Task graph updated successfully. - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - registered_task_graphs - x-codegen-request-body-name: graph - x-content-type: application/json - x-accepts: application/json - post: - description: "Register a task graph in the given namespace, with the given name.\n" - operationId: registerRegisteredTaskGraph - parameters: - - description: The namespace that owns this registered UDF. - in: path - name: namespace - required: true - schema: - type: string - - description: The name of the registered task graph. - in: path - name: name - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/RegisteredTaskGraph' - description: Task graph to register. - required: false - responses: - "204": - content: {} - description: Task graph registered successfully. - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - registered_task_graphs - x-codegen-request-body-name: graph - x-content-type: application/json - x-accepts: application/json - /taskgraphs/{namespace}/registered/{name}/share: - get: - description: Get sharing policies for the task graph. - operationId: getRegisteredTaskGraphSharingPolicies - parameters: - - description: The namespace that owns the registered task graph. - in: path - name: namespace - required: true - schema: - type: string - - description: The name of the task graph. - in: path - name: name - required: true - schema: - type: string - responses: - "200": - content: - application/json: - schema: - items: - $ref: '#/components/schemas/TaskGraphSharing' - type: array - description: List of all specific sharing policies - "404": - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: | - The task graph does not exist (or the user does not have permission to view policies) - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - registered_task_graphs - x-accepts: application/json - patch: - description: Share a task graph. - operationId: shareRegisteredTaskGraph - parameters: - - description: The namespace that owns the registered task graph. - in: path - name: namespace - required: true - schema: - type: string - - description: The name of the task graph. - in: path - name: name - required: true - schema: - type: string - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/TaskGraphSharing' - description: "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.\n" - required: true - responses: - "204": - content: {} - description: UDF shared successfully - "404": - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: UDF does not exist or user does not have permissions to share - UDF - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: error response - tags: - - registered_task_graphs - x-codegen-request-body-name: task_graph_sharing - x-content-type: application/json - x-accepts: application/json -components: - schemas: - ArrayType: - description: TileDB array type - enum: - - dense - - sparse - type: string - Datatype: - description: TileDB data type - enum: - - INT32 - - INT64 - - FLOAT32 - - FLOAT64 - - CHAR - - INT8 - - UINT8 - - INT16 - - UINT16 - - UINT32 - - UINT64 - - STRING_ASCII - - STRING_UTF8 - - STRING_UTF16 - - STRING_UTF32 - - STRING_UCS2 - - STRING_UCS4 - - ANY - type: string - ActivityEventType: - description: Type of activity logged - enum: - - read_schema - - max_buffer_sizes - - non_empty_domain - - query_read - - query_write - - create - - delete - - register - - deregister - - udf - - array_metadata_get - - array_metadata_update - - estimated_result_sizes - type: string - UDFLanguage: - description: UDF Type - enum: - - python - - r - type: string - UDFType: - description: UDF Type - enum: - - multi_array - - single_array - - generic - type: string - ResultFormat: - description: Data format of a result - enum: - - python_pickle - - r_serialization - - json - - arrow - - bytes - - tiledb_json - - native - type: string - Layout: - description: Layout of array - enum: - - row-major - - col-major - - global-order - - unordered - type: string - Querytype: - description: Type of query - enum: - - READ - - WRITE - type: string - Querystatus: - description: Status of query - enum: - - FAILED - - COMPLETED - - INPROGRESS - - INCOMPLETE - - UNINITIALIZED - type: string - FilterType: - description: TileDB filter types - enum: - - FILTER_NONE - - FILTER_GZIP - - FILTER_ZSTD - - FILTER_LZ4 - - FILTER_RLE - - FILTER_BZIP2 - - FILTER_DOUBLE_DELTA - - FILTER_BIT_WIDTH_REDUCTION - - FILTER_BITSHUFFLE - - FILTER_BYTESHUFFLE - - FILTER_POSITIVE_DELTA - type: string - FilterOption: - description: TileDB filter option - enum: - - COMPRESSION_LEVEL - - BIT_WIDTH_MAX_WINDOW - - POSITIVE_DELTA_MAX_WINDOW - type: string - OrganizationRoles: - description: role user has in organization - enum: - - owner - - admin - - read_write - - read_only - type: string - ArrayActions: - description: actions a user can take on an array - enum: - - read - - write - - edit - - read_array_logs - - read_array_info - - read_array_schema - type: string - UDFActions: - description: actions a user can take on a UDF - enum: - - fetch_udf - - share_udf - type: string - NamespaceActions: - description: actions a user can take on an organization - enum: - - read - - write - - create - - delete - - edit - - read_array_logs - - read_job_logs - - read_object_logs - - run_job - - delete_organization - - edit_organization - - edit_billing - type: string - DomainArray: - description: Domain object for an array of each type - example: - int32: - - 1 - - 1 - int64: - - 7 - - 7 - int8: - - 4 - - 4 - uint64: - - 1 - - 1 - float32: - - 4.9652185 - - 4.9652185 - uint32: - - 6 - - 6 - float64: - - 5.025004791520295 - - 5.025004791520295 - uint8: - - 7 - - 7 - uint16: - - 1 - - 1 - int16: - - 1 - - 1 - properties: - int8: - items: - format: int8 - type: integer - type: array - x-omitempty: true - uint8: - items: - format: uint8 - type: integer - type: array - x-omitempty: true - int16: - items: - format: int16 - type: integer - type: array - x-omitempty: true - uint16: - items: - format: uint16 - type: integer - type: array - x-omitempty: true - int32: - items: - format: int32 - type: integer - type: array - x-omitempty: true - uint32: - items: - format: uint32 - type: integer - type: array - x-omitempty: true - int64: - items: - format: int64 - type: integer - type: array - x-omitempty: true - uint64: - items: - format: uint64 - type: integer - type: array - x-omitempty: true - float32: - items: - format: float - type: number - type: array - x-omitempty: true - float64: - items: - format: double - type: number - type: array - x-omitempty: true - type: object - Array: - description: Represents an open array - example: - uri: uri - timestamp: 1540471791873 - queryType: null - properties: - timestamp: - description: timestamp (epoch milliseconds) array is opened at - example: 1540471791873 - format: uint64 - type: number - queryType: - $ref: '#/components/schemas/Querytype' - uri: - description: Array uri - type: string - required: - - queryType - - timestamp - - uri - type: object - Attribute: - description: Attribute of array - example: - filterPipeline: - filters: - - data: - int32: 5 - int64: 7 - int8: 0 - uint64: 9 - float32: 3 - uint32: 2 - float64: 2 - uint8: 6 - uint16: 5 - int16: 1 - type: null - - data: - int32: 5 - int64: 7 - int8: 0 - uint64: 9 - float32: 3 - uint32: 2 - float64: 2 - uint8: 6 - uint16: 5 - int16: 1 - type: null - nullable: true - cellValNum: 1 - name: attribute1 - fillValue: - - 6 - - 6 - type: null - properties: - name: - description: Attribute name - example: attribute1 - type: string - type: - $ref: '#/components/schemas/Datatype' - filterPipeline: - $ref: '#/components/schemas/FilterPipeline' - cellValNum: - description: Attribute number of values per cell - example: 1 - type: integer - nullable: - description: Is attribute nullable - example: true - type: boolean - fillValue: - description: The default fill value - items: - format: uint8 - type: integer - type: array - required: - - cellValNum - - filterPipeline - - name - - type - type: object - Dimension: - description: Dimension of array - example: - tileExtent: - int32: 9 - int64: 3 - int8: 9 - uint64: 6 - float32: 1 - uint32: 6 - float64: 2 - uint8: 9 - uint16: 8 - int16: 6 - filterPipeline: - filters: - - data: - int32: 5 - int64: 7 - int8: 0 - uint64: 9 - float32: 3 - uint32: 2 - float64: 2 - uint8: 6 - uint16: 5 - int16: 1 - type: null - - data: - int32: 5 - int64: 7 - int8: 0 - uint64: 9 - float32: 3 - uint32: 2 - float64: 2 - uint8: 6 - uint16: 5 - int16: 1 - type: null - nullTileExtent: true - domain: - int32: - - 1 - - 1 - int64: - - 7 - - 7 - int8: - - 4 - - 4 - uint64: - - 1 - - 1 - float32: - - 4.9652185 - - 4.9652185 - uint32: - - 6 - - 6 - float64: - - 5.025004791520295 - - 5.025004791520295 - uint8: - - 7 - - 7 - uint16: - - 1 - - 1 - int16: - - 1 - - 1 - name: row - type: null - properties: - name: - description: Dimension name - example: row - type: string - type: - $ref: '#/components/schemas/Datatype' - domain: - $ref: '#/components/schemas/DomainArray' - nullTileExtent: - description: Is tile extent null - example: true - type: boolean - tileExtent: - $ref: '#/components/schemas/Dimension_tileExtent' - filterPipeline: - $ref: '#/components/schemas/FilterPipeline' - required: - - domain - - nullTileExtent - - type - type: object - Domain: - description: Domain of array - example: - cellOrder: null - tileOrder: null - type: null - dimensions: - - tileExtent: - int32: 9 - int64: 3 - int8: 9 - uint64: 6 - float32: 1 - uint32: 6 - float64: 2 - uint8: 9 - uint16: 8 - int16: 6 - filterPipeline: - filters: - - data: - int32: 5 - int64: 7 - int8: 0 - uint64: 9 - float32: 3 - uint32: 2 - float64: 2 - uint8: 6 - uint16: 5 - int16: 1 - type: null - - data: - int32: 5 - int64: 7 - int8: 0 - uint64: 9 - float32: 3 - uint32: 2 - float64: 2 - uint8: 6 - uint16: 5 - int16: 1 - type: null - nullTileExtent: true - domain: - int32: - - 1 - - 1 - int64: - - 7 - - 7 - int8: - - 4 - - 4 - uint64: - - 1 - - 1 - float32: - - 4.9652185 - - 4.9652185 - uint32: - - 6 - - 6 - float64: - - 5.025004791520295 - - 5.025004791520295 - uint8: - - 7 - - 7 - uint16: - - 1 - - 1 - int16: - - 1 - - 1 - name: row - type: null - - tileExtent: - int32: 9 - int64: 3 - int8: 9 - uint64: 6 - float32: 1 - uint32: 6 - float64: 2 - uint8: 9 - uint16: 8 - int16: 6 - filterPipeline: - filters: - - data: - int32: 5 - int64: 7 - int8: 0 - uint64: 9 - float32: 3 - uint32: 2 - float64: 2 - uint8: 6 - uint16: 5 - int16: 1 - type: null - - data: - int32: 5 - int64: 7 - int8: 0 - uint64: 9 - float32: 3 - uint32: 2 - float64: 2 - uint8: 6 - uint16: 5 - int16: 1 - type: null - nullTileExtent: true - domain: - int32: - - 1 - - 1 - int64: - - 7 - - 7 - int8: - - 4 - - 4 - uint64: - - 1 - - 1 - float32: - - 4.9652185 - - 4.9652185 - uint32: - - 6 - - 6 - float64: - - 5.025004791520295 - - 5.025004791520295 - uint8: - - 7 - - 7 - uint16: - - 1 - - 1 - int16: - - 1 - - 1 - name: row - type: null - properties: - type: - $ref: '#/components/schemas/Datatype' - tileOrder: - $ref: '#/components/schemas/Layout' - cellOrder: - $ref: '#/components/schemas/Layout' - dimensions: - description: Array of dimensions - items: - $ref: '#/components/schemas/Dimension' - type: array - required: - - cellOrder - - dimensions - - tileOrder - - type - type: object - Filter: - description: Filter - example: - data: - int32: 5 - int64: 7 - int8: 0 - uint64: 9 - float32: 3 - uint32: 2 - float64: 2 - uint8: 6 - uint16: 5 - int16: 1 - type: null - properties: - type: - $ref: '#/components/schemas/FilterType' - data: - $ref: '#/components/schemas/Filter_data' - required: - - type - type: object - FilterPipeline: - description: One or more filters to apply - example: - filters: - - data: - int32: 5 - int64: 7 - int8: 0 - uint64: 9 - float32: 3 - uint32: 2 - float64: 2 - uint8: 6 - uint16: 5 - int16: 1 - type: null - - data: - int32: 5 - int64: 7 - int8: 0 - uint64: 9 - float32: 3 - uint32: 2 - float64: 2 - uint8: 6 - uint16: 5 - int16: 1 - type: null - properties: - filters: - items: - $ref: '#/components/schemas/Filter' - type: array - x-omitempty: true - type: object - ArraySchema: - description: ArraySchema during creation or retrieval - example: - allowsDuplicates: true - offsetFilterPipeline: - filters: - - data: - int32: 5 - int64: 7 - int8: 0 - uint64: 9 - float32: 3 - uint32: 2 - float64: 2 - uint8: 6 - uint16: 5 - int16: 1 - type: null - - data: - int32: 5 - int64: 7 - int8: 0 - uint64: 9 - float32: 3 - uint32: 2 - float64: 2 - uint8: 6 - uint16: 5 - int16: 1 - type: null - arrayType: null - cellOrder: null - coordsFilterPipeline: - filters: - - data: - int32: 5 - int64: 7 - int8: 0 - uint64: 9 - float32: 3 - uint32: 2 - float64: 2 - uint8: 6 - uint16: 5 - int16: 1 - type: null - - data: - int32: 5 - int64: 7 - int8: 0 - uint64: 9 - float32: 3 - uint32: 2 - float64: 2 - uint8: 6 - uint16: 5 - int16: 1 - type: null - tileOrder: null - domain: - cellOrder: null - tileOrder: null - type: null - dimensions: - - tileExtent: - int32: 9 - int64: 3 - int8: 9 - uint64: 6 - float32: 1 - uint32: 6 - float64: 2 - uint8: 9 - uint16: 8 - int16: 6 - filterPipeline: - filters: - - data: - int32: 5 - int64: 7 - int8: 0 - uint64: 9 - float32: 3 - uint32: 2 - float64: 2 - uint8: 6 - uint16: 5 - int16: 1 - type: null - - data: - int32: 5 - int64: 7 - int8: 0 - uint64: 9 - float32: 3 - uint32: 2 - float64: 2 - uint8: 6 - uint16: 5 - int16: 1 - type: null - nullTileExtent: true - domain: - int32: - - 1 - - 1 - int64: - - 7 - - 7 - int8: - - 4 - - 4 - uint64: - - 1 - - 1 - float32: - - 4.9652185 - - 4.9652185 - uint32: - - 6 - - 6 - float64: - - 5.025004791520295 - - 5.025004791520295 - uint8: - - 7 - - 7 - uint16: - - 1 - - 1 - int16: - - 1 - - 1 - name: row - type: null - - tileExtent: - int32: 9 - int64: 3 - int8: 9 - uint64: 6 - float32: 1 - uint32: 6 - float64: 2 - uint8: 9 - uint16: 8 - int16: 6 - filterPipeline: - filters: - - data: - int32: 5 - int64: 7 - int8: 0 - uint64: 9 - float32: 3 - uint32: 2 - float64: 2 - uint8: 6 - uint16: 5 - int16: 1 - type: null - - data: - int32: 5 - int64: 7 - int8: 0 - uint64: 9 - float32: 3 - uint32: 2 - float64: 2 - uint8: 6 - uint16: 5 - int16: 1 - type: null - nullTileExtent: true - domain: - int32: - - 1 - - 1 - int64: - - 7 - - 7 - int8: - - 4 - - 4 - uint64: - - 1 - - 1 - float32: - - 4.9652185 - - 4.9652185 - uint32: - - 6 - - 6 - float64: - - 5.025004791520295 - - 5.025004791520295 - uint8: - - 7 - - 7 - uint16: - - 1 - - 1 - int16: - - 1 - - 1 - name: row - type: null - attributes: - - filterPipeline: - filters: - - data: - int32: 5 - int64: 7 - int8: 0 - uint64: 9 - float32: 3 - uint32: 2 - float64: 2 - uint8: 6 - uint16: 5 - int16: 1 - type: null - - data: - int32: 5 - int64: 7 - int8: 0 - uint64: 9 - float32: 3 - uint32: 2 - float64: 2 - uint8: 6 - uint16: 5 - int16: 1 - type: null - nullable: true - cellValNum: 1 - name: attribute1 - fillValue: - - 6 - - 6 - type: null - - filterPipeline: - filters: - - data: - int32: 5 - int64: 7 - int8: 0 - uint64: 9 - float32: 3 - uint32: 2 - float64: 2 - uint8: 6 - uint16: 5 - int16: 1 - type: null - - data: - int32: 5 - int64: 7 - int8: 0 - uint64: 9 - float32: 3 - uint32: 2 - float64: 2 - uint8: 6 - uint16: 5 - int16: 1 - type: null - nullable: true - cellValNum: 1 - name: attribute1 - fillValue: - - 6 - - 6 - type: null - uri: s3:///test_array - version: - - 1 - - 3 - - 0 - capacity: 100000 - properties: - uri: - description: URI of schema - example: s3:///test_array - type: string - version: - description: file format version - example: - - 1 - - 3 - - 0 - items: - type: integer - type: array - x-omitempty: true - arrayType: - $ref: '#/components/schemas/ArrayType' - tileOrder: - $ref: '#/components/schemas/Layout' - cellOrder: - $ref: '#/components/schemas/Layout' - capacity: - description: Capacity of array - example: 100000 - format: uint64 - type: integer - coordsFilterPipeline: - $ref: '#/components/schemas/FilterPipeline' - offsetFilterPipeline: - $ref: '#/components/schemas/FilterPipeline' - domain: - $ref: '#/components/schemas/Domain' - attributes: - description: Attributes of array - items: - $ref: '#/components/schemas/Attribute' - type: array - x-omitempty: true - allowsDuplicates: - description: True if the array allows coordinate duplicates. Applicable - only to sparse arrays. - type: boolean - required: - - arrayType - - attributes - - capacity - - cellOrder - - coordsFilterPipeline - - domain - - offsetFilterPipeline - - tileOrder - - version - type: object - x-go-type: - import: - package: github.com/TileDB-Inc/TileDB-Go - alias: tiledb - type: ArraySchema - AttributeBufferHeader: - description: Represents an attribute buffer header information - example: - fixedLenBufferSizeInBytes: 0 - varLenBufferSizeInBytes: 6 - name: attribute1 - properties: - name: - description: Attribute name - example: attribute1 - type: string - fixedLenBufferSizeInBytes: - description: Number of bytes in the fixed-length attribute data buffer (offsets - for var-len attributes) - format: uint64 - type: integer - varLenBufferSizeInBytes: - description: Number of bytes in the var-length attribute data buffer - format: uint64 - type: integer - required: - - fixedLenBufferSizeInBytes - - name - - varLenBufferSizeInBytes - type: object - Writer: - example: - checkCoordDups: true - checkCoordOOB: true - subarray: - int32: - - 1 - - 1 - int64: - - 7 - - 7 - int8: - - 4 - - 4 - uint64: - - 1 - - 1 - float32: - - 4.9652185 - - 4.9652185 - uint32: - - 6 - - 6 - float64: - - 5.025004791520295 - - 5.025004791520295 - uint8: - - 7 - - 7 - uint16: - - 1 - - 1 - int16: - - 1 - - 1 - dedupCoords: true - properties: - checkCoordDups: - type: boolean - checkCoordOOB: - type: boolean - dedupCoords: - type: boolean - subarray: - $ref: '#/components/schemas/DomainArray' - type: object - SubarrayRanges: - description: A set of 1D ranges for a subarray - example: - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - properties: - type: - $ref: '#/components/schemas/Datatype' - hasDefaultRange: - description: True if the range is the default range - type: boolean - buffer: - description: The bytes of the ranges - items: - format: uint8 - type: integer - type: array - type: object - Subarray: - description: A Subarray - example: - layout: null - ranges: - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - properties: - layout: - $ref: '#/components/schemas/Layout' - ranges: - description: "List of 1D ranges, one per dimension" - items: - $ref: '#/components/schemas/SubarrayRanges' - type: array - x-omitempty: true - type: object - SubarrayPartitioner: - description: The subarray partitioner - example: - memoryBudget: 9 - memoryBudgetVar: 3 - current: - splitMultiRange: true - start: 5 - end: 5 - subarray: - layout: null - ranges: - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - state: - start: 2 - end: 7 - singleRange: - - layout: null - ranges: - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - - layout: null - ranges: - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - multiRange: - - layout: null - ranges: - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - - layout: null - ranges: - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - subarray: - layout: null - ranges: - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - budget: - - dataBytes: 6 - offsetBytes: 0 - attribute: attribute - - dataBytes: 6 - offsetBytes: 0 - attribute: attribute - properties: - subarray: - $ref: '#/components/schemas/Subarray' - budget: - description: Result size budget (in bytes) for all attributes. - items: - $ref: '#/components/schemas/AttributeBufferSize' - type: array - x-omitempty: true - current: - $ref: '#/components/schemas/SubarrayPartitioner_current' - state: - $ref: '#/components/schemas/SubarrayPartitioner_state' - memoryBudget: - description: The memory budget for the fixed-sized attributes and the offsets - of the var-sized attributes - format: uint64 - type: integer - memoryBudgetVar: - description: The memory budget for the var-sized attributes - format: uint64 - type: integer - type: object - ReadState: - description: state for reads - example: - overflowed: true - initialized: true - unsplittable: true - subarrayPartitioner: - memoryBudget: 9 - memoryBudgetVar: 3 - current: - splitMultiRange: true - start: 5 - end: 5 - subarray: - layout: null - ranges: - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - state: - start: 2 - end: 7 - singleRange: - - layout: null - ranges: - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - - layout: null - ranges: - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - multiRange: - - layout: null - ranges: - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - - layout: null - ranges: - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - subarray: - layout: null - ranges: - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - budget: - - dataBytes: 6 - offsetBytes: 0 - attribute: attribute - - dataBytes: 6 - offsetBytes: 0 - attribute: attribute - properties: - initialized: - description: True if the reader has been initialized. - type: boolean - overflowed: - description: True if the query produced results that could not fit in some - buffer. - type: boolean - unsplittable: - description: True if the current subarray partition is unsplittable. - type: boolean - subarrayPartitioner: - $ref: '#/components/schemas/SubarrayPartitioner' - type: object - QueryReader: - description: Read struct (can't be called reader due to class name conflict) - example: - layout: null - varOffsetsAddExtraElement: true - varOffsetsBitsize: 2 - readState: - overflowed: true - initialized: true - unsplittable: true - subarrayPartitioner: - memoryBudget: 9 - memoryBudgetVar: 3 - current: - splitMultiRange: true - start: 5 - end: 5 - subarray: - layout: null - ranges: - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - state: - start: 2 - end: 7 - singleRange: - - layout: null - ranges: - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - - layout: null - ranges: - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - multiRange: - - layout: null - ranges: - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - - layout: null - ranges: - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - subarray: - layout: null - ranges: - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - budget: - - dataBytes: 6 - offsetBytes: 0 - attribute: attribute - - dataBytes: 6 - offsetBytes: 0 - attribute: attribute - varOffsetsMode: varOffsetsMode - subarray: - layout: null - ranges: - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - properties: - layout: - $ref: '#/components/schemas/Layout' - subarray: - $ref: '#/components/schemas/Subarray' - readState: - $ref: '#/components/schemas/ReadState' - varOffsetsMode: - description: The offsets format (bytes or elements) to be used. - type: string - varOffsetsAddExtraElement: - description: True if an extra element will be added to the end of the offsets - buffer. - type: boolean - varOffsetsBitsize: - description: The offsets bitsize (32 or 64) to be used. - format: uint32 - type: integer - type: object - Query: - example: - layout: null - array: - uri: uri - timestamp: 1540471791873 - queryType: null - totalFixedLengthBufferBytes: 4 - reader: - layout: null - varOffsetsAddExtraElement: true - varOffsetsBitsize: 2 - readState: - overflowed: true - initialized: true - unsplittable: true - subarrayPartitioner: - memoryBudget: 9 - memoryBudgetVar: 3 - current: - splitMultiRange: true - start: 5 - end: 5 - subarray: - layout: null - ranges: - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - state: - start: 2 - end: 7 - singleRange: - - layout: null - ranges: - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - - layout: null - ranges: - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - multiRange: - - layout: null - ranges: - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - - layout: null - ranges: - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - subarray: - layout: null - ranges: - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - budget: - - dataBytes: 6 - offsetBytes: 0 - attribute: attribute - - dataBytes: 6 - offsetBytes: 0 - attribute: attribute - varOffsetsMode: varOffsetsMode - subarray: - layout: null - ranges: - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - totalVarLenBufferBytes: 7 - attributeBufferHeaders: - - fixedLenBufferSizeInBytes: 0 - varLenBufferSizeInBytes: 6 - name: attribute1 - - fixedLenBufferSizeInBytes: 0 - varLenBufferSizeInBytes: 6 - name: attribute1 - writer: - checkCoordDups: true - checkCoordOOB: true - subarray: - int32: - - 1 - - 1 - int64: - - 7 - - 7 - int8: - - 4 - - 4 - uint64: - - 1 - - 1 - float32: - - 4.9652185 - - 4.9652185 - uint32: - - 6 - - 6 - float64: - - 5.025004791520295 - - 5.025004791520295 - uint8: - - 7 - - 7 - uint16: - - 1 - - 1 - int16: - - 1 - - 1 - dedupCoords: true - type: null - status: null - properties: - type: - $ref: '#/components/schemas/Querytype' - layout: - $ref: '#/components/schemas/Layout' - status: - $ref: '#/components/schemas/Querystatus' - attributeBufferHeaders: - description: List of attribute buffer headers - items: - $ref: '#/components/schemas/AttributeBufferHeader' - type: array - x-omitempty: true - writer: - $ref: '#/components/schemas/Writer' - reader: - $ref: '#/components/schemas/QueryReader' - array: - $ref: '#/components/schemas/Array' - totalFixedLengthBufferBytes: - description: Total number of bytes in fixed size attribute buffers. - format: uint64 - type: integer - totalVarLenBufferBytes: - description: Total number of bytes in variable size attribute buffers. - format: uint64 - type: integer - required: - - array - - attributeBufferHeaders - - layout - - status - - totalFixedLengthBufferBytes - - totalVarLenBufferBytes - - type - type: object - x-go-type: - import: - package: github.com/TileDB-Inc/TileDB-Go - alias: tiledb - type: Query - NonEmptyDomain: - description: object representing a non-empty domain - example: - isEmpty: false - nonEmptyDomain: - int32: - - 1 - - 1 - int64: - - 7 - - 7 - int8: - - 4 - - 4 - uint64: - - 1 - - 1 - float32: - - 4.9652185 - - 4.9652185 - uint32: - - 6 - - 6 - float64: - - 5.025004791520295 - - 5.025004791520295 - uint8: - - 7 - - 7 - uint16: - - 1 - - 1 - int16: - - 1 - - 1 - properties: - nonEmptyDomain: - $ref: '#/components/schemas/DomainArray' - isEmpty: - description: Is non-empty domain really empty? - example: false - type: boolean - required: - - isEmpty - - nonEmptyDomain - type: object - AttributeBufferSize: - description: object representing buffer size of an attribute - example: - dataBytes: 6 - offsetBytes: 0 - attribute: attribute - properties: - attribute: - description: name of attribute - type: string - offsetBytes: - description: buffer size (in bytes) of offset buffer - format: uint64 - type: integer - dataBytes: - description: buffer size (in bytes) of data buffer - format: uint64 - type: integer - required: - - attribute - - dataBytes - - offsetBytes - type: object - MaxBufferSizes: - description: "a list of max buffer sizes, one per attribute" - example: - maxBufferSizes: - - dataBytes: 6 - offsetBytes: 0 - attribute: attribute - - dataBytes: 6 - offsetBytes: 0 - attribute: attribute - properties: - maxBufferSizes: - items: - $ref: '#/components/schemas/AttributeBufferSize' - type: array - x-omitempty: true - type: object - ArrayMetadataEntry: - description: key/value pair representing an array metadata map entry - example: - valueNum: 0 - del: true - type: type - value: - - 6 - - 6 - key: key - properties: - key: - type: string - type: - type: string - valueNum: - format: uint32 - type: integer - value: - items: - format: uint8 - type: integer - type: array - del: - type: boolean - type: object - ArrayMetadata: - description: user's TileDB array metadata - example: - entries: - - valueNum: 0 - del: true - type: type - value: - - 6 - - 6 - key: key - - valueNum: 0 - del: true - type: type - value: - - 6 - - 6 - key: key - properties: - entries: - description: List of metadata entries - items: - $ref: '#/components/schemas/ArrayMetadataEntry' - type: array - x-omitempty: true - type: object - TileDBConfig: - description: user's TileDB config - example: - configs: - key: configs - properties: - configs: - additionalProperties: - type: string - type: object - type: object - ArrayActivityLog: - description: Actvity of an Array - example: - bytes_received: 1073741824 - action: null - query_stats: "{\"timers\": {\"Context.StorageManager.read_load_array_schema_from_uri.sum\"\ - : 0.0255293, \"...\": \"...\"}, \"counters\": {\"Context.StorageManager.read_unfiltered_byte_num\"\ - : 191, \"...\": \"...\"}}" - event_at: 2000-01-23T04:56:07.000+00:00 - array_task_id: 00000000-0000-0000-0000-000000000000 - id: 00000000-0000-0000-0000-000000000000 - bytes_sent: 1073741824 - query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3, \"end\"\ - : 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" - username: user1 - properties: - event_at: - description: time event took place (RFC3339) - format: date-time - type: string - action: - $ref: '#/components/schemas/ActivityEventType' - username: - description: User who performed action - example: user1 - type: string - bytes_sent: - description: Bytes sent to client - example: 1073741824 - format: uint64 - type: integer - bytes_received: - description: Bytes recieved from client - example: 1073741824 - format: uint64 - type: integer - array_task_id: - description: UUID of associated array task - example: 00000000-0000-0000-0000-000000000000 - type: string - id: - description: ID of the activity - example: 00000000-0000-0000-0000-000000000000 - type: string - query_ranges: - description: ranges for query - example: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3, \"end\":\ - \ 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" - type: string - x-omitempty: true - query_stats: - description: stats for query - example: "{\"timers\": {\"Context.StorageManager.read_load_array_schema_from_uri.sum\"\ - : 0.0255293, \"...\": \"...\"}, \"counters\": {\"Context.StorageManager.read_unfiltered_byte_num\"\ - : 191, \"...\": \"...\"}}" - type: string - x-omitempty: true - type: object - ArrayTaskType: - description: Synchronous Task Type - enum: - - SQL - - UDF - - QUERY - - GENERIC_UDF - - CLIENT_COMPUTATION - type: string - ArrayTaskStatus: - description: Status of array task - enum: - - QUEUED - - FAILED - - COMPLETED - - RUNNING - - RESOURCES_UNAVAILABLE - - UNKNOWN - - CANCELLED - - DENIED - type: string - ArrayTaskLog: - description: Array task stderr/stdout logs - properties: - array_task_id: - description: ID of associated task - type: string - logs: - description: logs from array task - type: string - type: object - ArrayTask: - description: Synchronous Task to Run - example: - memory: 1073741824 - activity: - - bytes_received: 1073741824 - action: null - query_stats: "{\"timers\": {\"Context.StorageManager.read_load_array_schema_from_uri.sum\"\ - : 0.0255293, \"...\": \"...\"}, \"counters\": {\"Context.StorageManager.read_unfiltered_byte_num\"\ - : 191, \"...\": \"...\"}}" - event_at: 2000-01-23T04:56:07.000+00:00 - array_task_id: 00000000-0000-0000-0000-000000000000 - id: 00000000-0000-0000-0000-000000000000 - bytes_sent: 1073741824 - query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3, \"end\"\ - : 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" - username: user1 - - bytes_received: 1073741824 - action: null - query_stats: "{\"timers\": {\"Context.StorageManager.read_load_array_schema_from_uri.sum\"\ - : 0.0255293, \"...\": \"...\"}, \"counters\": {\"Context.StorageManager.read_unfiltered_byte_num\"\ - : 191, \"...\": \"...\"}}" - event_at: 2000-01-23T04:56:07.000+00:00 - array_task_id: 00000000-0000-0000-0000-000000000000 - id: 00000000-0000-0000-0000-000000000000 - bytes_sent: 1073741824 - query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3, \"end\"\ - : 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" - username: user1 - description: Return attr a1 in the subarray bounded by coordinates and multiply - attr1 by 2 - type: null - duration: 341000000000 - sql_init_commands: - - sql_init_commands - - sql_init_commands - sql_query: sql_query - id: id - logs: logs - udf_language: udf_language - cost: 0.12 - sql_parameters: - - "{}" - - "{}" - udf_code: udf_code - access_cost: 0.12 - cpu: 4000 - result_format: null - query_type: null - task_graph_uuid: task_graph_uuid - finish_time: 2000-01-23T04:56:07.000+00:00 - start_time: 2000-01-23T04:56:07.000+00:00 - name: subarray-multiplier - namespace: organization1 - client_node_uuid: client_node_uuid - array_metadata: - subscriptions: - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - last_accessed: 2000-01-23T04:56:07.000+00:00 - is_favorite: true - description: description - public_share: true - namespace_subscribed: false - type: sparse - uri: s3://bucket/array - tags: - - tags - - tags - share_count: 6.027456183070403 - allowed_actions: - - null - - null - size: 1024.0 - read_only: false - file_type: null - license_id: license_id - license_text: license_text - access_credentials_name: access_credentials_name - namespace: user1 - name: myarray1 - logo: logo - file_properties: - key: file_properties - tiledb_uri: tiledb_uri - id: 00000000-0000-0000-0000-000000000000 - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - egress_cost: 0.12 - subarray: - int32: - - 1 - - 1 - int64: - - 7 - - 7 - int8: - - 4 - - 4 - uint64: - - 1 - - 1 - float32: - - 4.9652185 - - 4.9652185 - uint32: - - 6 - - 6 - float64: - - 5.025004791520295 - - 5.025004791520295 - uint8: - - 7 - - 7 - uint16: - - 1 - - 1 - int16: - - 1 - - 1 - status: null - properties: - id: - description: task ID - type: string - name: - description: Optional task name - example: subarray-multiplier - type: string - description: - description: Optional task description (Tasks purpose) - example: Return attr a1 in the subarray bounded by coordinates and multiply - attr1 by 2 - type: string - array_metadata: - $ref: '#/components/schemas/ArrayInfo' - subarray: - $ref: '#/components/schemas/DomainArray' - memory: - description: memory allocated to task in bytes - example: 1073741824 - format: uint64 - type: integer - cpu: - description: millicpu allocated to task - example: 4000 - format: uint64 - type: integer - namespace: - description: namespace task is tied to - example: organization1 - type: string - status: - $ref: '#/components/schemas/ArrayTaskStatus' - start_time: - description: Start time RFC3339 for job - format: date-time - type: string - finish_time: - description: Finish time RFC3339 for job - format: date-time - nullable: true - type: string - cost: - description: "Total accumulated for task in USD, example is $0.12" - example: 0.12 - format: double - type: number - egress_cost: - description: "Total accumulated for egress task in USD, example is $0.12" - example: 0.12 - format: double - type: number - access_cost: - description: "Cost accumulated for access task in USD, example is $0.12" - example: 0.12 - format: double - type: number - query_type: - $ref: '#/components/schemas/Querytype' - udf_code: - description: Optional actual code that is going to be executed - type: string - udf_language: - description: Optional actual language used to express udf_code - type: string - sql_query: - description: Optional actual sql query that is going to be executed - type: string - type: - $ref: '#/components/schemas/ArrayTaskType' - activity: - description: Array activity logs for task - items: - $ref: '#/components/schemas/ArrayActivityLog' - type: array - x-omitempty: true - logs: - description: logs from array task - type: string - x-omitempty: false - duration: - description: duration in nanoseconds of an array task - example: 341000000000 - type: number - sql_init_commands: - description: SQL queries or commands to run before main sql query - items: - description: sql query or command to run before main sql query - type: string - type: array - sql_parameters: - description: SQL query parameters - items: - type: object - type: array - result_format: - $ref: '#/components/schemas/ResultFormat' - task_graph_uuid: - description: "If set, the ID of the log for the task graph that this was\ - \ part of.\n" - type: string - x-omitempty: true - client_node_uuid: - description: "If set, the client-defined ID of the node within this task's\ - \ graph.\n" - type: string - x-omitempty: true - type: object - PaginationMetadata: - example: - per_page: 10.0 - page: 1.0 - total_pages: 14.0 - total_items: 138.0 - properties: - page: - description: pagination offset. Use it to skip the first ((page - 1) * per_page) - items - example: 1.0 - format: uint64 - type: number - per_page: - description: pagination limit (page size) - example: 10.0 - format: uint64 - type: number - total_pages: - description: number of total pages with current limit - example: 14.0 - format: uint64 - type: number - total_items: - description: number of total available items - example: 138.0 - format: uint64 - type: number - type: object - ArrayTaskData: - description: Object including array tasks and metadata - example: - pagination_metadata: - per_page: 10.0 - page: 1.0 - total_pages: 14.0 - total_items: 138.0 - array_tasks: - - memory: 1073741824 - activity: - - bytes_received: 1073741824 - action: null - query_stats: "{\"timers\": {\"Context.StorageManager.read_load_array_schema_from_uri.sum\"\ - : 0.0255293, \"...\": \"...\"}, \"counters\": {\"Context.StorageManager.read_unfiltered_byte_num\"\ - : 191, \"...\": \"...\"}}" - event_at: 2000-01-23T04:56:07.000+00:00 - array_task_id: 00000000-0000-0000-0000-000000000000 - id: 00000000-0000-0000-0000-000000000000 - bytes_sent: 1073741824 - query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3, \"\ - end\": 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" - username: user1 - - bytes_received: 1073741824 - action: null - query_stats: "{\"timers\": {\"Context.StorageManager.read_load_array_schema_from_uri.sum\"\ - : 0.0255293, \"...\": \"...\"}, \"counters\": {\"Context.StorageManager.read_unfiltered_byte_num\"\ - : 191, \"...\": \"...\"}}" - event_at: 2000-01-23T04:56:07.000+00:00 - array_task_id: 00000000-0000-0000-0000-000000000000 - id: 00000000-0000-0000-0000-000000000000 - bytes_sent: 1073741824 - query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3, \"\ - end\": 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" - username: user1 - description: Return attr a1 in the subarray bounded by coordinates and multiply - attr1 by 2 - type: null - duration: 341000000000 - sql_init_commands: - - sql_init_commands - - sql_init_commands - sql_query: sql_query - id: id - logs: logs - udf_language: udf_language - cost: 0.12 - sql_parameters: - - "{}" - - "{}" - udf_code: udf_code - access_cost: 0.12 - cpu: 4000 - result_format: null - query_type: null - task_graph_uuid: task_graph_uuid - finish_time: 2000-01-23T04:56:07.000+00:00 - start_time: 2000-01-23T04:56:07.000+00:00 - name: subarray-multiplier - namespace: organization1 - client_node_uuid: client_node_uuid - array_metadata: - subscriptions: - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - last_accessed: 2000-01-23T04:56:07.000+00:00 - is_favorite: true - description: description - public_share: true - namespace_subscribed: false - type: sparse - uri: s3://bucket/array - tags: - - tags - - tags - share_count: 6.027456183070403 - allowed_actions: - - null - - null - size: 1024.0 - read_only: false - file_type: null - license_id: license_id - license_text: license_text - access_credentials_name: access_credentials_name - namespace: user1 - name: myarray1 - logo: logo - file_properties: - key: file_properties - tiledb_uri: tiledb_uri - id: 00000000-0000-0000-0000-000000000000 - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - egress_cost: 0.12 - subarray: - int32: - - 1 - - 1 - int64: - - 7 - - 7 - int8: - - 4 - - 4 - uint64: - - 1 - - 1 - float32: - - 4.9652185 - - 4.9652185 - uint32: - - 6 - - 6 - float64: - - 5.025004791520295 - - 5.025004791520295 - uint8: - - 7 - - 7 - uint16: - - 1 - - 1 - int16: - - 1 - - 1 - status: null - - memory: 1073741824 - activity: - - bytes_received: 1073741824 - action: null - query_stats: "{\"timers\": {\"Context.StorageManager.read_load_array_schema_from_uri.sum\"\ - : 0.0255293, \"...\": \"...\"}, \"counters\": {\"Context.StorageManager.read_unfiltered_byte_num\"\ - : 191, \"...\": \"...\"}}" - event_at: 2000-01-23T04:56:07.000+00:00 - array_task_id: 00000000-0000-0000-0000-000000000000 - id: 00000000-0000-0000-0000-000000000000 - bytes_sent: 1073741824 - query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3, \"\ - end\": 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" - username: user1 - - bytes_received: 1073741824 - action: null - query_stats: "{\"timers\": {\"Context.StorageManager.read_load_array_schema_from_uri.sum\"\ - : 0.0255293, \"...\": \"...\"}, \"counters\": {\"Context.StorageManager.read_unfiltered_byte_num\"\ - : 191, \"...\": \"...\"}}" - event_at: 2000-01-23T04:56:07.000+00:00 - array_task_id: 00000000-0000-0000-0000-000000000000 - id: 00000000-0000-0000-0000-000000000000 - bytes_sent: 1073741824 - query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3, \"\ - end\": 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" - username: user1 - description: Return attr a1 in the subarray bounded by coordinates and multiply - attr1 by 2 - type: null - duration: 341000000000 - sql_init_commands: - - sql_init_commands - - sql_init_commands - sql_query: sql_query - id: id - logs: logs - udf_language: udf_language - cost: 0.12 - sql_parameters: - - "{}" - - "{}" - udf_code: udf_code - access_cost: 0.12 - cpu: 4000 - result_format: null - query_type: null - task_graph_uuid: task_graph_uuid - finish_time: 2000-01-23T04:56:07.000+00:00 - start_time: 2000-01-23T04:56:07.000+00:00 - name: subarray-multiplier - namespace: organization1 - client_node_uuid: client_node_uuid - array_metadata: - subscriptions: - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - last_accessed: 2000-01-23T04:56:07.000+00:00 - is_favorite: true - description: description - public_share: true - namespace_subscribed: false - type: sparse - uri: s3://bucket/array - tags: - - tags - - tags - share_count: 6.027456183070403 - allowed_actions: - - null - - null - size: 1024.0 - read_only: false - file_type: null - license_id: license_id - license_text: license_text - access_credentials_name: access_credentials_name - namespace: user1 - name: myarray1 - logo: logo - file_properties: - key: file_properties - tiledb_uri: tiledb_uri - id: 00000000-0000-0000-0000-000000000000 - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - egress_cost: 0.12 - subarray: - int32: - - 1 - - 1 - int64: - - 7 - - 7 - int8: - - 4 - - 4 - uint64: - - 1 - - 1 - float32: - - 4.9652185 - - 4.9652185 - uint32: - - 6 - - 6 - float64: - - 5.025004791520295 - - 5.025004791520295 - uint8: - - 7 - - 7 - uint16: - - 1 - - 1 - int16: - - 1 - - 1 - status: null - properties: - array_tasks: - description: Array Tasks - items: - $ref: '#/components/schemas/ArrayTask' - type: array - x-omitempty: true - pagination_metadata: - $ref: '#/components/schemas/PaginationMetadata' - type: object - ArrayTaskBrowserSidebar: - description: Object for ui array tasks browser page - example: - result_count_for_all: 0 - organizations: - - organizations - - organizations - result_count_by_namespace: "{}" - properties: - organizations: - description: list of all unique organizations the user is part of that have - array tasks - items: - type: string - type: array - x-omitempty: false - result_count_for_all: - description: A count of "all" - type: integer - x-omitempty: false - result_count_by_namespace: - description: A map that includes the result count by namespace - type: object - x-omitempty: false - type: object - LastAccessedArray: - description: Information related to last access of an array - example: - array_id: 00000000-0000-0000-0000-000000000000 - access_type: null - namespace: mockuser - array_name: array1 - accessed_time: 1540471791873 - properties: - array_id: - description: unique ID of array - example: 00000000-0000-0000-0000-000000000000 - type: string - array_name: - description: name of the array - example: array1 - type: string - namespace: - description: namespace of a user or organization - example: mockuser - type: string - accessed_time: - description: timestamp (epoch milliseconds) array is last accessed - example: 1540471791873 - format: uint64 - type: number - access_type: - $ref: '#/components/schemas/ActivityEventType' - type: object - ArraySample: - description: Sample data from array - example: - data: "{}" - properties: - data: - type: object - type: object - ArrayMetadataJson: - description: Metadata from array in Json format - type: object - NonEmptyDomainJson: - description: Non-empty domain from array in Json format - type: object - ArrayBrowserData: - description: Object including array info and pagination metadata - example: - pagination_metadata: - per_page: 10.0 - page: 1.0 - total_pages: 14.0 - total_items: 138.0 - arrays: - - subscriptions: - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - last_accessed: 2000-01-23T04:56:07.000+00:00 - is_favorite: true - description: description - public_share: true - namespace_subscribed: false - type: sparse - uri: s3://bucket/array - tags: - - tags - - tags - share_count: 6.027456183070403 - allowed_actions: - - null - - null - size: 1024.0 - read_only: false - file_type: null - license_id: license_id - license_text: license_text - access_credentials_name: access_credentials_name - namespace: user1 - name: myarray1 - logo: logo - file_properties: - key: file_properties - tiledb_uri: tiledb_uri - id: 00000000-0000-0000-0000-000000000000 - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - subscriptions: - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - last_accessed: 2000-01-23T04:56:07.000+00:00 - is_favorite: true - description: description - public_share: true - namespace_subscribed: false - type: sparse - uri: s3://bucket/array - tags: - - tags - - tags - share_count: 6.027456183070403 - allowed_actions: - - null - - null - size: 1024.0 - read_only: false - file_type: null - license_id: license_id - license_text: license_text - access_credentials_name: access_credentials_name - namespace: user1 - name: myarray1 - logo: logo - file_properties: - key: file_properties - tiledb_uri: tiledb_uri - id: 00000000-0000-0000-0000-000000000000 - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - properties: - arrays: - description: Array Info - items: - $ref: '#/components/schemas/ArrayInfo' - type: array - x-omitempty: true - pagination_metadata: - $ref: '#/components/schemas/PaginationMetadata' - type: object - ArrayEndTimestampData: - description: Object including array end_timestamps (list of Unix epoch timestamps - in milliseconds) and pagination metadata - example: - pagination_metadata: - per_page: 10.0 - page: 1.0 - total_pages: 14.0 - total_items: 138.0 - end_timestamps: - - 0 - - 0 - properties: - end_timestamps: - description: List of timestamps expressed in milliseconds since Unix epoch - items: - format: uint64 - type: integer - type: array - x-omitempty: true - pagination_metadata: - $ref: '#/components/schemas/PaginationMetadata' - type: object - ArrayBrowserSidebar: - description: Object for ui array tasks browser page - example: - result_count_for_all: 0 - result_count_by_namespace: "{}" - namespaces: - - namespaces - - namespaces - properties: - namespaces: - description: list of all unique namespaces to display - items: - type: string - type: array - x-omitempty: false - result_count_for_all: - description: A count of "all" of category - type: integer - x-omitempty: false - result_count_by_namespace: - description: A map that includes the result count by namespace - type: object - x-omitempty: false - type: object - Error: - properties: - code: - format: int64 - type: integer - message: - type: string - request_id: - type: string - type: object - User: - description: User - example: - is_valid_email: false - timezone: Europe/Athens - last_activity_date: 2000-01-23T04:56:07.000+00:00 - unpaid_subscription: true - enabled_features: - - enabled_features - - enabled_features - default_s3_path_credentials_name: default_s3_path_credentials_name - default_namespace_charged: default_namespace_charged - password: password - allowed_actions: - - null - - null - stripe_connect: false - default_s3_path: default_s3_path - name: Jane Doe - organizations: - - role: null - allowed_actions: - - null - - null - user_id: 00000000-0000-0000-0000-000000000000 - organization_id: 00000000-0000-0000-0000-000000000000 - organization_name: MyOrganization - username: username - - role: null - allowed_actions: - - null - - null - user_id: 00000000-0000-0000-0000-000000000000 - organization_id: 00000000-0000-0000-0000-000000000000 - organization_name: MyOrganization - username: username - logo: logo - company: TileDB - id: 00000000-0000-0000-0000-000000000000 - email: jane.doe@example.com - username: username - properties: - id: - description: unique ID of user - example: 00000000-0000-0000-0000-000000000000 - type: string - username: - description: username must be unique - example: username - maxLength: 63 - minLength: 1 - pattern: "^[\\w.\\-]+$" - type: string - password: - description: password - example: password - minLength: 8 - type: string - name: - description: "the user's full, real name" - example: Jane Doe - minLength: 1 - type: string - email: - description: the user's email - example: jane.doe@example.com - type: string - is_valid_email: - description: user's email is validated to be correct - example: false - readOnly: true - type: boolean - stripe_connect: - description: Denotes that the user is able to apply pricing to arrays by - means of Stripe Connect - example: false - readOnly: true - type: boolean - company: - description: the user's company - example: TileDB - type: string - logo: - description: the user's logo - nullable: true - type: string - last_activity_date: - description: when the user last logged in (set by the server) - format: date-time - readOnly: true - type: string - timezone: - example: Europe/Athens - type: string - organizations: - description: Array of organizations a user is part of and their roles - items: - $ref: '#/components/schemas/OrganizationUser' - readOnly: true - type: array - x-omitempty: true - allowed_actions: - description: list of actions user is allowed to do on this organization - items: - $ref: '#/components/schemas/NamespaceActions' - type: array - x-omitempty: true - enabled_features: - description: List of extra/optional/beta features to enable for namespace - items: - type: string - readOnly: true - type: array - x-omitempty: true - unpaid_subscription: - description: A notice that the user has an unpaid subscription - readOnly: true - type: boolean - x-omitempty: false - default_s3_path: - description: default S3 path to store newly created notebooks - type: string - default_s3_path_credentials_name: - description: Default S3 path credentials name is the credentials name to - use along with default_s3_path - type: string - default_namespace_charged: - description: Override the default namespace charged for actions when no - namespace is specified - type: string - required: - - username - type: object - OrganizationUser: - description: user in an organization - example: - role: null - allowed_actions: - - null - - null - user_id: 00000000-0000-0000-0000-000000000000 - organization_id: 00000000-0000-0000-0000-000000000000 - organization_name: MyOrganization - username: username - properties: - user_id: - description: unique ID of user - example: 00000000-0000-0000-0000-000000000000 - type: string - organization_id: - description: unique ID of organization - example: 00000000-0000-0000-0000-000000000000 - type: string - username: - description: username for user - example: username - type: string - organization_name: - description: name of organization - example: MyOrganization - type: string - role: - $ref: '#/components/schemas/OrganizationRoles' - allowed_actions: - description: list of actions user is allowed to do on this organization - items: - $ref: '#/components/schemas/NamespaceActions' - type: array - x-omitempty: true - type: object - Organization: - description: Organization - example: - role: null - created_at: 2000-01-23T04:56:07.000+00:00 - description: description - unpaid_subscription: true - users: - - role: null - allowed_actions: - - null - - null - user_id: 00000000-0000-0000-0000-000000000000 - organization_id: 00000000-0000-0000-0000-000000000000 - organization_name: MyOrganization - username: username - - role: null - allowed_actions: - - null - - null - user_id: 00000000-0000-0000-0000-000000000000 - organization_id: 00000000-0000-0000-0000-000000000000 - organization_name: MyOrganization - username: username - enabled_features: - - enabled_features - - enabled_features - default_s3_path_credentials_name: default_s3_path_credentials_name - allowed_actions: - - null - - null - updated_at: 2000-01-23T04:56:07.000+00:00 - default_s3_path: default_s3_path - stripe_connect: false - name: name - logo: logo - id: 00000000-0000-0000-0000-000000000000 - num_of_arrays: 0.8008281904610115 - properties: - id: - description: unique ID of organization - example: 00000000-0000-0000-0000-000000000000 - type: string - role: - $ref: '#/components/schemas/OrganizationRoles' - name: - description: organization name must be unique - maxLength: 63 - minLength: 1 - pattern: "^[\\w.\\-]+$" - type: string - created_at: - description: Datetime organization was created in UTC - format: date-time - type: string - updated_at: - description: Datetime organization was updated in UTC - format: date-time - type: string - logo: - description: Organization logo - nullable: true - type: string - description: - description: Organization description - nullable: true - type: string - users: - items: - $ref: '#/components/schemas/OrganizationUser' - type: array - x-omitempty: true - allowed_actions: - description: list of actions user is allowed to do on this organization - items: - $ref: '#/components/schemas/NamespaceActions' - type: array - x-omitempty: true - num_of_arrays: - description: number of registered arrays for this organization - format: int32 - type: number - x-omitempty: false - enabled_features: - description: List of extra/optional/beta features to enable for namespace - items: - type: string - readOnly: true - type: array - x-omitempty: true - unpaid_subscription: - description: A notice that the user has an unpaid subscription - readOnly: true - type: boolean - x-omitempty: false - default_s3_path: - description: default S3 path to store newly created notebooks - type: string - default_s3_path_credentials_name: - description: Default S3 path credentials name is the credentials name to - use along with default_s3_path - type: string - stripe_connect: - description: Denotes that the organization is able to apply pricing to arrays - by means of Stripe Connect - example: false - readOnly: true - type: boolean - required: - - name - type: object - ArraySharing: - description: details for sharing a given array - example: - namespace: MyOrganization - namespace_type: organization - actions: - - read - - write - properties: - actions: - description: List of permitted actions - example: - - read - - write - items: - $ref: '#/components/schemas/ArrayActions' - type: array - x-omitempty: true - namespace: - description: namespace being granted array access can be a user or organization - example: MyOrganization - type: string - namespace_type: - description: details on if the namespace is a organization or user - example: organization - type: string - type: object - UDFSharing: - description: details for sharing a given UDF - example: - namespace: MyOrganization - namespace_type: organization - actions: - - fetch - - share - properties: - actions: - description: List of permitted actions - example: - - fetch - - share - items: - $ref: '#/components/schemas/UDFActions' - type: array - x-omitempty: true - namespace: - description: namespace being granted array access can be a user or organization - example: MyOrganization - type: string - namespace_type: - description: details on if the namespace is a organization or user - example: organization - type: string - type: object - FileType: - description: File types represented as TileDB arrays - enum: - - notebook - - user_defined_function - - ml_model - - file - - registered_task_graph - type: string - FilePropertyName: - description: File property assigned to a specific file (array) - enum: - - image - - size - - code_block - - udf_language - - is_dashboard - type: string - PricingType: - description: Pricing types - enum: - - egress - - access - type: string - PricingCurrency: - description: Currency of pricing - enum: - - USD - type: string - PricingUnitLabel: - description: Unit label - enum: - - byte - - second - type: string - PricingAggregateUsage: - description: Specifies a usage aggregation strategy for pricings of usage_type=metered - enum: - - sum - type: string - PricingInterval: - description: Interval for pricing - enum: - - month - type: string - Pricing: - description: Pricing created by converting an array to product - example: - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - properties: - id: - description: Unique ID of plan as defined by Stripe - example: planID - type: string - array_uuid: - description: Unique ID of registered array - example: 00000000-0000-0000-0000-000000000000 - type: string - pricing_name: - description: Name of pricing - type: string - pricing_type: - $ref: '#/components/schemas/PricingType' - product_name: - description: Name of product - type: string - product_statement_descriptor: - description: Extra information about a product which will appear on the - credit card statement of the customer - type: string - product_unit_label: - $ref: '#/components/schemas/PricingUnitLabel' - currency: - $ref: '#/components/schemas/PricingCurrency' - aggregate_usage: - $ref: '#/components/schemas/PricingAggregateUsage' - interval: - $ref: '#/components/schemas/PricingInterval' - divided_by: - description: Group of n product unit labels - example: 1048576 - format: int64 - type: integer - charge: - description: Price in cents (decimal) per unitlabel - format: double - type: number - activated: - description: If pricing is activated - example: false - type: boolean - type: object - Subscription: - description: Subscription of a user (customer) to another user's arrays - example: - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - properties: - id: - description: Unique ID of subscription as defined by Stripe - example: subscriptionID - type: string - owner_namespace_uuid: - description: Unique ID of the array (product) owner - example: 00000000-0000-0000-0000-000000000000 - type: string - customer_namespace_uuid: - description: Unique ID of the array (product) user (customer) - example: 00000000-0000-0000-0000-000000000000 - type: string - pricing: - description: list of pricing used by this subscription - items: - $ref: '#/components/schemas/Pricing' - type: array - x-omitempty: true - type: object - ArrayInfo: - description: metadata of an array - example: - subscriptions: - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - last_accessed: 2000-01-23T04:56:07.000+00:00 - is_favorite: true - description: description - public_share: true - namespace_subscribed: false - type: sparse - uri: s3://bucket/array - tags: - - tags - - tags - share_count: 6.027456183070403 - allowed_actions: - - null - - null - size: 1024.0 - read_only: false - file_type: null - license_id: license_id - license_text: license_text - access_credentials_name: access_credentials_name - namespace: user1 - name: myarray1 - logo: logo - file_properties: - key: file_properties - tiledb_uri: tiledb_uri - id: 00000000-0000-0000-0000-000000000000 - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - properties: - id: - description: unique ID of registered array - example: 00000000-0000-0000-0000-000000000000 - type: string - file_type: - $ref: '#/components/schemas/FileType' - file_properties: - additionalProperties: - type: string - description: map of file properties created for this array - type: object - x-omitempty: true - uri: - description: uri of array - example: s3://bucket/array - type: string - namespace: - description: namespace array is in - example: user1 - type: string - size: - description: size in bytes of array - example: 1024.0 - format: uint64 - nullable: true - type: number - last_accessed: - description: Datetime array was last accessed in UTC - format: date-time - type: string - description: - description: description of array - nullable: true - type: string - name: - description: name of array - example: myarray1 - type: string - allowed_actions: - description: list of actions user is allowed to do on this array - items: - $ref: '#/components/schemas/ArrayActions' - type: array - x-omitempty: true - pricing: - description: list of pricing created for this array - items: - $ref: '#/components/schemas/Pricing' - type: array - x-omitempty: true - subscriptions: - description: list of subscriptions created for this array - items: - $ref: '#/components/schemas/Subscription' - type: array - x-omitempty: true - logo: - description: logo (base64 encoded) for the array. Optional - type: string - access_credentials_name: - description: "the name of the access credentials to use. if unset, the default\ - \ credentials will be used" - type: string - type: - description: "Array type (dense, key-value, sparse)" - example: sparse - type: string - share_count: - description: number of unique namespaces this array is shared with - format: int32 - type: number - public_share: - description: Suggests if the array was shared to public by owner - example: true - type: boolean - x-omitempty: false - namespace_subscribed: - description: "Depends on the namespace asking, denotes the existence of\ - \ subscription of namespace to this array" - example: false - readOnly: true - type: boolean - tiledb_uri: - description: uri for access through TileDB cloud - type: string - x-omitempty: false - tags: - description: optional tags for array - items: - description: "tag must be lowercase characters or hypen [a-z-]" - type: string - type: array - x-omitempty: false - license_id: - description: License identifier from SPDX License List or Custom - type: string - x-omitempty: true - license_text: - description: License text - type: string - x-omitempty: true - read_only: - description: Suggests if the array is in read_only mode - example: false - nullable: true - type: boolean - is_favorite: - description: Indicates whether the array is in user favorites - example: true - type: boolean - x-omitempty: true - type: object - ArrayInfoUpdate: - description: metadata of an array - example: - read_only: true - file_type: null - license_id: license_id - license_text: license_text - access_credentials_name: access_credentials_name - name: myarray1 - description: description - logo: logo - file_properties: - key: file_properties - uri: s3://bucket/array - tags: - - tags - - tags - properties: - description: - description: description of array - nullable: true - type: string - name: - description: description of array - example: myarray1 - type: string - uri: - description: uri of array - example: s3://bucket/array - type: string - file_type: - $ref: '#/components/schemas/FileType' - file_properties: - additionalProperties: - type: string - description: map of file properties created for this array - type: object - x-omitempty: true - access_credentials_name: - description: "the name of the access credentials to use. if unset, the default\ - \ credentials will be used" - type: string - logo: - description: logo (base64 encoded) for the array. Optional - type: string - tags: - description: optional tags for array - items: - description: "tag must be lowercase characters or hypen [a-z-]" - type: string - type: array - x-omitempty: false - license_id: - description: License identifier from SPDX License List or Custom - type: string - x-omitempty: true - license_text: - description: License text - type: string - x-omitempty: true - read_only: - description: Suggests if the array is in read_only mode - example: true - type: boolean - x-omitempty: true - type: object - TokenRequest: - description: A request from a user for an api token - example: - expires: 2018-12-31T12:13:14Z - scope: '*' - name: myToken - properties: - expires: - description: "Expiration date for token, if empty token defaults to 30 minutes" - example: 2018-12-31T12:13:14Z - format: date-time - type: string - name: - description: "Optional name for token, if the name already exists for the\ - \ user it will be auto incremented (i.e. myToken-1)" - example: myToken - type: string - scope: - default: '*' - description: "Optional scope to limit token, defaults to all permissions,\ - \ current supported values are password_reset or *" - example: '*' - type: string - type: object - Token: - description: A api token and its metadata - example: - expires_at: 2000-01-23T04:56:07.000+00:00 - scope: '*' - name: name - issued_at: 2000-01-23T04:56:07.000+00:00 - token: token - properties: - token: - description: A api token - type: string - name: - description: Name of token to revoke - type: string - issued_at: - description: datetime the token was created - format: date-time - type: string - expires_at: - description: datetime the token when token will expire - format: date-time - type: string - scope: - default: '*' - description: "Optional scope to limit token, defaults to all permissions,\ - \ current supported values are password_reset or *" - example: '*' - type: string - type: object - AWSAccessCredentials: - description: "Model representing aws keys or service role, service roles are\ - \ currently ignored, but will be preferred option in the future" - example: - access_key_id: access_key_id - service_role_arn: service_role_arn - default: true - updated_at: 2000-01-23T04:56:07.000+00:00 - buckets: - - s3://company-bucket-1/tiledb/ - - s3://company-bucket-1/tiledb/ - secret_access_key: secret_access_key - name: name - created_at: 2000-01-23T04:56:07.000+00:00 - properties: - secret_access_key: - description: "aws secret access key, never returned in get requests" - type: string - access_key_id: - description: aws access key - type: string - service_role_arn: - description: aws service role to use for access - type: string - name: - description: human readable name - type: string - default: - description: true if this is the default credential to be used within this - namespace - type: boolean - x-omitempty: true - buckets: - description: a whitelist of one or more buckets this key should access - items: - description: A bucket or path of a bucket that is granted access by these - credentials - example: s3://company-bucket-1/tiledb/ - type: string - type: array - x-omitempty: true - created_at: - description: Time when UDF dependencies were created (rfc3339) - format: date-time - readOnly: true - type: string - updated_at: - description: Time when UDF dependencies was last updated (rfc3339) - format: date-time - readOnly: true - type: string - type: object - SSOProvider: - description: Single sign on provider - enum: - - github - - google - - stripe - - okta - type: string - PublicShareFilter: - description: Query parameter to get array metadatas - enum: - - exclude - - only - type: string - DimensionCoordinate: - description: "A single, typed coordinate for a dimension" - example: - int32: 7 - int64: 3 - int8: 1 - uint64: 2 - float32: 4.145608 - uint32: 9 - float64: 7.386281948385884 - uint8: 5 - uint16: 2 - int16: 5 - properties: - int8: - format: int8 - type: integer - x-omitempty: false - uint8: - format: uint8 - type: integer - x-omitempty: false - int16: - format: int16 - type: integer - x-omitempty: false - uint16: - format: uint16 - type: integer - x-omitempty: false - int32: - format: int32 - type: integer - x-omitempty: false - uint32: - format: uint32 - type: integer - x-omitempty: false - int64: - format: int64 - type: integer - x-omitempty: false - uint64: - format: uint64 - type: integer - x-omitempty: false - float32: - format: float - type: number - x-omitempty: false - float64: - format: double - type: number - x-omitempty: false - type: object - UDFSubarrayRange: - description: A dimension range to query - example: - range_end: - int32: 7 - int64: 3 - int8: 1 - uint64: 2 - float32: 4.145608 - uint32: 9 - float64: 7.386281948385884 - uint8: 5 - uint16: 2 - int16: 5 - dimension_id: 6 - range_start: - int32: 7 - int64: 3 - int8: 1 - uint64: 2 - float32: 4.145608 - uint32: 9 - float64: 7.386281948385884 - uint8: 5 - uint16: 2 - int16: 5 - properties: - dimension_id: - description: The dimension index - type: integer - x-omitempty: false - range_start: - $ref: '#/components/schemas/DimensionCoordinate' - range_end: - $ref: '#/components/schemas/DimensionCoordinate' - type: object - UDFSubarray: - description: Subarray bounds to query for a UDF to operate on - example: - layout: null - ranges: - - range_end: - int32: 7 - int64: 3 - int8: 1 - uint64: 2 - float32: 4.145608 - uint32: 9 - float64: 7.386281948385884 - uint8: 5 - uint16: 2 - int16: 5 - dimension_id: 6 - range_start: - int32: 7 - int64: 3 - int8: 1 - uint64: 2 - float32: 4.145608 - uint32: 9 - float64: 7.386281948385884 - uint8: 5 - uint16: 2 - int16: 5 - - range_end: - int32: 7 - int64: 3 - int8: 1 - uint64: 2 - float32: 4.145608 - uint32: 9 - float64: 7.386281948385884 - uint8: 5 - uint16: 2 - int16: 5 - dimension_id: 6 - range_start: - int32: 7 - int64: 3 - int8: 1 - uint64: 2 - float32: 4.145608 - uint32: 9 - float64: 7.386281948385884 - uint8: 5 - uint16: 2 - int16: 5 - properties: - layout: - $ref: '#/components/schemas/Layout' - ranges: - description: "List of ranges," - items: - $ref: '#/components/schemas/UDFSubarrayRange' - type: array - type: object - QueryRanges: - description: Subarray bounds to query - example: - layout: null - ranges: - - - 0.8008281904610115 - - 0.8008281904610115 - - - 0.8008281904610115 - - 0.8008281904610115 - properties: - layout: - $ref: '#/components/schemas/Layout' - ranges: - description: "List of ranges," - items: - items: - type: number - type: array - x-omitempty: true - type: array - x-omitempty: true - type: object - QueryJson: - description: Query returning results as JSON - example: - fields: - - fields - - fields - query_ranges: - layout: null - ranges: - - - 0.8008281904610115 - - 0.8008281904610115 - - - 0.8008281904610115 - - 0.8008281904610115 - properties: - query_ranges: - $ref: '#/components/schemas/QueryRanges' - fields: - description: "List of fields to return data from, empty means return data\ - \ for all fields" - items: - type: string - x-omitempty: true - type: array - x-omitempty: true - type: object - GenericUDF: - description: User-defined function - example: - task_name: task_name - exec_raw: exec_raw - argument: argument - stored_param_uuids: - - 229f38c4-ba89-43d6-ab88-bae3bcca7969 - - 229f38c4-ba89-43d6-ab88-bae3bcca7969 - dont_download_results: true - resource_class: standard - language: null - result_format: null - store_results: true - version: version - task_graph_uuid: task_graph_uuid - timeout: 0 - image_name: image_name - udf_info_name: TileDB-Inc/csv_ingestor - client_node_uuid: client_node_uuid - exec: exec - properties: - udf_info_name: - description: "name of UDFInfo to run, format is {namespace}/{udf_name}.\ - \ Can not be used with exec" - example: TileDB-Inc/csv_ingestor - type: string - language: - $ref: '#/components/schemas/UDFLanguage' - version: - description: Type-specific version - type: string - image_name: - description: Docker image name to use for UDF - type: string - x-omitempty: true - resource_class: - description: "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.\n" - example: standard - type: string - x-omitempty: true - exec: - description: Type-specific executable text - type: string - exec_raw: - description: "optional raw text to store of serialized function, used for\ - \ showing in UI" - type: string - x-omitempty: true - argument: - description: "Argument(s) to pass to UDF function, tuple or list of args/kwargs\ - \ which can be in native or JSON format" - type: string - x-omitempty: true - stored_param_uuids: - description: "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 {}." - items: - example: 229f38c4-ba89-43d6-ab88-bae3bcca7969 - type: string - type: array - result_format: - $ref: '#/components/schemas/ResultFormat' - task_name: - description: "name of task, optional" - type: string - store_results: - description: store results for later retrieval - type: boolean - timeout: - description: "UDF-type timeout in seconds (default: 900)" - type: integer - dont_download_results: - description: 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"). - type: boolean - task_graph_uuid: - description: "If set, the ID of the log for the task graph that this was\ - \ part of.\n" - type: string - x-omitempty: true - client_node_uuid: - description: "If set, the client-defined ID of the node within this task's\ - \ graph.\n" - type: string - x-omitempty: true - type: object - UDFArrayDetails: - description: "Contains array details for multi-array query including uri, ranges\ - \ buffers" - example: - ranges: - layout: null - ranges: - - - 0.8008281904610115 - - 0.8008281904610115 - - - 0.8008281904610115 - - 0.8008281904610115 - buffers: - - buffers - - buffers - uri: uri - parameter_id: parameter_id - properties: - parameter_id: - description: | - 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. - nullable: true - type: string - x-omitempty: true - uri: - description: "array to set ranges and buffers on, must be in tiledb:// format" - type: string - ranges: - $ref: '#/components/schemas/QueryRanges' - buffers: - description: List of buffers to fetch (attributes + dimensions) - items: - type: string - type: array - x-omitempty: true - type: object - MultiArrayUDF: - description: User-defined function - example: - task_name: task_name - exec_raw: exec_raw - argument: argument - stored_param_uuids: - - stored_param_uuids - - stored_param_uuids - dont_download_results: true - ranges: - layout: null - ranges: - - - 0.8008281904610115 - - 0.8008281904610115 - - - 0.8008281904610115 - - 0.8008281904610115 - resource_class: standard - buffers: - - buffers - - buffers - language: null - result_format: null - store_results: true - version: version - task_graph_uuid: task_graph_uuid - timeout: 1 - image_name: image_name - arguments_json: - - name: name - value: "{}" - - name: name - value: "{}" - udf_info_name: TileDB-Inc/quickstart_median - client_node_uuid: client_node_uuid - arrays: - - ranges: - layout: null - ranges: - - - 0.8008281904610115 - - 0.8008281904610115 - - - 0.8008281904610115 - - 0.8008281904610115 - buffers: - - buffers - - buffers - uri: uri - parameter_id: parameter_id - - ranges: - layout: null - ranges: - - - 0.8008281904610115 - - 0.8008281904610115 - - - 0.8008281904610115 - - 0.8008281904610115 - buffers: - - buffers - - buffers - uri: uri - parameter_id: parameter_id - exec: exec - subarray: - layout: null - ranges: - - range_end: - int32: 7 - int64: 3 - int8: 1 - uint64: 2 - float32: 4.145608 - uint32: 9 - float64: 7.386281948385884 - uint8: 5 - uint16: 2 - int16: 5 - dimension_id: 6 - range_start: - int32: 7 - int64: 3 - int8: 1 - uint64: 2 - float32: 4.145608 - uint32: 9 - float64: 7.386281948385884 - uint8: 5 - uint16: 2 - int16: 5 - - range_end: - int32: 7 - int64: 3 - int8: 1 - uint64: 2 - float32: 4.145608 - uint32: 9 - float64: 7.386281948385884 - uint8: 5 - uint16: 2 - int16: 5 - dimension_id: 6 - range_start: - int32: 7 - int64: 3 - int8: 1 - uint64: 2 - float32: 4.145608 - uint32: 9 - float64: 7.386281948385884 - uint8: 5 - uint16: 2 - int16: 5 - properties: - udf_info_name: - description: "name of UDFInfo to run, format is {namespace}/{udf_name}.\ - \ Can not be used with exec" - example: TileDB-Inc/quickstart_median - type: string - language: - $ref: '#/components/schemas/UDFLanguage' - version: - description: Type-specific version - type: string - image_name: - description: Docker image name to use for UDF - type: string - x-omitempty: true - resource_class: - description: "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.\n" - example: standard - type: string - x-omitempty: true - exec: - description: Type-specific executable text - type: string - exec_raw: - description: "optional raw text to store of serialized function, used for\ - \ showing in UI" - type: string - x-omitempty: true - result_format: - $ref: '#/components/schemas/ResultFormat' - task_name: - description: "name of task, optional" - type: string - argument: - description: "Deprecated: Prefer to use `argument_json` instead.\nArgument(s)\ - \ to pass to UDF function, tuple or list of args/kwargs which can be in\ - \ native or JSON format\n" - type: string - x-omitempty: true - arguments_json: - description: "A series of key-value pairs to be passed as arguments into\ - \ the UDF. See `TGUDFNodeData.arguments` for more information.\nIf 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.\n\ - Either this or `argument` should be set.\n" - items: - $ref: '#/components/schemas/TGUDFArgument' - nullable: true - type: array - stored_param_uuids: - description: "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 {}." - items: - type: string - type: array - store_results: - description: store results for later retrieval - type: boolean - dont_download_results: - description: 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"). - type: boolean - ranges: - $ref: '#/components/schemas/QueryRanges' - subarray: - $ref: '#/components/schemas/UDFSubarray' - buffers: - description: List of buffers to fetch (attributes + dimensions). Deprecated; - please set arrays with `UDFArrayDetails`. - items: - type: string - type: array - x-omitempty: true - arrays: - description: Array ranges/buffer into to run UDF on - items: - $ref: '#/components/schemas/UDFArrayDetails' - type: array - x-omitempty: false - timeout: - description: "UDF-type timeout in seconds (default: 900)" - type: integer - task_graph_uuid: - description: "If set, the ID of the log for the task graph that this was\ - \ part of.\n" - type: string - x-omitempty: true - client_node_uuid: - description: "If set, the client-defined ID of the node within this task's\ - \ graph.\n" - type: string - x-omitempty: true - type: object - UDFImage: - description: Defines a set of images related to a specific name - properties: - id: - description: Unique ID of set of images - example: 00000000-0000-0000-0000-000000000000 - type: string - name: - description: name of UDF - type: string - language: - $ref: '#/components/schemas/UDFLanguage' - type: object - UDFImageVersion: - description: Defines an image that belongs to a set of images having a version - properties: - id: - description: Unique ID of a versioned image - example: 00000000-0000-0000-0000-000000000000 - type: string - name: - description: name of UDFImageVersion - type: string - udf_image_uuid: - description: Unique ID of the UDF image set - example: 00000000-0000-0000-0000-000000000000 - type: string - x-omitempty: false - docker_image: - description: Uri of docker image related to current entry - type: string - version: - description: Image-specific version - example: 2.0 - format: uint64 - type: number - default: - description: If current image is default version - example: true - type: boolean - latest: - description: If current image is latest version - example: true - type: boolean - type: object - UDFInfoUpdate: - description: "User-defined function that can persist in db, used and shared\ - \ multiple times" - example: - image_name: image_name - exec_raw: exec_raw - license_id: license_id - license_text: license_text - name: name - language: null - readme: readme - type: null - version: version - exec: exec - tags: - - tags - - tags - properties: - name: - description: name of UDF - type: string - language: - $ref: '#/components/schemas/UDFLanguage' - version: - description: Type-specific version - type: string - image_name: - description: Docker image name to use for UDF - type: string - x-omitempty: true - type: - $ref: '#/components/schemas/UDFType' - exec: - description: Type-specific executable text - type: string - exec_raw: - description: "optional raw text to store of serialized function, used for\ - \ showing in UI" - type: string - x-omitempty: true - readme: - description: Markdown readme of UDFs - type: string - license_id: - description: License identifier from SPDX License List or Custom - type: string - x-omitempty: true - license_text: - description: License text - type: string - x-omitempty: true - tags: - description: optional tags for UDF - items: - description: "tag must be lowercase characters or hypen [a-z-]" - type: string - type: array - x-omitempty: false - type: object - UDFInfo: - description: "User-defined function that can persist in db, used and shared\ - \ multiple times" - example: - license_id: license_id - license_text: license_text - name: name - language: null - id: 00000000-0000-0000-0000-000000000000 - readme: readme - type: null - tags: - - tags - - tags - properties: - id: - description: Unique ID of UDF - example: 00000000-0000-0000-0000-000000000000 - type: string - name: - description: name of UDF - type: string - language: - $ref: '#/components/schemas/UDFLanguage' - type: - $ref: '#/components/schemas/UDFType' - readme: - description: Markdown readme of UDFs - type: string - license_id: - description: License identifier from SPDX License List or Custom - type: string - x-omitempty: true - license_text: - description: License text - type: string - x-omitempty: true - tags: - description: optional tags for UDF - items: - description: "tag must be lowercase characters or hypen [a-z-]" - type: string - type: array - x-omitempty: false - type: object - SQLParameters: - description: Parameters for running sql query - example: - dont_download_results: true - resource_class: standard - init_commands: - - init_commands - - init_commands - query: query - name: name - output_uri: s3://my_bucket/my_output_array - result_format: null - client_node_uuid: client_node_uuid - store_results: true - parameters: - - "{}" - - "{}" - task_graph_uuid: task_graph_uuid - properties: - name: - description: "name of task, optional" - type: string - query: - description: query to run - type: string - output_uri: - description: Output array uri - example: s3://my_bucket/my_output_array - type: string - store_results: - description: store results for later retrieval - type: boolean - dont_download_results: - description: 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"). - type: boolean - resource_class: - description: "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.\n" - example: standard - type: string - x-omitempty: true - result_format: - $ref: '#/components/schemas/ResultFormat' - init_commands: - description: Queries or commands to run before main query - items: - description: sql query or command to run before main sql query - type: string - type: array - parameters: - description: SQL query parameters - items: - type: object - type: array - task_graph_uuid: - description: "If set, the ID of the log for the task graph that this was\ - \ part of.\n" - type: string - x-omitempty: true - client_node_uuid: - description: "If set, the client-defined ID of the node within this task's\ - \ graph.\n" - type: string - x-omitempty: true - type: object - NotebookStatus: - description: Status details of a notebook server - example: - storage_limit: 1073741824 - storage_usage: 1073741824 - namespace: namespace - memory_usage: 1073741824 - memory_limit: 1073741824 - cpu_usage: 4000 - uptime: 120 - cpu_count: 4000 - properties: - namespace: - description: namespace of notebook - type: string - uptime: - description: duration notebook has been running in seconds - example: 120 - format: uint64 - type: integer - cpu_usage: - description: current cpu usage in millicpu - example: 4000 - format: uint64 - type: integer - memory_usage: - description: memory usage in bytes - example: 1073741824 - format: uint64 - type: integer - memory_limit: - description: memory allocated to notebook server in bytes - example: 1073741824 - format: uint64 - type: integer - storage_usage: - description: storage usage in bytes - example: 1073741824 - format: uint64 - type: integer - storage_limit: - description: storage allocated to notebook server in bytes - example: 1073741824 - format: uint64 - type: integer - cpu_count: - description: millicpu allocated to notebook server - example: 4000 - format: uint64 - type: integer - type: object - ArrayFavorite: - description: A user-favorite array item - example: - namespace: namespace - name: name - array_uuid: array_uuid - properties: - array_uuid: - description: unique UUID of the array - type: string - namespace: - description: the namespace of the array - type: string - name: - description: the name of the array - type: string - type: object - ArrayFavoritesData: - description: Object including array favorites and pagination metadata - example: - pagination_metadata: - per_page: 10.0 - page: 1.0 - total_pages: 14.0 - total_items: 138.0 - arrays: - - subscriptions: - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - last_accessed: 2000-01-23T04:56:07.000+00:00 - is_favorite: true - description: description - public_share: true - namespace_subscribed: false - type: sparse - uri: s3://bucket/array - tags: - - tags - - tags - share_count: 6.027456183070403 - allowed_actions: - - null - - null - size: 1024.0 - read_only: false - file_type: null - license_id: license_id - license_text: license_text - access_credentials_name: access_credentials_name - namespace: user1 - name: myarray1 - logo: logo - file_properties: - key: file_properties - tiledb_uri: tiledb_uri - id: 00000000-0000-0000-0000-000000000000 - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - subscriptions: - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - last_accessed: 2000-01-23T04:56:07.000+00:00 - is_favorite: true - description: description - public_share: true - namespace_subscribed: false - type: sparse - uri: s3://bucket/array - tags: - - tags - - tags - share_count: 6.027456183070403 - allowed_actions: - - null - - null - size: 1024.0 - read_only: false - file_type: null - license_id: license_id - license_text: license_text - access_credentials_name: access_credentials_name - namespace: user1 - name: myarray1 - logo: logo - file_properties: - key: file_properties - tiledb_uri: tiledb_uri - id: 00000000-0000-0000-0000-000000000000 - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - properties: - arrays: - description: List of array infos - items: - $ref: '#/components/schemas/ArrayInfo' - type: array - x-omitempty: false - pagination_metadata: - $ref: '#/components/schemas/PaginationMetadata' - type: object - NotebookFavorite: - description: A user-favorite notebook item - example: - notebook_uuid: notebook_uuid - namespace: namespace - name: name - properties: - notebook_uuid: - description: unique UUID of the notebook - type: string - namespace: - description: the namespace of the notebook - type: string - name: - description: the name of the notebook - type: string - type: object - NotebookFavoritesData: - description: Object including notebook favorites and pagination metadata - example: - pagination_metadata: - per_page: 10.0 - page: 1.0 - total_pages: 14.0 - total_items: 138.0 - notebooks: - - subscriptions: - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - last_accessed: 2000-01-23T04:56:07.000+00:00 - is_favorite: true - description: description - public_share: true - namespace_subscribed: false - type: sparse - uri: s3://bucket/array - tags: - - tags - - tags - share_count: 6.027456183070403 - allowed_actions: - - null - - null - size: 1024.0 - read_only: false - file_type: null - license_id: license_id - license_text: license_text - access_credentials_name: access_credentials_name - namespace: user1 - name: myarray1 - logo: logo - file_properties: - key: file_properties - tiledb_uri: tiledb_uri - id: 00000000-0000-0000-0000-000000000000 - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - subscriptions: - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - last_accessed: 2000-01-23T04:56:07.000+00:00 - is_favorite: true - description: description - public_share: true - namespace_subscribed: false - type: sparse - uri: s3://bucket/array - tags: - - tags - - tags - share_count: 6.027456183070403 - allowed_actions: - - null - - null - size: 1024.0 - read_only: false - file_type: null - license_id: license_id - license_text: license_text - access_credentials_name: access_credentials_name - namespace: user1 - name: myarray1 - logo: logo - file_properties: - key: file_properties - tiledb_uri: tiledb_uri - id: 00000000-0000-0000-0000-000000000000 - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - properties: - notebooks: - description: List of notebook infos - items: - $ref: '#/components/schemas/ArrayInfo' - type: array - x-omitempty: false - pagination_metadata: - $ref: '#/components/schemas/PaginationMetadata' - type: object - UDFFavorite: - description: A user-favorite UDF item - example: - namespace: namespace - name: name - udf_uuid: udf_uuid - properties: - udf_uuid: - description: unique UUID of the UDF - type: string - namespace: - description: the namespace of the UDF - type: string - name: - description: the name of the UDF - type: string - type: object - UDFFavoritesData: - description: Object including UDF favorites and pagination metadata - example: - pagination_metadata: - per_page: 10.0 - page: 1.0 - total_pages: 14.0 - total_items: 138.0 - udfs: - - subscriptions: - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - last_accessed: 2000-01-23T04:56:07.000+00:00 - is_favorite: true - description: description - public_share: true - namespace_subscribed: false - type: sparse - uri: s3://bucket/array - tags: - - tags - - tags - share_count: 6.027456183070403 - allowed_actions: - - null - - null - size: 1024.0 - read_only: false - file_type: null - license_id: license_id - license_text: license_text - access_credentials_name: access_credentials_name - namespace: user1 - name: myarray1 - logo: logo - file_properties: - key: file_properties - tiledb_uri: tiledb_uri - id: 00000000-0000-0000-0000-000000000000 - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - subscriptions: - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - last_accessed: 2000-01-23T04:56:07.000+00:00 - is_favorite: true - description: description - public_share: true - namespace_subscribed: false - type: sparse - uri: s3://bucket/array - tags: - - tags - - tags - share_count: 6.027456183070403 - allowed_actions: - - null - - null - size: 1024.0 - read_only: false - file_type: null - license_id: license_id - license_text: license_text - access_credentials_name: access_credentials_name - namespace: user1 - name: myarray1 - logo: logo - file_properties: - key: file_properties - tiledb_uri: tiledb_uri - id: 00000000-0000-0000-0000-000000000000 - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - properties: - udfs: - description: List of UDF infos - items: - $ref: '#/components/schemas/ArrayInfo' - type: array - x-omitempty: false - pagination_metadata: - $ref: '#/components/schemas/PaginationMetadata' - type: object - MLModelFavorite: - description: A user-favorite MLModel item - example: - mlmodel_uuid: mlmodel_uuid - namespace: namespace - name: name - properties: - mlmodel_uuid: - description: unique UUID of the MLModel - type: string - namespace: - description: the namespace of the MLModel - type: string - name: - description: the name of the MLModel - type: string - type: object - MLModelFavoritesData: - description: Object including MLModel favorites and pagination metadata - example: - pagination_metadata: - per_page: 10.0 - page: 1.0 - total_pages: 14.0 - total_items: 138.0 - mlmodels: - - subscriptions: - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - last_accessed: 2000-01-23T04:56:07.000+00:00 - is_favorite: true - description: description - public_share: true - namespace_subscribed: false - type: sparse - uri: s3://bucket/array - tags: - - tags - - tags - share_count: 6.027456183070403 - allowed_actions: - - null - - null - size: 1024.0 - read_only: false - file_type: null - license_id: license_id - license_text: license_text - access_credentials_name: access_credentials_name - namespace: user1 - name: myarray1 - logo: logo - file_properties: - key: file_properties - tiledb_uri: tiledb_uri - id: 00000000-0000-0000-0000-000000000000 - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - subscriptions: - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - last_accessed: 2000-01-23T04:56:07.000+00:00 - is_favorite: true - description: description - public_share: true - namespace_subscribed: false - type: sparse - uri: s3://bucket/array - tags: - - tags - - tags - share_count: 6.027456183070403 - allowed_actions: - - null - - null - size: 1024.0 - read_only: false - file_type: null - license_id: license_id - license_text: license_text - access_credentials_name: access_credentials_name - namespace: user1 - name: myarray1 - logo: logo - file_properties: - key: file_properties - tiledb_uri: tiledb_uri - id: 00000000-0000-0000-0000-000000000000 - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - properties: - mlmodels: - description: List of MLModel infos - items: - $ref: '#/components/schemas/ArrayInfo' - type: array - x-omitempty: false - pagination_metadata: - $ref: '#/components/schemas/PaginationMetadata' - type: object - InvitationType: - description: List of values that InvitationType can take - enum: - - ARRAY_SHARE - - JOIN_ORGANIZATION - type: string - InvitationStatus: - description: List of values that InvitationStatus can take - enum: - - PENDING - - ACCEPTED - type: string - InvitationArrayShareEmail: - description: "Encapsulates information regarding inviting people using email\ - \ to share array, same permissions for all invitees" - example: - invitee_email: - - invitee_email - - invitee_email - actions: - - read - - write - properties: - actions: - description: List of permitted actions - example: - - read - - write - items: - $ref: '#/components/schemas/ArrayActions' - type: array - invitee_email: - items: - format: email - type: string - type: array - x-omitempty: true - required: - - actions - - invitee_email - type: object - InvitationOrganizationJoinEmail: - description: "Encapsulates information regarding inviting people using email\ - \ to join organization, same permissions for all invitees" - example: - invitee_email: - - invitee_email - - invitee_email - organization_role: null - actions: - - read - - write - properties: - actions: - description: List of permitted actions - example: - - read - - write - items: - $ref: '#/components/schemas/NamespaceActions' - type: array - organization_role: - $ref: '#/components/schemas/OrganizationRoles' - invitee_email: - items: - format: email - type: string - type: array - x-omitempty: true - required: - - invitee_email - - organization_role - type: object - Invitation: - description: Invitations to share or collaborate - example: - user_namespace_uuid: 00000000-0000-0000-0000-000000000000 - array_name: array_name - created_at: 2000-01-23T04:56:07.000+00:00 - organization_name: organization_name - organization_user_uuid: 00000000-0000-0000-0000-000000000000 - accepted_at: 2000-01-23T04:56:07.000+00:00 - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - expires_at: 2000-01-23T04:56:07.000+00:00 - invitation_type: null - array_uuid: 00000000-0000-0000-0000-000000000000 - id: 00000000-0000-0000-0000-000000000000 - organization_role: null - actions: "read,write" - email: jane@doe.com - status: null - properties: - id: - description: Unique ID of invitation added to magic link - example: 00000000-0000-0000-0000-000000000000 - type: string - invitation_type: - $ref: '#/components/schemas/InvitationType' - owner_namespace_uuid: - description: Namespace of the owner of the invitation (user or organization) - example: 00000000-0000-0000-0000-000000000000 - type: string - user_namespace_uuid: - description: Unique ID of the user accepted the invitation - example: 00000000-0000-0000-0000-000000000000 - type: string - x-omitempty: false - organization_user_uuid: - description: Unique ID of the organization user accepted the invitation - example: 00000000-0000-0000-0000-000000000000 - type: string - x-omitempty: false - organization_name: - description: "Name of the organization, does not persist in database" - example: organization_name - type: string - organization_role: - $ref: '#/components/schemas/OrganizationRoles' - array_uuid: - description: Unique ID of the array - example: 00000000-0000-0000-0000-000000000000 - type: string - x-omitempty: false - array_name: - description: "Name of the array, does not persist in database" - example: array_name - type: string - email: - description: Email of the individual we send the invitation to - example: jane@doe.com - type: string - actions: - description: A comma separated list of ArrayActions or NamespaceActions - example: "read,write" - type: string - status: - $ref: '#/components/schemas/InvitationStatus' - created_at: - description: Datetime the invitation was created in UTC - format: date-time - type: string - x-omitempty: false - expires_at: - description: Datetime the invitation is expected to expire in UTC - format: date-time - type: string - x-omitempty: false - accepted_at: - description: Datetime the invitation was accepted in UTC - format: date-time - type: string - x-omitempty: false - type: object - InvitationData: - description: Object including invitations and metadata - example: - pagination_metadata: - per_page: 10.0 - page: 1.0 - total_pages: 14.0 - total_items: 138.0 - invitations: - - user_namespace_uuid: 00000000-0000-0000-0000-000000000000 - array_name: array_name - created_at: 2000-01-23T04:56:07.000+00:00 - organization_name: organization_name - organization_user_uuid: 00000000-0000-0000-0000-000000000000 - accepted_at: 2000-01-23T04:56:07.000+00:00 - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - expires_at: 2000-01-23T04:56:07.000+00:00 - invitation_type: null - array_uuid: 00000000-0000-0000-0000-000000000000 - id: 00000000-0000-0000-0000-000000000000 - organization_role: null - actions: "read,write" - email: jane@doe.com - status: null - - user_namespace_uuid: 00000000-0000-0000-0000-000000000000 - array_name: array_name - created_at: 2000-01-23T04:56:07.000+00:00 - organization_name: organization_name - organization_user_uuid: 00000000-0000-0000-0000-000000000000 - accepted_at: 2000-01-23T04:56:07.000+00:00 - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - expires_at: 2000-01-23T04:56:07.000+00:00 - invitation_type: null - array_uuid: 00000000-0000-0000-0000-000000000000 - id: 00000000-0000-0000-0000-000000000000 - organization_role: null - actions: "read,write" - email: jane@doe.com - status: null - properties: - invitations: - description: List of invitations - items: - $ref: '#/components/schemas/Invitation' - type: array - x-omitempty: true - pagination_metadata: - $ref: '#/components/schemas/PaginationMetadata' - type: object - TokenScope: - description: An api token scope available for creation - enum: - - password_reset - - confirm_email - - '*' - - user:read - - user:read-write - - user:admin - - array:read - - array:read-write - - array:admin - - organization:read - - organization:read-write - - organization:admin - - group:read - - group:read-write - - group:admin - type: string - FileCreate: - description: Input/Output information required to create a new file - example: - input_uri: input_uri - name: name - output_uri: output_uri - properties: - input_uri: - description: storage URI of the input file - type: string - output_uri: - description: output location of the TileDB File - type: string - name: - description: name to set for registered file - type: string - type: object - FileCreated: - description: Created file name and information - example: - file_name: file_name - output_uri: output_uri - properties: - output_uri: - description: output location of the TileDB File - type: string - file_name: - description: name of the file created - type: string - type: object - FileUploaded: - description: Uploaded file name and information - example: - file_name: file_name - output_uri: output_uri - id: 00000000-0000-0000-0000-000000000000 - properties: - output_uri: - description: output location of the TileDB File - type: string - file_name: - description: name of the file uploaded - type: string - id: - description: unique ID of the uploaded file - example: 00000000-0000-0000-0000-000000000000 - type: string - x-omitempty: false - required: - - id - type: object - FileExport: - description: Output information required to export a file - example: - output_uri: output_uri - properties: - output_uri: - description: output location of the TileDB File - type: string - type: object - FileExported: - description: Output uri of the exported file - example: - output_uri: output_uri - properties: - output_uri: - description: output location of the exported file - type: string - type: object - NotebookCopy: - description: Output information required to copy a notebook - example: - name: name - namespace: namespace - output_uri: output_uri - properties: - output_uri: - description: output location of the TileDB File - type: string - name: - description: name to set for registered notebook - type: string - namespace: - description: namespace to copy to - type: string - type: object - NotebookCopied: - description: Copied notebook uri and information - example: - name: name - namespace: namespace - output_uri: output_uri - id: 00000000-0000-0000-0000-000000000000 - properties: - output_uri: - description: output location of the TileDB Notebook - type: string - name: - description: name of the notebook created - type: string - namespace: - description: namespace copied to - type: string - id: - description: unique ID of the copied notebook - example: 00000000-0000-0000-0000-000000000000 - type: string - x-omitempty: false - required: - - id - type: object - UDFCopy: - description: information required to copy a udf - example: - namespace: namespace - name: name - output_uri: output_uri - properties: - output_uri: - description: output location of the TileDB File - type: string - namespace: - description: namespace to register the copy. If empty use the namespace - of the request user - type: string - name: - description: "name to set for the copy. If empty use the name as the original\ - \ udf, if it not already used in the namespace" - type: string - type: object - UDFCopied: - description: Copied udf uri and information - example: - namespace: namespace - name: name - output_uri: output_uri - id: 00000000-0000-0000-0000-000000000000 - properties: - output_uri: - description: output location of the TileDB udf - type: string - namespace: - description: namespace of the copied udf - type: string - name: - description: name of the copied udf - type: string - id: - description: unique ID of the copied udf - example: 00000000-0000-0000-0000-000000000000 - type: string - x-omitempty: false - required: - - id - type: object - GroupActions: - description: actions a user can take on a group - enum: - - read - - write - - edit - type: string - GroupInfo: - description: metadata of a group - example: - last_accessed: 2000-01-23T04:56:07.000+00:00 - group_count: 4.0 - description: description - public_share: true - uri: s3://bucket/asset - tags: - - tags - - tags - asset_count: 12.0 - share_count: 0.8008281904610115 - allowed_actions: - - null - - null - size: 16.0 - license_id: license_id - license_text: license_text - access_credentials_name: access_credentials_name - namespace: user1 - name: myarray1 - logo: logo - tiledb_uri: tiledb_uri - id: 00000000-0000-0000-0000-000000000000 - properties: - id: - description: unique ID of registered group - example: 00000000-0000-0000-0000-000000000000 - type: string - namespace: - description: namespace group is in - example: user1 - type: string - name: - description: name of group - example: myarray1 - type: string - description: - description: description of group - nullable: true - type: string - uri: - description: uri of group - example: s3://bucket/asset - type: string - tiledb_uri: - description: uri for access through TileDB cloud - type: string - x-omitempty: false - asset_count: - description: A count of direct array members - example: 12.0 - format: int32 - type: number - x-omitempty: false - group_count: - description: A count of direct group members - example: 4.0 - format: int32 - type: number - x-omitempty: false - size: - description: A count of direct members. This is the sum of asset_count and - group_count - example: 16.0 - format: int32 - type: number - x-omitempty: false - last_accessed: - description: Datetime groups was last accessed in UTC - format: date-time - type: string - allowed_actions: - description: list of actions user is allowed to do on this group - items: - $ref: '#/components/schemas/GroupActions' - type: array - x-omitempty: true - logo: - description: logo (base64 encoded) for the gruop. Optional - type: string - access_credentials_name: - description: "the name of the access credentials to use. if unset, the default\ - \ credentials will be used" - type: string - share_count: - description: number of unique namespaces this group is shared with - format: int32 - type: number - public_share: - description: Suggests if the group was shared to public by owner - example: true - type: boolean - x-omitempty: false - tags: - description: optional tags for group - items: - description: "tag must be lowercase characters or hypen [a-z-]" - type: string - type: array - x-omitempty: false - license_id: - description: License identifier from SPDX License List or Custom - type: string - x-omitempty: true - license_text: - description: License text - type: string - x-omitempty: true - type: object - GroupEntry: - description: "Object describing a single member of a group, which can be an\ - \ array or a group" - example: - member_id: member_id - array: - subscriptions: - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - last_accessed: 2000-01-23T04:56:07.000+00:00 - is_favorite: true - description: description - public_share: true - namespace_subscribed: false - type: sparse - uri: s3://bucket/array - tags: - - tags - - tags - share_count: 6.027456183070403 - allowed_actions: - - null - - null - size: 1024.0 - read_only: false - file_type: null - license_id: license_id - license_text: license_text - access_credentials_name: access_credentials_name - namespace: user1 - name: myarray1 - logo: logo - file_properties: - key: file_properties - tiledb_uri: tiledb_uri - id: 00000000-0000-0000-0000-000000000000 - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - group: - last_accessed: 2000-01-23T04:56:07.000+00:00 - group_count: 4.0 - description: description - public_share: true - uri: s3://bucket/asset - tags: - - tags - - tags - asset_count: 12.0 - share_count: 0.8008281904610115 - allowed_actions: - - null - - null - size: 16.0 - license_id: license_id - license_text: license_text - access_credentials_name: access_credentials_name - namespace: user1 - name: myarray1 - logo: logo - tiledb_uri: tiledb_uri - id: 00000000-0000-0000-0000-000000000000 - properties: - member_id: - description: The unique member id for the entry - readOnly: true - type: string - group: - $ref: '#/components/schemas/GroupInfo' - array: - $ref: '#/components/schemas/ArrayInfo' - type: object - GroupContents: - description: Object including a page of members of a group and pagination metadata - example: - pagination_metadata: - per_page: 10.0 - page: 1.0 - total_pages: 14.0 - total_items: 138.0 - entries: - - member_id: member_id - array: - subscriptions: - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - last_accessed: 2000-01-23T04:56:07.000+00:00 - is_favorite: true - description: description - public_share: true - namespace_subscribed: false - type: sparse - uri: s3://bucket/array - tags: - - tags - - tags - share_count: 6.027456183070403 - allowed_actions: - - null - - null - size: 1024.0 - read_only: false - file_type: null - license_id: license_id - license_text: license_text - access_credentials_name: access_credentials_name - namespace: user1 - name: myarray1 - logo: logo - file_properties: - key: file_properties - tiledb_uri: tiledb_uri - id: 00000000-0000-0000-0000-000000000000 - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - group: - last_accessed: 2000-01-23T04:56:07.000+00:00 - group_count: 4.0 - description: description - public_share: true - uri: s3://bucket/asset - tags: - - tags - - tags - asset_count: 12.0 - share_count: 0.8008281904610115 - allowed_actions: - - null - - null - size: 16.0 - license_id: license_id - license_text: license_text - access_credentials_name: access_credentials_name - namespace: user1 - name: myarray1 - logo: logo - tiledb_uri: tiledb_uri - id: 00000000-0000-0000-0000-000000000000 - - member_id: member_id - array: - subscriptions: - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - last_accessed: 2000-01-23T04:56:07.000+00:00 - is_favorite: true - description: description - public_share: true - namespace_subscribed: false - type: sparse - uri: s3://bucket/array - tags: - - tags - - tags - share_count: 6.027456183070403 - allowed_actions: - - null - - null - size: 1024.0 - read_only: false - file_type: null - license_id: license_id - license_text: license_text - access_credentials_name: access_credentials_name - namespace: user1 - name: myarray1 - logo: logo - file_properties: - key: file_properties - tiledb_uri: tiledb_uri - id: 00000000-0000-0000-0000-000000000000 - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - group: - last_accessed: 2000-01-23T04:56:07.000+00:00 - group_count: 4.0 - description: description - public_share: true - uri: s3://bucket/asset - tags: - - tags - - tags - asset_count: 12.0 - share_count: 0.8008281904610115 - allowed_actions: - - null - - null - size: 16.0 - license_id: license_id - license_text: license_text - access_credentials_name: access_credentials_name - namespace: user1 - name: myarray1 - logo: logo - tiledb_uri: tiledb_uri - id: 00000000-0000-0000-0000-000000000000 - properties: - entries: - description: Groups members - items: - $ref: '#/components/schemas/GroupEntry' - type: array - x-omitempty: false - pagination_metadata: - $ref: '#/components/schemas/PaginationMetadata' - type: object - GroupBrowserData: - description: Object including group info and pagination metadata - example: - pagination_metadata: - per_page: 10.0 - page: 1.0 - total_pages: 14.0 - total_items: 138.0 - groups: - - last_accessed: 2000-01-23T04:56:07.000+00:00 - group_count: 4.0 - description: description - public_share: true - uri: s3://bucket/asset - tags: - - tags - - tags - asset_count: 12.0 - share_count: 0.8008281904610115 - allowed_actions: - - null - - null - size: 16.0 - license_id: license_id - license_text: license_text - access_credentials_name: access_credentials_name - namespace: user1 - name: myarray1 - logo: logo - tiledb_uri: tiledb_uri - id: 00000000-0000-0000-0000-000000000000 - - last_accessed: 2000-01-23T04:56:07.000+00:00 - group_count: 4.0 - description: description - public_share: true - uri: s3://bucket/asset - tags: - - tags - - tags - asset_count: 12.0 - share_count: 0.8008281904610115 - allowed_actions: - - null - - null - size: 16.0 - license_id: license_id - license_text: license_text - access_credentials_name: access_credentials_name - namespace: user1 - name: myarray1 - logo: logo - tiledb_uri: tiledb_uri - id: 00000000-0000-0000-0000-000000000000 - properties: - groups: - description: Groups Info - items: - $ref: '#/components/schemas/GroupInfo' - type: array - x-omitempty: false - pagination_metadata: - $ref: '#/components/schemas/PaginationMetadata' - type: object - GroupBrowserFilterData: - description: Object with data to fill browser filter - example: - namespaces: - - namespaces - - namespaces - properties: - namespaces: - description: list of all unique namespaces to display - items: - type: string - type: array - x-omitempty: false - type: object - GroupContentsFilterData: - description: Object with data to fill contents filter - example: - namespaces: - - namespaces - - namespaces - properties: - namespaces: - description: list of all unique namespaces to display - items: - type: string - type: array - x-omitempty: false - type: object - GroupCreate: - description: Initial attributes for the creation of a group. - example: - parent: parent - license_id: license_id - license_text: license_text - access_credentials_name: access_credentials_name - name: name - description: description - logo: logo - uri: uri - tags: - - tags - - tags - properties: - description: - description: A human readable description of the contents of the group. - type: string - name: - description: The name of the group. If must be unique within the group. - type: string - parent: - description: "The unique name or id of the parent of the group. If empty,\ - \ then the new group will be a top level group." - type: string - uri: - description: uri of group. - type: string - x-omitempty: false - logo: - description: logo (base64 encoded) for the group. Optional - type: string - access_credentials_name: - description: "the name of the access credentials to use. if unset, the default\ - \ credentials will be used." - type: string - tags: - description: optional tags for groups. - items: - description: "tag must be lowercase characters or hypen [a-z-]." - type: string - type: array - x-omitempty: false - license_id: - description: License identifier from SPDX License List or Custom. - type: string - x-omitempty: true - license_text: - description: License text - type: string - x-omitempty: true - type: object - GroupRegister: - description: Initial attributes for the registration of a an existing group. - example: - parent: parent - license_id: license_id - license_text: license_text - access_credentials_name: access_credentials_name - name: name - description: description - logo: logo - uri: uri - tags: - - tags - - tags - properties: - description: - description: A human readable description of the contents of the group. - type: string - name: - description: The name of the group. If must be unique within the group. - type: string - parent: - description: "The unique name or id of the parent of the group. If empty,\ - \ then the new group will be a top level group." - type: string - uri: - description: uri of group. - type: string - x-omitempty: false - logo: - description: logo (base64 encoded) for the group. Optional - type: string - access_credentials_name: - description: "the name of the access credentials to use. if unset, the default\ - \ credentials will be used." - type: string - tags: - description: optional tags for groups. - items: - description: "tag must be lowercase characters or hypen [a-z-]." - type: string - type: array - x-omitempty: false - license_id: - description: License identifier from SPDX License List or Custom. - type: string - x-omitempty: true - license_text: - description: License text - type: string - x-omitempty: true - type: object - GroupUpdate: - description: Updates for a group. New values for the attributes. - example: - license_id: license_id - license_text: license_text - access_credentials_name: access_credentials_name - name: name - description: description - logo: logo - tags: - - tags - - tags - properties: - description: - description: A human readable description of the content of the group - nullable: true - type: string - name: - description: The name of the group. If must be unique within the group. - type: string - logo: - description: logo (base64 encoded) for the group. Optional - type: string - access_credentials_name: - description: "the name of the access credentials to use. if unset, the default\ - \ credentials will be used" - type: string - tags: - description: optional tags for groups - items: - description: "tag must be lowercase characters or hypen [a-z-]" - type: string - type: array - x-omitempty: false - license_id: - description: License identifier from SPDX License List or Custom - type: string - x-omitempty: true - license_text: - description: License text - type: string - x-omitempty: true - type: object - GroupMemberType: - description: File types that can be included in groups - enum: - - group - - array - type: string - GroupMemberAssetType: - description: Specific file types of group members - enum: - - group - - array - - notebook - - dashboard - - user_defined_function - - ml_model - - file - type: string - GroupMember: - description: "A groups member, array or another groups, to add or remove from\ - \ an existing group." - example: - member_type: null - namespace: namespace - name: name - properties: - namespace: - description: The namespace of the asset. - type: string - name: - description: The name or id of the asset. - type: string - member_type: - $ref: '#/components/schemas/GroupMemberType' - type: object - GroupChanges: - description: A request to change the members of a group. Contains assets to - add or remove. - example: - add: - - member_type: null - namespace: namespace - name: name - - member_type: null - namespace: namespace - name: name - remove: - - member_type: null - namespace: namespace - name: name - - member_type: null - namespace: namespace - name: name - properties: - add: - description: "the assets, arrays or groups, to add to the group." - items: - $ref: '#/components/schemas/GroupMember' - type: array - remove: - description: "the assets, arrays or groups, to remove from the group." - items: - $ref: '#/components/schemas/GroupMember' - type: array - type: object - GroupSharing: - description: sharing state of a group with a namespace - example: - group_actions: - - read - - write - array_actions: - - read - - write - namespace: MyOrganization - namespace_type: organization - properties: - group_actions: - description: List of permitted actions for the group and all subgroups - example: - - read - - write - items: - $ref: '#/components/schemas/GroupActions' - type: array - x-omitempty: true - array_actions: - description: List of permitted actions for all the subarrays of the group - example: - - read - - write - items: - $ref: '#/components/schemas/ArrayActions' - type: array - x-omitempty: true - namespace: - description: namespace being granted group access can be a user or organization - example: MyOrganization - type: string - namespace_type: - description: details on if the namespace is a organization or user - example: organization - type: string - type: object - GroupSharingRequest: - description: a request to share a group and all the contents with a namespace - example: - group_actions: - - read - - write - array_actions: - - read - - write - namespace: MyOrganization - properties: - group_actions: - description: List of permitted actions for the group and all subgroups - example: - - read - - write - items: - $ref: '#/components/schemas/GroupActions' - type: array - x-omitempty: true - array_actions: - description: List of permitted actions for all the subarrays of the group - example: - - read - - write - items: - $ref: '#/components/schemas/ArrayActions' - type: array - x-omitempty: true - namespace: - description: namespace being granted group access can be a user or organization - example: MyOrganization - type: string - type: object - TaskGraphLogRunLocation: - description: | - The location where an individual node of a task graph is executed. - enum: - - server - - client - - virtual - type: string - TaskGraphLogStatus: - description: The status of a given task graph execution. - enum: - - submitted - - running - - idle - - abandoned - - succeeded - - failed - - cancelled - type: string - TaskGraphLog: - description: Logging information about the execution of a task graph. - example: - total_cost: 0.8008281904610115 - access_cost: 6.027456183070403 - end_time: 2000-01-23T04:56:07.000+00:00 - created_at: 2000-01-23T04:56:07.000+00:00 - uuid: uuid - created_by: created_by - execution_time: P15H22M0.45S - start_time: 2000-01-23T04:56:07.000+00:00 - nodes: - - depends_on: - - depends_on - - depends_on - executions: - - memory: 1073741824 - activity: - - bytes_received: 1073741824 - action: null - query_stats: "{\"timers\": {\"Context.StorageManager.read_load_array_schema_from_uri.sum\"\ - : 0.0255293, \"...\": \"...\"}, \"counters\": {\"Context.StorageManager.read_unfiltered_byte_num\"\ - : 191, \"...\": \"...\"}}" - event_at: 2000-01-23T04:56:07.000+00:00 - array_task_id: 00000000-0000-0000-0000-000000000000 - id: 00000000-0000-0000-0000-000000000000 - bytes_sent: 1073741824 - query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3,\ - \ \"end\": 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" - username: user1 - - bytes_received: 1073741824 - action: null - query_stats: "{\"timers\": {\"Context.StorageManager.read_load_array_schema_from_uri.sum\"\ - : 0.0255293, \"...\": \"...\"}, \"counters\": {\"Context.StorageManager.read_unfiltered_byte_num\"\ - : 191, \"...\": \"...\"}}" - event_at: 2000-01-23T04:56:07.000+00:00 - array_task_id: 00000000-0000-0000-0000-000000000000 - id: 00000000-0000-0000-0000-000000000000 - bytes_sent: 1073741824 - query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3,\ - \ \"end\": 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" - username: user1 - description: Return attr a1 in the subarray bounded by coordinates and - multiply attr1 by 2 - type: null - duration: 341000000000 - sql_init_commands: - - sql_init_commands - - sql_init_commands - sql_query: sql_query - id: id - logs: logs - udf_language: udf_language - cost: 0.12 - sql_parameters: - - "{}" - - "{}" - udf_code: udf_code - access_cost: 0.12 - cpu: 4000 - result_format: null - query_type: null - task_graph_uuid: task_graph_uuid - finish_time: 2000-01-23T04:56:07.000+00:00 - start_time: 2000-01-23T04:56:07.000+00:00 - name: subarray-multiplier - namespace: organization1 - client_node_uuid: client_node_uuid - array_metadata: - subscriptions: - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - last_accessed: 2000-01-23T04:56:07.000+00:00 - is_favorite: true - description: description - public_share: true - namespace_subscribed: false - type: sparse - uri: s3://bucket/array - tags: - - tags - - tags - share_count: 6.027456183070403 - allowed_actions: - - null - - null - size: 1024.0 - read_only: false - file_type: null - license_id: license_id - license_text: license_text - access_credentials_name: access_credentials_name - namespace: user1 - name: myarray1 - logo: logo - file_properties: - key: file_properties - tiledb_uri: tiledb_uri - id: 00000000-0000-0000-0000-000000000000 - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - egress_cost: 0.12 - subarray: - int32: - - 1 - - 1 - int64: - - 7 - - 7 - int8: - - 4 - - 4 - uint64: - - 1 - - 1 - float32: - - 4.9652185 - - 4.9652185 - uint32: - - 6 - - 6 - float64: - - 5.025004791520295 - - 5.025004791520295 - uint8: - - 7 - - 7 - uint16: - - 1 - - 1 - int16: - - 1 - - 1 - status: null - - memory: 1073741824 - activity: - - bytes_received: 1073741824 - action: null - query_stats: "{\"timers\": {\"Context.StorageManager.read_load_array_schema_from_uri.sum\"\ - : 0.0255293, \"...\": \"...\"}, \"counters\": {\"Context.StorageManager.read_unfiltered_byte_num\"\ - : 191, \"...\": \"...\"}}" - event_at: 2000-01-23T04:56:07.000+00:00 - array_task_id: 00000000-0000-0000-0000-000000000000 - id: 00000000-0000-0000-0000-000000000000 - bytes_sent: 1073741824 - query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3,\ - \ \"end\": 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" - username: user1 - - bytes_received: 1073741824 - action: null - query_stats: "{\"timers\": {\"Context.StorageManager.read_load_array_schema_from_uri.sum\"\ - : 0.0255293, \"...\": \"...\"}, \"counters\": {\"Context.StorageManager.read_unfiltered_byte_num\"\ - : 191, \"...\": \"...\"}}" - event_at: 2000-01-23T04:56:07.000+00:00 - array_task_id: 00000000-0000-0000-0000-000000000000 - id: 00000000-0000-0000-0000-000000000000 - bytes_sent: 1073741824 - query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3,\ - \ \"end\": 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" - username: user1 - description: Return attr a1 in the subarray bounded by coordinates and - multiply attr1 by 2 - type: null - duration: 341000000000 - sql_init_commands: - - sql_init_commands - - sql_init_commands - sql_query: sql_query - id: id - logs: logs - udf_language: udf_language - cost: 0.12 - sql_parameters: - - "{}" - - "{}" - udf_code: udf_code - access_cost: 0.12 - cpu: 4000 - result_format: null - query_type: null - task_graph_uuid: task_graph_uuid - finish_time: 2000-01-23T04:56:07.000+00:00 - start_time: 2000-01-23T04:56:07.000+00:00 - name: subarray-multiplier - namespace: organization1 - client_node_uuid: client_node_uuid - array_metadata: - subscriptions: - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - last_accessed: 2000-01-23T04:56:07.000+00:00 - is_favorite: true - description: description - public_share: true - namespace_subscribed: false - type: sparse - uri: s3://bucket/array - tags: - - tags - - tags - share_count: 6.027456183070403 - allowed_actions: - - null - - null - size: 1024.0 - read_only: false - file_type: null - license_id: license_id - license_text: license_text - access_credentials_name: access_credentials_name - namespace: user1 - name: myarray1 - logo: logo - file_properties: - key: file_properties - tiledb_uri: tiledb_uri - id: 00000000-0000-0000-0000-000000000000 - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - egress_cost: 0.12 - subarray: - int32: - - 1 - - 1 - int64: - - 7 - - 7 - int8: - - 4 - - 4 - uint64: - - 1 - - 1 - float32: - - 4.9652185 - - 4.9652185 - uint32: - - 6 - - 6 - float64: - - 5.025004791520295 - - 5.025004791520295 - uint8: - - 7 - - 7 - uint16: - - 1 - - 1 - int16: - - 1 - - 1 - status: null - name: name - client_node_uuid: client_node_uuid - run_location: null - status: null - - depends_on: - - depends_on - - depends_on - executions: - - memory: 1073741824 - activity: - - bytes_received: 1073741824 - action: null - query_stats: "{\"timers\": {\"Context.StorageManager.read_load_array_schema_from_uri.sum\"\ - : 0.0255293, \"...\": \"...\"}, \"counters\": {\"Context.StorageManager.read_unfiltered_byte_num\"\ - : 191, \"...\": \"...\"}}" - event_at: 2000-01-23T04:56:07.000+00:00 - array_task_id: 00000000-0000-0000-0000-000000000000 - id: 00000000-0000-0000-0000-000000000000 - bytes_sent: 1073741824 - query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3,\ - \ \"end\": 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" - username: user1 - - bytes_received: 1073741824 - action: null - query_stats: "{\"timers\": {\"Context.StorageManager.read_load_array_schema_from_uri.sum\"\ - : 0.0255293, \"...\": \"...\"}, \"counters\": {\"Context.StorageManager.read_unfiltered_byte_num\"\ - : 191, \"...\": \"...\"}}" - event_at: 2000-01-23T04:56:07.000+00:00 - array_task_id: 00000000-0000-0000-0000-000000000000 - id: 00000000-0000-0000-0000-000000000000 - bytes_sent: 1073741824 - query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3,\ - \ \"end\": 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" - username: user1 - description: Return attr a1 in the subarray bounded by coordinates and - multiply attr1 by 2 - type: null - duration: 341000000000 - sql_init_commands: - - sql_init_commands - - sql_init_commands - sql_query: sql_query - id: id - logs: logs - udf_language: udf_language - cost: 0.12 - sql_parameters: - - "{}" - - "{}" - udf_code: udf_code - access_cost: 0.12 - cpu: 4000 - result_format: null - query_type: null - task_graph_uuid: task_graph_uuid - finish_time: 2000-01-23T04:56:07.000+00:00 - start_time: 2000-01-23T04:56:07.000+00:00 - name: subarray-multiplier - namespace: organization1 - client_node_uuid: client_node_uuid - array_metadata: - subscriptions: - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - last_accessed: 2000-01-23T04:56:07.000+00:00 - is_favorite: true - description: description - public_share: true - namespace_subscribed: false - type: sparse - uri: s3://bucket/array - tags: - - tags - - tags - share_count: 6.027456183070403 - allowed_actions: - - null - - null - size: 1024.0 - read_only: false - file_type: null - license_id: license_id - license_text: license_text - access_credentials_name: access_credentials_name - namespace: user1 - name: myarray1 - logo: logo - file_properties: - key: file_properties - tiledb_uri: tiledb_uri - id: 00000000-0000-0000-0000-000000000000 - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - egress_cost: 0.12 - subarray: - int32: - - 1 - - 1 - int64: - - 7 - - 7 - int8: - - 4 - - 4 - uint64: - - 1 - - 1 - float32: - - 4.9652185 - - 4.9652185 - uint32: - - 6 - - 6 - float64: - - 5.025004791520295 - - 5.025004791520295 - uint8: - - 7 - - 7 - uint16: - - 1 - - 1 - int16: - - 1 - - 1 - status: null - - memory: 1073741824 - activity: - - bytes_received: 1073741824 - action: null - query_stats: "{\"timers\": {\"Context.StorageManager.read_load_array_schema_from_uri.sum\"\ - : 0.0255293, \"...\": \"...\"}, \"counters\": {\"Context.StorageManager.read_unfiltered_byte_num\"\ - : 191, \"...\": \"...\"}}" - event_at: 2000-01-23T04:56:07.000+00:00 - array_task_id: 00000000-0000-0000-0000-000000000000 - id: 00000000-0000-0000-0000-000000000000 - bytes_sent: 1073741824 - query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3,\ - \ \"end\": 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" - username: user1 - - bytes_received: 1073741824 - action: null - query_stats: "{\"timers\": {\"Context.StorageManager.read_load_array_schema_from_uri.sum\"\ - : 0.0255293, \"...\": \"...\"}, \"counters\": {\"Context.StorageManager.read_unfiltered_byte_num\"\ - : 191, \"...\": \"...\"}}" - event_at: 2000-01-23T04:56:07.000+00:00 - array_task_id: 00000000-0000-0000-0000-000000000000 - id: 00000000-0000-0000-0000-000000000000 - bytes_sent: 1073741824 - query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3,\ - \ \"end\": 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" - username: user1 - description: Return attr a1 in the subarray bounded by coordinates and - multiply attr1 by 2 - type: null - duration: 341000000000 - sql_init_commands: - - sql_init_commands - - sql_init_commands - sql_query: sql_query - id: id - logs: logs - udf_language: udf_language - cost: 0.12 - sql_parameters: - - "{}" - - "{}" - udf_code: udf_code - access_cost: 0.12 - cpu: 4000 - result_format: null - query_type: null - task_graph_uuid: task_graph_uuid - finish_time: 2000-01-23T04:56:07.000+00:00 - start_time: 2000-01-23T04:56:07.000+00:00 - name: subarray-multiplier - namespace: organization1 - client_node_uuid: client_node_uuid - array_metadata: - subscriptions: - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - last_accessed: 2000-01-23T04:56:07.000+00:00 - is_favorite: true - description: description - public_share: true - namespace_subscribed: false - type: sparse - uri: s3://bucket/array - tags: - - tags - - tags - share_count: 6.027456183070403 - allowed_actions: - - null - - null - size: 1024.0 - read_only: false - file_type: null - license_id: license_id - license_text: license_text - access_credentials_name: access_credentials_name - namespace: user1 - name: myarray1 - logo: logo - file_properties: - key: file_properties - tiledb_uri: tiledb_uri - id: 00000000-0000-0000-0000-000000000000 - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - egress_cost: 0.12 - subarray: - int32: - - 1 - - 1 - int64: - - 7 - - 7 - int8: - - 4 - - 4 - uint64: - - 1 - - 1 - float32: - - 4.9652185 - - 4.9652185 - uint32: - - 6 - - 6 - float64: - - 5.025004791520295 - - 5.025004791520295 - uint8: - - 7 - - 7 - uint16: - - 1 - - 1 - int16: - - 1 - - 1 - status: null - name: name - client_node_uuid: client_node_uuid - run_location: null - status: null - namespace: namespace - name: name - status_count: - key: 5.962133916683182 - egress_cost: 1.4658129805029452 - status: null - properties: - uuid: - description: The server-generated UUID of the task graph. - readOnly: true - type: string - namespace: - description: "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.\n" - type: string - created_by: - description: The name of the user who created this task graph log. - readOnly: true - type: string - name: - description: "A name for this task graph log, displayed in the UI. Does\ - \ not need to be unique.\n" - type: string - created_at: - description: | - The date/time when this task graph log was originally created. This is distinct from the execution start_time. - format: date-time - readOnly: true - type: string - start_time: - description: "The start time of the task graph, recorded when the server\ - \ starts executing the first node.\n" - format: date-time - nullable: true - readOnly: true - type: string - x-omitempty: true - end_time: - description: "The end time of the task graph, recorded when the client reports\ - \ completion.\n" - format: date-time - nullable: true - readOnly: true - type: string - x-omitempty: true - status: - $ref: '#/components/schemas/TaskGraphLogStatus' - total_cost: - description: "If present, the total cost of executing all nodes in this\ - \ task graph.\n" - nullable: true - type: number - access_cost: - description: "If present, the total cost of access from execution of the\ - \ nodes in this task graph.\n" - nullable: true - type: number - egress_cost: - description: "If present, the total cost of access from execution of the\ - \ nodes in this task graph.\n" - nullable: true - type: number - execution_time: - description: "The total execution time of all the nodes in this graph, in\ - \ ISO 8601 format with hours, minutes, and seconds.\n" - example: P15H22M0.45S - type: string - status_count: - additionalProperties: - description: The number of nodes that are in the given state. - type: number - description: | - A mapping from `ArrayTaskStatus` string value to the number of nodes in this graph that are in that status. - type: object - nodes: - description: "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.\n" - items: - $ref: '#/components/schemas/TaskGraphNodeMetadata' - type: array - type: object - TaskGraphNodeMetadata: - description: Metadata about an individual node in a task graph. - example: - depends_on: - - depends_on - - depends_on - executions: - - memory: 1073741824 - activity: - - bytes_received: 1073741824 - action: null - query_stats: "{\"timers\": {\"Context.StorageManager.read_load_array_schema_from_uri.sum\"\ - : 0.0255293, \"...\": \"...\"}, \"counters\": {\"Context.StorageManager.read_unfiltered_byte_num\"\ - : 191, \"...\": \"...\"}}" - event_at: 2000-01-23T04:56:07.000+00:00 - array_task_id: 00000000-0000-0000-0000-000000000000 - id: 00000000-0000-0000-0000-000000000000 - bytes_sent: 1073741824 - query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3, \"\ - end\": 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" - username: user1 - - bytes_received: 1073741824 - action: null - query_stats: "{\"timers\": {\"Context.StorageManager.read_load_array_schema_from_uri.sum\"\ - : 0.0255293, \"...\": \"...\"}, \"counters\": {\"Context.StorageManager.read_unfiltered_byte_num\"\ - : 191, \"...\": \"...\"}}" - event_at: 2000-01-23T04:56:07.000+00:00 - array_task_id: 00000000-0000-0000-0000-000000000000 - id: 00000000-0000-0000-0000-000000000000 - bytes_sent: 1073741824 - query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3, \"\ - end\": 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" - username: user1 - description: Return attr a1 in the subarray bounded by coordinates and multiply - attr1 by 2 - type: null - duration: 341000000000 - sql_init_commands: - - sql_init_commands - - sql_init_commands - sql_query: sql_query - id: id - logs: logs - udf_language: udf_language - cost: 0.12 - sql_parameters: - - "{}" - - "{}" - udf_code: udf_code - access_cost: 0.12 - cpu: 4000 - result_format: null - query_type: null - task_graph_uuid: task_graph_uuid - finish_time: 2000-01-23T04:56:07.000+00:00 - start_time: 2000-01-23T04:56:07.000+00:00 - name: subarray-multiplier - namespace: organization1 - client_node_uuid: client_node_uuid - array_metadata: - subscriptions: - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - last_accessed: 2000-01-23T04:56:07.000+00:00 - is_favorite: true - description: description - public_share: true - namespace_subscribed: false - type: sparse - uri: s3://bucket/array - tags: - - tags - - tags - share_count: 6.027456183070403 - allowed_actions: - - null - - null - size: 1024.0 - read_only: false - file_type: null - license_id: license_id - license_text: license_text - access_credentials_name: access_credentials_name - namespace: user1 - name: myarray1 - logo: logo - file_properties: - key: file_properties - tiledb_uri: tiledb_uri - id: 00000000-0000-0000-0000-000000000000 - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - egress_cost: 0.12 - subarray: - int32: - - 1 - - 1 - int64: - - 7 - - 7 - int8: - - 4 - - 4 - uint64: - - 1 - - 1 - float32: - - 4.9652185 - - 4.9652185 - uint32: - - 6 - - 6 - float64: - - 5.025004791520295 - - 5.025004791520295 - uint8: - - 7 - - 7 - uint16: - - 1 - - 1 - int16: - - 1 - - 1 - status: null - - memory: 1073741824 - activity: - - bytes_received: 1073741824 - action: null - query_stats: "{\"timers\": {\"Context.StorageManager.read_load_array_schema_from_uri.sum\"\ - : 0.0255293, \"...\": \"...\"}, \"counters\": {\"Context.StorageManager.read_unfiltered_byte_num\"\ - : 191, \"...\": \"...\"}}" - event_at: 2000-01-23T04:56:07.000+00:00 - array_task_id: 00000000-0000-0000-0000-000000000000 - id: 00000000-0000-0000-0000-000000000000 - bytes_sent: 1073741824 - query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3, \"\ - end\": 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" - username: user1 - - bytes_received: 1073741824 - action: null - query_stats: "{\"timers\": {\"Context.StorageManager.read_load_array_schema_from_uri.sum\"\ - : 0.0255293, \"...\": \"...\"}, \"counters\": {\"Context.StorageManager.read_unfiltered_byte_num\"\ - : 191, \"...\": \"...\"}}" - event_at: 2000-01-23T04:56:07.000+00:00 - array_task_id: 00000000-0000-0000-0000-000000000000 - id: 00000000-0000-0000-0000-000000000000 - bytes_sent: 1073741824 - query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3, \"\ - end\": 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" - username: user1 - description: Return attr a1 in the subarray bounded by coordinates and multiply - attr1 by 2 - type: null - duration: 341000000000 - sql_init_commands: - - sql_init_commands - - sql_init_commands - sql_query: sql_query - id: id - logs: logs - udf_language: udf_language - cost: 0.12 - sql_parameters: - - "{}" - - "{}" - udf_code: udf_code - access_cost: 0.12 - cpu: 4000 - result_format: null - query_type: null - task_graph_uuid: task_graph_uuid - finish_time: 2000-01-23T04:56:07.000+00:00 - start_time: 2000-01-23T04:56:07.000+00:00 - name: subarray-multiplier - namespace: organization1 - client_node_uuid: client_node_uuid - array_metadata: - subscriptions: - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - last_accessed: 2000-01-23T04:56:07.000+00:00 - is_favorite: true - description: description - public_share: true - namespace_subscribed: false - type: sparse - uri: s3://bucket/array - tags: - - tags - - tags - share_count: 6.027456183070403 - allowed_actions: - - null - - null - size: 1024.0 - read_only: false - file_type: null - license_id: license_id - license_text: license_text - access_credentials_name: access_credentials_name - namespace: user1 - name: myarray1 - logo: logo - file_properties: - key: file_properties - tiledb_uri: tiledb_uri - id: 00000000-0000-0000-0000-000000000000 - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - egress_cost: 0.12 - subarray: - int32: - - 1 - - 1 - int64: - - 7 - - 7 - int8: - - 4 - - 4 - uint64: - - 1 - - 1 - float32: - - 4.9652185 - - 4.9652185 - uint32: - - 6 - - 6 - float64: - - 5.025004791520295 - - 5.025004791520295 - uint8: - - 7 - - 7 - uint16: - - 1 - - 1 - int16: - - 1 - - 1 - status: null - name: name - client_node_uuid: client_node_uuid - run_location: null - status: null - properties: - client_node_uuid: - description: The client-generated UUID of the given graph node. - type: string - name: - description: | - The client-generated name of the node. This is not guaranteed to be unique. - type: string - depends_on: - description: | - The client_node_uuid of each node that this node depends upon. Used to define the structure of the graph. - items: - type: string - type: array - run_location: - $ref: '#/components/schemas/TaskGraphLogRunLocation' - status: - $ref: '#/components/schemas/ArrayTaskStatus' - executions: - description: "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.\nThis is read-only\ - \ and generated by the server based on the tasks it has actually executed.\n" - items: - $ref: '#/components/schemas/ArrayTask' - readOnly: true - type: array - type: object - TaskGraphLogsData: - description: "Response data for a task graph list, including pagination metadata." - example: - pagination_metadata: - per_page: 10.0 - page: 1.0 - total_pages: 14.0 - total_items: 138.0 - task_graph_logs: - - total_cost: 0.8008281904610115 - access_cost: 6.027456183070403 - end_time: 2000-01-23T04:56:07.000+00:00 - created_at: 2000-01-23T04:56:07.000+00:00 - uuid: uuid - created_by: created_by - execution_time: P15H22M0.45S - start_time: 2000-01-23T04:56:07.000+00:00 - nodes: - - depends_on: - - depends_on - - depends_on - executions: - - memory: 1073741824 - activity: - - bytes_received: 1073741824 - action: null - query_stats: "{\"timers\": {\"Context.StorageManager.read_load_array_schema_from_uri.sum\"\ - : 0.0255293, \"...\": \"...\"}, \"counters\": {\"Context.StorageManager.read_unfiltered_byte_num\"\ - : 191, \"...\": \"...\"}}" - event_at: 2000-01-23T04:56:07.000+00:00 - array_task_id: 00000000-0000-0000-0000-000000000000 - id: 00000000-0000-0000-0000-000000000000 - bytes_sent: 1073741824 - query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3,\ - \ \"end\": 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" - username: user1 - - bytes_received: 1073741824 - action: null - query_stats: "{\"timers\": {\"Context.StorageManager.read_load_array_schema_from_uri.sum\"\ - : 0.0255293, \"...\": \"...\"}, \"counters\": {\"Context.StorageManager.read_unfiltered_byte_num\"\ - : 191, \"...\": \"...\"}}" - event_at: 2000-01-23T04:56:07.000+00:00 - array_task_id: 00000000-0000-0000-0000-000000000000 - id: 00000000-0000-0000-0000-000000000000 - bytes_sent: 1073741824 - query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3,\ - \ \"end\": 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" - username: user1 - description: Return attr a1 in the subarray bounded by coordinates and - multiply attr1 by 2 - type: null - duration: 341000000000 - sql_init_commands: - - sql_init_commands - - sql_init_commands - sql_query: sql_query - id: id - logs: logs - udf_language: udf_language - cost: 0.12 - sql_parameters: - - "{}" - - "{}" - udf_code: udf_code - access_cost: 0.12 - cpu: 4000 - result_format: null - query_type: null - task_graph_uuid: task_graph_uuid - finish_time: 2000-01-23T04:56:07.000+00:00 - start_time: 2000-01-23T04:56:07.000+00:00 - name: subarray-multiplier - namespace: organization1 - client_node_uuid: client_node_uuid - array_metadata: - subscriptions: - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - last_accessed: 2000-01-23T04:56:07.000+00:00 - is_favorite: true - description: description - public_share: true - namespace_subscribed: false - type: sparse - uri: s3://bucket/array - tags: - - tags - - tags - share_count: 6.027456183070403 - allowed_actions: - - null - - null - size: 1024.0 - read_only: false - file_type: null - license_id: license_id - license_text: license_text - access_credentials_name: access_credentials_name - namespace: user1 - name: myarray1 - logo: logo - file_properties: - key: file_properties - tiledb_uri: tiledb_uri - id: 00000000-0000-0000-0000-000000000000 - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - egress_cost: 0.12 - subarray: - int32: - - 1 - - 1 - int64: - - 7 - - 7 - int8: - - 4 - - 4 - uint64: - - 1 - - 1 - float32: - - 4.9652185 - - 4.9652185 - uint32: - - 6 - - 6 - float64: - - 5.025004791520295 - - 5.025004791520295 - uint8: - - 7 - - 7 - uint16: - - 1 - - 1 - int16: - - 1 - - 1 - status: null - - memory: 1073741824 - activity: - - bytes_received: 1073741824 - action: null - query_stats: "{\"timers\": {\"Context.StorageManager.read_load_array_schema_from_uri.sum\"\ - : 0.0255293, \"...\": \"...\"}, \"counters\": {\"Context.StorageManager.read_unfiltered_byte_num\"\ - : 191, \"...\": \"...\"}}" - event_at: 2000-01-23T04:56:07.000+00:00 - array_task_id: 00000000-0000-0000-0000-000000000000 - id: 00000000-0000-0000-0000-000000000000 - bytes_sent: 1073741824 - query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3,\ - \ \"end\": 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" - username: user1 - - bytes_received: 1073741824 - action: null - query_stats: "{\"timers\": {\"Context.StorageManager.read_load_array_schema_from_uri.sum\"\ - : 0.0255293, \"...\": \"...\"}, \"counters\": {\"Context.StorageManager.read_unfiltered_byte_num\"\ - : 191, \"...\": \"...\"}}" - event_at: 2000-01-23T04:56:07.000+00:00 - array_task_id: 00000000-0000-0000-0000-000000000000 - id: 00000000-0000-0000-0000-000000000000 - bytes_sent: 1073741824 - query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3,\ - \ \"end\": 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" - username: user1 - description: Return attr a1 in the subarray bounded by coordinates and - multiply attr1 by 2 - type: null - duration: 341000000000 - sql_init_commands: - - sql_init_commands - - sql_init_commands - sql_query: sql_query - id: id - logs: logs - udf_language: udf_language - cost: 0.12 - sql_parameters: - - "{}" - - "{}" - udf_code: udf_code - access_cost: 0.12 - cpu: 4000 - result_format: null - query_type: null - task_graph_uuid: task_graph_uuid - finish_time: 2000-01-23T04:56:07.000+00:00 - start_time: 2000-01-23T04:56:07.000+00:00 - name: subarray-multiplier - namespace: organization1 - client_node_uuid: client_node_uuid - array_metadata: - subscriptions: - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - last_accessed: 2000-01-23T04:56:07.000+00:00 - is_favorite: true - description: description - public_share: true - namespace_subscribed: false - type: sparse - uri: s3://bucket/array - tags: - - tags - - tags - share_count: 6.027456183070403 - allowed_actions: - - null - - null - size: 1024.0 - read_only: false - file_type: null - license_id: license_id - license_text: license_text - access_credentials_name: access_credentials_name - namespace: user1 - name: myarray1 - logo: logo - file_properties: - key: file_properties - tiledb_uri: tiledb_uri - id: 00000000-0000-0000-0000-000000000000 - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - egress_cost: 0.12 - subarray: - int32: - - 1 - - 1 - int64: - - 7 - - 7 - int8: - - 4 - - 4 - uint64: - - 1 - - 1 - float32: - - 4.9652185 - - 4.9652185 - uint32: - - 6 - - 6 - float64: - - 5.025004791520295 - - 5.025004791520295 - uint8: - - 7 - - 7 - uint16: - - 1 - - 1 - int16: - - 1 - - 1 - status: null - name: name - client_node_uuid: client_node_uuid - run_location: null - status: null - - depends_on: - - depends_on - - depends_on - executions: - - memory: 1073741824 - activity: - - bytes_received: 1073741824 - action: null - query_stats: "{\"timers\": {\"Context.StorageManager.read_load_array_schema_from_uri.sum\"\ - : 0.0255293, \"...\": \"...\"}, \"counters\": {\"Context.StorageManager.read_unfiltered_byte_num\"\ - : 191, \"...\": \"...\"}}" - event_at: 2000-01-23T04:56:07.000+00:00 - array_task_id: 00000000-0000-0000-0000-000000000000 - id: 00000000-0000-0000-0000-000000000000 - bytes_sent: 1073741824 - query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3,\ - \ \"end\": 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" - username: user1 - - bytes_received: 1073741824 - action: null - query_stats: "{\"timers\": {\"Context.StorageManager.read_load_array_schema_from_uri.sum\"\ - : 0.0255293, \"...\": \"...\"}, \"counters\": {\"Context.StorageManager.read_unfiltered_byte_num\"\ - : 191, \"...\": \"...\"}}" - event_at: 2000-01-23T04:56:07.000+00:00 - array_task_id: 00000000-0000-0000-0000-000000000000 - id: 00000000-0000-0000-0000-000000000000 - bytes_sent: 1073741824 - query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3,\ - \ \"end\": 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" - username: user1 - description: Return attr a1 in the subarray bounded by coordinates and - multiply attr1 by 2 - type: null - duration: 341000000000 - sql_init_commands: - - sql_init_commands - - sql_init_commands - sql_query: sql_query - id: id - logs: logs - udf_language: udf_language - cost: 0.12 - sql_parameters: - - "{}" - - "{}" - udf_code: udf_code - access_cost: 0.12 - cpu: 4000 - result_format: null - query_type: null - task_graph_uuid: task_graph_uuid - finish_time: 2000-01-23T04:56:07.000+00:00 - start_time: 2000-01-23T04:56:07.000+00:00 - name: subarray-multiplier - namespace: organization1 - client_node_uuid: client_node_uuid - array_metadata: - subscriptions: - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - last_accessed: 2000-01-23T04:56:07.000+00:00 - is_favorite: true - description: description - public_share: true - namespace_subscribed: false - type: sparse - uri: s3://bucket/array - tags: - - tags - - tags - share_count: 6.027456183070403 - allowed_actions: - - null - - null - size: 1024.0 - read_only: false - file_type: null - license_id: license_id - license_text: license_text - access_credentials_name: access_credentials_name - namespace: user1 - name: myarray1 - logo: logo - file_properties: - key: file_properties - tiledb_uri: tiledb_uri - id: 00000000-0000-0000-0000-000000000000 - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - egress_cost: 0.12 - subarray: - int32: - - 1 - - 1 - int64: - - 7 - - 7 - int8: - - 4 - - 4 - uint64: - - 1 - - 1 - float32: - - 4.9652185 - - 4.9652185 - uint32: - - 6 - - 6 - float64: - - 5.025004791520295 - - 5.025004791520295 - uint8: - - 7 - - 7 - uint16: - - 1 - - 1 - int16: - - 1 - - 1 - status: null - - memory: 1073741824 - activity: - - bytes_received: 1073741824 - action: null - query_stats: "{\"timers\": {\"Context.StorageManager.read_load_array_schema_from_uri.sum\"\ - : 0.0255293, \"...\": \"...\"}, \"counters\": {\"Context.StorageManager.read_unfiltered_byte_num\"\ - : 191, \"...\": \"...\"}}" - event_at: 2000-01-23T04:56:07.000+00:00 - array_task_id: 00000000-0000-0000-0000-000000000000 - id: 00000000-0000-0000-0000-000000000000 - bytes_sent: 1073741824 - query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3,\ - \ \"end\": 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" - username: user1 - - bytes_received: 1073741824 - action: null - query_stats: "{\"timers\": {\"Context.StorageManager.read_load_array_schema_from_uri.sum\"\ - : 0.0255293, \"...\": \"...\"}, \"counters\": {\"Context.StorageManager.read_unfiltered_byte_num\"\ - : 191, \"...\": \"...\"}}" - event_at: 2000-01-23T04:56:07.000+00:00 - array_task_id: 00000000-0000-0000-0000-000000000000 - id: 00000000-0000-0000-0000-000000000000 - bytes_sent: 1073741824 - query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3,\ - \ \"end\": 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" - username: user1 - description: Return attr a1 in the subarray bounded by coordinates and - multiply attr1 by 2 - type: null - duration: 341000000000 - sql_init_commands: - - sql_init_commands - - sql_init_commands - sql_query: sql_query - id: id - logs: logs - udf_language: udf_language - cost: 0.12 - sql_parameters: - - "{}" - - "{}" - udf_code: udf_code - access_cost: 0.12 - cpu: 4000 - result_format: null - query_type: null - task_graph_uuid: task_graph_uuid - finish_time: 2000-01-23T04:56:07.000+00:00 - start_time: 2000-01-23T04:56:07.000+00:00 - name: subarray-multiplier - namespace: organization1 - client_node_uuid: client_node_uuid - array_metadata: - subscriptions: - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - last_accessed: 2000-01-23T04:56:07.000+00:00 - is_favorite: true - description: description - public_share: true - namespace_subscribed: false - type: sparse - uri: s3://bucket/array - tags: - - tags - - tags - share_count: 6.027456183070403 - allowed_actions: - - null - - null - size: 1024.0 - read_only: false - file_type: null - license_id: license_id - license_text: license_text - access_credentials_name: access_credentials_name - namespace: user1 - name: myarray1 - logo: logo - file_properties: - key: file_properties - tiledb_uri: tiledb_uri - id: 00000000-0000-0000-0000-000000000000 - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - egress_cost: 0.12 - subarray: - int32: - - 1 - - 1 - int64: - - 7 - - 7 - int8: - - 4 - - 4 - uint64: - - 1 - - 1 - float32: - - 4.9652185 - - 4.9652185 - uint32: - - 6 - - 6 - float64: - - 5.025004791520295 - - 5.025004791520295 - uint8: - - 7 - - 7 - uint16: - - 1 - - 1 - int16: - - 1 - - 1 - status: null - name: name - client_node_uuid: client_node_uuid - run_location: null - status: null - namespace: namespace - name: name - status_count: - key: 5.962133916683182 - egress_cost: 1.4658129805029452 - status: null - - total_cost: 0.8008281904610115 - access_cost: 6.027456183070403 - end_time: 2000-01-23T04:56:07.000+00:00 - created_at: 2000-01-23T04:56:07.000+00:00 - uuid: uuid - created_by: created_by - execution_time: P15H22M0.45S - start_time: 2000-01-23T04:56:07.000+00:00 - nodes: - - depends_on: - - depends_on - - depends_on - executions: - - memory: 1073741824 - activity: - - bytes_received: 1073741824 - action: null - query_stats: "{\"timers\": {\"Context.StorageManager.read_load_array_schema_from_uri.sum\"\ - : 0.0255293, \"...\": \"...\"}, \"counters\": {\"Context.StorageManager.read_unfiltered_byte_num\"\ - : 191, \"...\": \"...\"}}" - event_at: 2000-01-23T04:56:07.000+00:00 - array_task_id: 00000000-0000-0000-0000-000000000000 - id: 00000000-0000-0000-0000-000000000000 - bytes_sent: 1073741824 - query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3,\ - \ \"end\": 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" - username: user1 - - bytes_received: 1073741824 - action: null - query_stats: "{\"timers\": {\"Context.StorageManager.read_load_array_schema_from_uri.sum\"\ - : 0.0255293, \"...\": \"...\"}, \"counters\": {\"Context.StorageManager.read_unfiltered_byte_num\"\ - : 191, \"...\": \"...\"}}" - event_at: 2000-01-23T04:56:07.000+00:00 - array_task_id: 00000000-0000-0000-0000-000000000000 - id: 00000000-0000-0000-0000-000000000000 - bytes_sent: 1073741824 - query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3,\ - \ \"end\": 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" - username: user1 - description: Return attr a1 in the subarray bounded by coordinates and - multiply attr1 by 2 - type: null - duration: 341000000000 - sql_init_commands: - - sql_init_commands - - sql_init_commands - sql_query: sql_query - id: id - logs: logs - udf_language: udf_language - cost: 0.12 - sql_parameters: - - "{}" - - "{}" - udf_code: udf_code - access_cost: 0.12 - cpu: 4000 - result_format: null - query_type: null - task_graph_uuid: task_graph_uuid - finish_time: 2000-01-23T04:56:07.000+00:00 - start_time: 2000-01-23T04:56:07.000+00:00 - name: subarray-multiplier - namespace: organization1 - client_node_uuid: client_node_uuid - array_metadata: - subscriptions: - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - last_accessed: 2000-01-23T04:56:07.000+00:00 - is_favorite: true - description: description - public_share: true - namespace_subscribed: false - type: sparse - uri: s3://bucket/array - tags: - - tags - - tags - share_count: 6.027456183070403 - allowed_actions: - - null - - null - size: 1024.0 - read_only: false - file_type: null - license_id: license_id - license_text: license_text - access_credentials_name: access_credentials_name - namespace: user1 - name: myarray1 - logo: logo - file_properties: - key: file_properties - tiledb_uri: tiledb_uri - id: 00000000-0000-0000-0000-000000000000 - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - egress_cost: 0.12 - subarray: - int32: - - 1 - - 1 - int64: - - 7 - - 7 - int8: - - 4 - - 4 - uint64: - - 1 - - 1 - float32: - - 4.9652185 - - 4.9652185 - uint32: - - 6 - - 6 - float64: - - 5.025004791520295 - - 5.025004791520295 - uint8: - - 7 - - 7 - uint16: - - 1 - - 1 - int16: - - 1 - - 1 - status: null - - memory: 1073741824 - activity: - - bytes_received: 1073741824 - action: null - query_stats: "{\"timers\": {\"Context.StorageManager.read_load_array_schema_from_uri.sum\"\ - : 0.0255293, \"...\": \"...\"}, \"counters\": {\"Context.StorageManager.read_unfiltered_byte_num\"\ - : 191, \"...\": \"...\"}}" - event_at: 2000-01-23T04:56:07.000+00:00 - array_task_id: 00000000-0000-0000-0000-000000000000 - id: 00000000-0000-0000-0000-000000000000 - bytes_sent: 1073741824 - query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3,\ - \ \"end\": 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" - username: user1 - - bytes_received: 1073741824 - action: null - query_stats: "{\"timers\": {\"Context.StorageManager.read_load_array_schema_from_uri.sum\"\ - : 0.0255293, \"...\": \"...\"}, \"counters\": {\"Context.StorageManager.read_unfiltered_byte_num\"\ - : 191, \"...\": \"...\"}}" - event_at: 2000-01-23T04:56:07.000+00:00 - array_task_id: 00000000-0000-0000-0000-000000000000 - id: 00000000-0000-0000-0000-000000000000 - bytes_sent: 1073741824 - query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3,\ - \ \"end\": 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" - username: user1 - description: Return attr a1 in the subarray bounded by coordinates and - multiply attr1 by 2 - type: null - duration: 341000000000 - sql_init_commands: - - sql_init_commands - - sql_init_commands - sql_query: sql_query - id: id - logs: logs - udf_language: udf_language - cost: 0.12 - sql_parameters: - - "{}" - - "{}" - udf_code: udf_code - access_cost: 0.12 - cpu: 4000 - result_format: null - query_type: null - task_graph_uuid: task_graph_uuid - finish_time: 2000-01-23T04:56:07.000+00:00 - start_time: 2000-01-23T04:56:07.000+00:00 - name: subarray-multiplier - namespace: organization1 - client_node_uuid: client_node_uuid - array_metadata: - subscriptions: - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - last_accessed: 2000-01-23T04:56:07.000+00:00 - is_favorite: true - description: description - public_share: true - namespace_subscribed: false - type: sparse - uri: s3://bucket/array - tags: - - tags - - tags - share_count: 6.027456183070403 - allowed_actions: - - null - - null - size: 1024.0 - read_only: false - file_type: null - license_id: license_id - license_text: license_text - access_credentials_name: access_credentials_name - namespace: user1 - name: myarray1 - logo: logo - file_properties: - key: file_properties - tiledb_uri: tiledb_uri - id: 00000000-0000-0000-0000-000000000000 - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - egress_cost: 0.12 - subarray: - int32: - - 1 - - 1 - int64: - - 7 - - 7 - int8: - - 4 - - 4 - uint64: - - 1 - - 1 - float32: - - 4.9652185 - - 4.9652185 - uint32: - - 6 - - 6 - float64: - - 5.025004791520295 - - 5.025004791520295 - uint8: - - 7 - - 7 - uint16: - - 1 - - 1 - int16: - - 1 - - 1 - status: null - name: name - client_node_uuid: client_node_uuid - run_location: null - status: null - - depends_on: - - depends_on - - depends_on - executions: - - memory: 1073741824 - activity: - - bytes_received: 1073741824 - action: null - query_stats: "{\"timers\": {\"Context.StorageManager.read_load_array_schema_from_uri.sum\"\ - : 0.0255293, \"...\": \"...\"}, \"counters\": {\"Context.StorageManager.read_unfiltered_byte_num\"\ - : 191, \"...\": \"...\"}}" - event_at: 2000-01-23T04:56:07.000+00:00 - array_task_id: 00000000-0000-0000-0000-000000000000 - id: 00000000-0000-0000-0000-000000000000 - bytes_sent: 1073741824 - query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3,\ - \ \"end\": 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" - username: user1 - - bytes_received: 1073741824 - action: null - query_stats: "{\"timers\": {\"Context.StorageManager.read_load_array_schema_from_uri.sum\"\ - : 0.0255293, \"...\": \"...\"}, \"counters\": {\"Context.StorageManager.read_unfiltered_byte_num\"\ - : 191, \"...\": \"...\"}}" - event_at: 2000-01-23T04:56:07.000+00:00 - array_task_id: 00000000-0000-0000-0000-000000000000 - id: 00000000-0000-0000-0000-000000000000 - bytes_sent: 1073741824 - query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3,\ - \ \"end\": 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" - username: user1 - description: Return attr a1 in the subarray bounded by coordinates and - multiply attr1 by 2 - type: null - duration: 341000000000 - sql_init_commands: - - sql_init_commands - - sql_init_commands - sql_query: sql_query - id: id - logs: logs - udf_language: udf_language - cost: 0.12 - sql_parameters: - - "{}" - - "{}" - udf_code: udf_code - access_cost: 0.12 - cpu: 4000 - result_format: null - query_type: null - task_graph_uuid: task_graph_uuid - finish_time: 2000-01-23T04:56:07.000+00:00 - start_time: 2000-01-23T04:56:07.000+00:00 - name: subarray-multiplier - namespace: organization1 - client_node_uuid: client_node_uuid - array_metadata: - subscriptions: - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - last_accessed: 2000-01-23T04:56:07.000+00:00 - is_favorite: true - description: description - public_share: true - namespace_subscribed: false - type: sparse - uri: s3://bucket/array - tags: - - tags - - tags - share_count: 6.027456183070403 - allowed_actions: - - null - - null - size: 1024.0 - read_only: false - file_type: null - license_id: license_id - license_text: license_text - access_credentials_name: access_credentials_name - namespace: user1 - name: myarray1 - logo: logo - file_properties: - key: file_properties - tiledb_uri: tiledb_uri - id: 00000000-0000-0000-0000-000000000000 - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - egress_cost: 0.12 - subarray: - int32: - - 1 - - 1 - int64: - - 7 - - 7 - int8: - - 4 - - 4 - uint64: - - 1 - - 1 - float32: - - 4.9652185 - - 4.9652185 - uint32: - - 6 - - 6 - float64: - - 5.025004791520295 - - 5.025004791520295 - uint8: - - 7 - - 7 - uint16: - - 1 - - 1 - int16: - - 1 - - 1 - status: null - - memory: 1073741824 - activity: - - bytes_received: 1073741824 - action: null - query_stats: "{\"timers\": {\"Context.StorageManager.read_load_array_schema_from_uri.sum\"\ - : 0.0255293, \"...\": \"...\"}, \"counters\": {\"Context.StorageManager.read_unfiltered_byte_num\"\ - : 191, \"...\": \"...\"}}" - event_at: 2000-01-23T04:56:07.000+00:00 - array_task_id: 00000000-0000-0000-0000-000000000000 - id: 00000000-0000-0000-0000-000000000000 - bytes_sent: 1073741824 - query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3,\ - \ \"end\": 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" - username: user1 - - bytes_received: 1073741824 - action: null - query_stats: "{\"timers\": {\"Context.StorageManager.read_load_array_schema_from_uri.sum\"\ - : 0.0255293, \"...\": \"...\"}, \"counters\": {\"Context.StorageManager.read_unfiltered_byte_num\"\ - : 191, \"...\": \"...\"}}" - event_at: 2000-01-23T04:56:07.000+00:00 - array_task_id: 00000000-0000-0000-0000-000000000000 - id: 00000000-0000-0000-0000-000000000000 - bytes_sent: 1073741824 - query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3,\ - \ \"end\": 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" - username: user1 - description: Return attr a1 in the subarray bounded by coordinates and - multiply attr1 by 2 - type: null - duration: 341000000000 - sql_init_commands: - - sql_init_commands - - sql_init_commands - sql_query: sql_query - id: id - logs: logs - udf_language: udf_language - cost: 0.12 - sql_parameters: - - "{}" - - "{}" - udf_code: udf_code - access_cost: 0.12 - cpu: 4000 - result_format: null - query_type: null - task_graph_uuid: task_graph_uuid - finish_time: 2000-01-23T04:56:07.000+00:00 - start_time: 2000-01-23T04:56:07.000+00:00 - name: subarray-multiplier - namespace: organization1 - client_node_uuid: client_node_uuid - array_metadata: - subscriptions: - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - - owner_namespace_uuid: 00000000-0000-0000-0000-000000000000 - id: subscriptionID - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - customer_namespace_uuid: 00000000-0000-0000-0000-000000000000 - last_accessed: 2000-01-23T04:56:07.000+00:00 - is_favorite: true - description: description - public_share: true - namespace_subscribed: false - type: sparse - uri: s3://bucket/array - tags: - - tags - - tags - share_count: 6.027456183070403 - allowed_actions: - - null - - null - size: 1024.0 - read_only: false - file_type: null - license_id: license_id - license_text: license_text - access_credentials_name: access_credentials_name - namespace: user1 - name: myarray1 - logo: logo - file_properties: - key: file_properties - tiledb_uri: tiledb_uri - id: 00000000-0000-0000-0000-000000000000 - pricing: - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - - charge: 0.8008281904610115 - pricing_name: pricing_name - aggregate_usage: null - product_name: product_name - pricing_type: null - divided_by: 1048576 - array_uuid: 00000000-0000-0000-0000-000000000000 - product_statement_descriptor: product_statement_descriptor - currency: null - interval: null - id: planID - product_unit_label: null - activated: false - egress_cost: 0.12 - subarray: - int32: - - 1 - - 1 - int64: - - 7 - - 7 - int8: - - 4 - - 4 - uint64: - - 1 - - 1 - float32: - - 4.9652185 - - 4.9652185 - uint32: - - 6 - - 6 - float64: - - 5.025004791520295 - - 5.025004791520295 - uint8: - - 7 - - 7 - uint16: - - 1 - - 1 - int16: - - 1 - - 1 - status: null - name: name - client_node_uuid: client_node_uuid - run_location: null - status: null - namespace: namespace - name: name - status_count: - key: 5.962133916683182 - egress_cost: 1.4658129805029452 - status: null - properties: - task_graph_logs: - description: The requested task graph logs. - items: - $ref: '#/components/schemas/TaskGraphLog' - type: array - pagination_metadata: - $ref: '#/components/schemas/PaginationMetadata' - type: object - TaskGraphClientNodeStatus: - description: | - A report of the execution status of a node that ran on the client side. - example: - client_node_uuid: client_node_uuid - status: null - properties: - client_node_uuid: - type: string - status: - $ref: '#/components/schemas/ArrayTaskStatus' - type: object - RegisteredTaskGraph: - 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. - example: - nodes: - - array_node: - ranges: - layout: null - ranges: - - - 0.8008281904610115 - - 0.8008281904610115 - - - 0.8008281904610115 - - 0.8008281904610115 - buffers: - - buffers - - buffers - uri: uri - parameter_id: parameter_id - sql_node: - init_commands: - - init_commands - - init_commands - query: query - namespace: namespace - result_format: null - parameters: - - null - - null - depends_on: - - depends_on - - depends_on - input_node: - datatype: datatype - default_value: "{}" - name: name - client_node_id: client_node_id - udf_node: - environment: - image_name: image_name - resource_class: resource_class - run_client_side: true - namespace: namespace - language: null - language_version: language_version - source_text: source_text - arguments: - - name: name - value: "{}" - - name: name - value: "{}" - result_format: null - registered_udf_name: registered_udf_name - executable_code: executable_code - - array_node: - ranges: - layout: null - ranges: - - - 0.8008281904610115 - - 0.8008281904610115 - - - 0.8008281904610115 - - 0.8008281904610115 - buffers: - - buffers - - buffers - uri: uri - parameter_id: parameter_id - sql_node: - init_commands: - - init_commands - - init_commands - query: query - namespace: namespace - result_format: null - parameters: - - null - - null - depends_on: - - depends_on - - depends_on - input_node: - datatype: datatype - default_value: "{}" - name: name - client_node_id: client_node_id - udf_node: - environment: - image_name: image_name - resource_class: resource_class - run_client_side: true - namespace: namespace - language: null - language_version: language_version - source_text: source_text - arguments: - - name: name - value: "{}" - - name: name - value: "{}" - result_format: null - registered_udf_name: registered_udf_name - executable_code: executable_code - license_id: license_id - license_text: license_text - namespace: namespace - name: name - readme: readme - uuid: uuid - tags: - - tags - - tags - properties: - uuid: - description: "A server-assigned unique ID for the UDF, in UUID format." - type: string - namespace: - description: The namespace that owns this task graph log. - type: string - name: - description: "The name of this graph, to appear in URLs. Must be unique\ - \ per-namespace.\n" - type: string - readme: - description: "Documentation for the task graph, in Markdown format." - type: string - license_id: - description: SPDX license identifier. - nullable: true - type: string - license_text: - description: Full text of the license. - nullable: true - type: string - tags: - description: Optional tags to classify the graph. - items: - description: "Unaccented, lowercase, hyphenated Latin characters." - type: string - nullable: false - type: array - nodes: - description: "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.\n" - items: - $ref: '#/components/schemas/RegisteredTaskGraphNode' - type: array - type: object - TaskGraphActions: - description: actions a user can take on a UDF - enum: - - fetch_task_graph - - share_task_graph - type: string - TaskGraphSharing: - description: details for sharing a given registered task graph - example: - namespace: MyOrganization - namespace_type: organization - actions: - - fetch_task_graph - - share_task_graph - properties: - actions: - description: List of permitted actions - example: - - fetch_task_graph - - share_task_graph - items: - $ref: '#/components/schemas/TaskGraphActions' - type: array - x-omitempty: true - namespace: - description: namespace being granted array access can be a user or organization - example: MyOrganization - type: string - namespace_type: - description: details on if the namespace is a organization or user - example: organization - type: string - type: object - RegisteredTaskGraphNode: - 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`.\n" - example: - array_node: - ranges: - layout: null - ranges: - - - 0.8008281904610115 - - 0.8008281904610115 - - - 0.8008281904610115 - - 0.8008281904610115 - buffers: - - buffers - - buffers - uri: uri - parameter_id: parameter_id - sql_node: - init_commands: - - init_commands - - init_commands - query: query - namespace: namespace - result_format: null - parameters: - - null - - null - depends_on: - - depends_on - - depends_on - input_node: - datatype: datatype - default_value: "{}" - name: name - client_node_id: client_node_id - udf_node: - environment: - image_name: image_name - resource_class: resource_class - run_client_side: true - namespace: namespace - language: null - language_version: language_version - source_text: source_text - arguments: - - name: name - value: "{}" - - name: name - value: "{}" - result_format: null - registered_udf_name: registered_udf_name - executable_code: executable_code - properties: - client_node_id: - description: The client-generated UUID of the given graph node. - type: string - name: - description: "A client-specified name for the node. If provided, this must\ - \ be unique.\n" - nullable: true - type: string - depends_on: - description: | - The client_node_uuid of each node that this node depends upon. Used to define the structure of the graph. - items: - type: string - type: array - array_node: - $ref: '#/components/schemas/UDFArrayDetails' - input_node: - $ref: '#/components/schemas/TGInputNodeData' - sql_node: - $ref: '#/components/schemas/TGSQLNodeData' - udf_node: - $ref: '#/components/schemas/TGUDFNodeData' - type: object - TGInputNodeData: - description: "Specifies that a node is an “input value”, allowing for parameterized\ - \ task graphs. An input node may not depend upon any other nodes.\n" - example: - datatype: datatype - default_value: "{}" - nullable: true - properties: - default_value: - description: "An argument provided to a node. This is one of a direct value\ - \ (i.e., a raw JSON value) or a `TGSentinel`.\nFor example this Python\ - \ value:\n\n {\"a\": [1, \"pipe\", range(30), None], \"b\": b\"bytes\"\ - }\n\nis encoded thusly (with included comments):\n\n { // A dictionary\ - \ with string keys is JSON-encodable.\n \"a\": [ // As is a list.\n\ - \ 1,\n \"pipe\",\n { // A `range` is replaced with\ - \ its pickle.\n \"__tdbudf__\": \"immediate\",\n \"\ - format\": \"python_pickle\",\n \"base64_data\": \"gASVIAAAAAAAAACMCGJ1aWx0aW5zlIwFcmFuZ2WUk5RLAEseSwGHlFKULg==\"\ - \n },\n null\n ],\n \"b\": { // Raw binary data\ - \ is encoded into base64.\n \"__tdbudf__\": \"immediate\"\n \ - \ \"format\": \"bytes\",\n \"base64_data\": \"Ynl0ZXM=\"\n\ - \ }\n }\n" - type: object - datatype: - description: "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.\n" - nullable: true - type: string - type: object - x-nullable: true - TGSQLNodeData: - description: | - A node specifying an SQL query to execute in TileDB Cloud. - example: - init_commands: - - init_commands - - init_commands - query: query - namespace: namespace - result_format: null - parameters: - - null - - null - nullable: true - properties: - init_commands: - description: The commands to execute before running the query itself. - items: - type: string - type: array - query: - description: "The text of the SQL query to execute. Parameters are substituted\ - \ in for `?`s, just as in a regular MariaDB query.\n" - type: string - parameters: - description: | - The parameters to substitute in for arguments in the `query`. Fixed-length. Arguments must be in JSON format. - items: - $ref: '#/components/schemas/TGArgValue' - type: array - result_format: - $ref: '#/components/schemas/ResultFormat' - namespace: - description: "If set, the non-default namespace to execute this SQL query\ - \ under.\n" - nullable: true - type: string - type: object - x-nullable: true - TGUDFNodeData: - description: A node specifying the execution of a user-defined function. - example: - environment: - image_name: image_name - resource_class: resource_class - run_client_side: true - namespace: namespace - language: null - language_version: language_version - source_text: source_text - arguments: - - name: name - value: "{}" - - name: name - value: "{}" - result_format: null - registered_udf_name: registered_udf_name - executable_code: executable_code - nullable: true - properties: - registered_udf_name: - description: "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.\n" - nullable: true - type: string - executable_code: - description: "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).\n" - nullable: true - type: string - source_text: - description: "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.\n" - type: string - environment: - $ref: '#/components/schemas/TGUDFEnvironment' - arguments: - description: "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.\nFor Python (and most\ - \ other languages), all positional arguments will come before all named\ - \ arguments (if any are present):\n\n // fn(arg1, arg2, arg3)\n \ - \ [\n {value: arg1},\n {value: arg2},\n {value: arg3},\n\ - \ ]\n // fn(arg1, arg2, n=kw1, a=kw2)\n [\n {value: arg1},\n\ - \ {value: arg2},\n {name: \"n\", value: kw1},\n {name:\ - \ \"a\", value: kw2},\n ]\n // fn(kw=k1, only=k2)\n [\n \ - \ {name: \"kw\", value: k1},\n {name: \"only\", value: k2},\n \ - \ ]\n\nHowever, in R, named and positional arguments may be intermixed\ - \ freely:\n\n // fn(arg, n=kw1, arg2)\n [\n {value: arg},\n\ - \ {name: \"n\", value: kw1},\n {value: arg2},\n ]\n" - items: - $ref: '#/components/schemas/TGUDFArgument' - type: array - result_format: - $ref: '#/components/schemas/ResultFormat' - type: object - x-nullable: true - TGUDFArgument: - description: "A single argument to a UDF. This may represent a positional argument\ - \ or a named argument, depending upon whether `name` is set.\n" - example: - name: name - value: "{}" - properties: - name: - description: "The name of the argument, if present." - nullable: true - type: string - value: - description: "An argument provided to a node. This is one of a direct value\ - \ (i.e., a raw JSON value) or a `TGSentinel`.\nFor example this Python\ - \ value:\n\n {\"a\": [1, \"pipe\", range(30), None], \"b\": b\"bytes\"\ - }\n\nis encoded thusly (with included comments):\n\n { // A dictionary\ - \ with string keys is JSON-encodable.\n \"a\": [ // As is a list.\n\ - \ 1,\n \"pipe\",\n { // A `range` is replaced with\ - \ its pickle.\n \"__tdbudf__\": \"immediate\",\n \"\ - format\": \"python_pickle\",\n \"base64_data\": \"gASVIAAAAAAAAACMCGJ1aWx0aW5zlIwFcmFuZ2WUk5RLAEseSwGHlFKULg==\"\ - \n },\n null\n ],\n \"b\": { // Raw binary data\ - \ is encoded into base64.\n \"__tdbudf__\": \"immediate\"\n \ - \ \"format\": \"bytes\",\n \"base64_data\": \"Ynl0ZXM=\"\n\ - \ }\n }\n" - type: object - type: object - TGArgValue: - description: "An argument provided to a node. This is one of a direct value\ - \ (i.e., a raw JSON value) or a `TGSentinel`.\nFor example this Python value:\n\ - \n {\"a\": [1, \"pipe\", range(30), None], \"b\": b\"bytes\"}\n\nis encoded\ - \ thusly (with included comments):\n\n { // A dictionary with string keys\ - \ is JSON-encodable.\n \"a\": [ // As is a list.\n 1,\n \ - \ \"pipe\",\n { // A `range` is replaced with its pickle.\n \ - \ \"__tdbudf__\": \"immediate\",\n \"format\": \"python_pickle\"\ - ,\n \"base64_data\": \"gASVIAAAAAAAAACMCGJ1aWx0aW5zlIwFcmFuZ2WUk5RLAEseSwGHlFKULg==\"\ - \n },\n null\n ],\n \"b\": { // Raw binary data is\ - \ encoded into base64.\n \"__tdbudf__\": \"immediate\"\n \"\ - format\": \"bytes\",\n \"base64_data\": \"Ynl0ZXM=\"\n }\n \ - \ }\n" - type: object - TGUDFEnvironment: - description: Metadata about the environment where we want to execute a UDF. - example: - image_name: image_name - resource_class: resource_class - run_client_side: true - namespace: namespace - language: null - language_version: language_version - properties: - language: - $ref: '#/components/schemas/UDFLanguage' - language_version: - description: "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.\n" - type: string - image_name: - description: | - The name of the image to use for the execution environment. - type: string - namespace: - description: "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).\n" - nullable: true - type: string - resource_class: - description: "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.\n" - type: string - x-omitempty: true - run_client_side: - description: "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.\n" - type: boolean - x-omitempty: true - type: object - getTiledbStats_200_response: - example: - stats: "123" - properties: - stats: - description: string of stats from tiledb - example: "123" - type: string - type: object - resetUserPassword_request: - description: Password to update - properties: - password: - description: password - example: password - minLength: 8 - type: string - type: object - HandleUploadNotebook_request: - properties: - input_file: - description: the notebook to upload - format: binary - type: string - output_uri: - description: output location of the TileDB File - type: string - name: - description: name to set for registered file - type: string - required: - - input_file - HandleUploadFile_request: - properties: - input_file: - description: the file to upload - format: binary - type: string - output_uri: - description: output location of the TileDB File - type: string - name: - description: name to set for registered file - type: string - required: - - input_file - Dimension_tileExtent: - description: Extent of tile - example: - int32: 9 - int64: 3 - int8: 9 - uint64: 6 - float32: 1 - uint32: 6 - float64: 2 - uint8: 9 - uint16: 8 - int16: 6 - properties: - int8: - format: int8 - type: integer - uint8: - format: uint8 - type: integer - int16: - format: int16 - type: integer - uint16: - format: uint16 - type: integer - int32: - format: int32 - type: integer - uint32: - format: uint32 - type: integer - int64: - format: int64 - type: integer - uint64: - format: uint64 - type: integer - float32: - format: float - type: integer - float64: - format: double - type: integer - type: object - Filter_data: - description: Filter data - example: - int32: 5 - int64: 7 - int8: 0 - uint64: 9 - float32: 3 - uint32: 2 - float64: 2 - uint8: 6 - uint16: 5 - int16: 1 - properties: - int8: - format: int8 - type: integer - uint8: - format: uint8 - type: integer - int16: - format: int16 - type: integer - uint16: - format: uint16 - type: integer - int32: - format: int32 - type: integer - uint32: - format: uint32 - type: integer - int64: - format: int64 - type: integer - uint64: - format: uint64 - type: integer - float32: - format: float - type: integer - float64: - format: double - type: integer - type: object - SubarrayPartitioner_current: - description: The current partition info - example: - splitMultiRange: true - start: 5 - end: 5 - subarray: - layout: null - ranges: - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - properties: - subarray: - $ref: '#/components/schemas/Subarray' - start: - description: PartitionInfo start - format: uint64 - type: integer - end: - description: PartitionInfo end - format: uint64 - type: integer - splitMultiRange: - description: PartitionInfo splitMultiRange - type: boolean - type: object - SubarrayPartitioner_state: - description: The state information for the remaining partitions to be produced - example: - start: 2 - end: 7 - singleRange: - - layout: null - ranges: - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - - layout: null - ranges: - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - multiRange: - - layout: null - ranges: - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - - layout: null - ranges: - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - - hasDefaultRange: true - buffer: - - 1 - - 1 - type: null - properties: - start: - description: State start - format: uint64 - type: integer - end: - description: State end - format: uint64 - type: integer - singleRange: - description: State singleRange - items: - $ref: '#/components/schemas/Subarray' - type: array - x-omitempty: true - multiRange: - description: State multiRange - items: - $ref: '#/components/schemas/Subarray' - type: array - x-omitempty: true - type: object - securitySchemes: - BasicAuth: - scheme: basic - type: http - ApiKeyAuth: - in: header - name: X-TILEDB-REST-API-KEY - type: apiKey - OAuth2: - flows: - authorizationCode: - authorizationUrl: https://oauth2.tiledb.com/oauth2/authorize - scopes: - read: Grants read access - write: Grants write access - admin: Grants read and write access to administrative information - tokenUrl: https://oauth2.tiledb.com/oauth2/token - type: oauth2 -x-original-swagger-version: "2.0" - diff --git a/build.gradle b/build.gradle index f8ed96f..b48945d 100644 --- a/build.gradle +++ b/build.gradle @@ -27,7 +27,7 @@ apply plugin: 'java' apply plugin: 'com.diffplug.spotless' group 'io.tiledb' -version = '0.2.1-SNAPSHOT' +version = '0.3.0-SNAPSHOT' repositories { mavenCentral() diff --git a/docs/ActivityEventType.md b/docs/ActivityEventType.md index 3fe528d..c3a136d 100644 --- a/docs/ActivityEventType.md +++ b/docs/ActivityEventType.md @@ -15,6 +15,8 @@ * `QUERY_WRITE` (value: `"query_write"`) +* `QUERY_DELETE` (value: `"query_delete"`) + * `CREATE` (value: `"create"`) * `DELETE` (value: `"delete"`) @@ -31,5 +33,7 @@ * `ESTIMATED_RESULT_SIZES` (value: `"estimated_result_sizes"`) +* `READ_FRAGMENT_INFO` (value: `"read_fragment_info"`) + diff --git a/docs/ArrayApi.md b/docs/ArrayApi.md index 90b0aeb..5e71ac2 100644 --- a/docs/ArrayApi.md +++ b/docs/ArrayApi.md @@ -16,6 +16,7 @@ All URIs are relative to */v1* | [**createArray**](ArrayApi.md#createArray) | **POST** /arrays/{namespace}/{array} | | | [**deleteArray**](ArrayApi.md#deleteArray) | **DELETE** /arrays/{namespace}/{array} | | | [**deregisterArray**](ArrayApi.md#deregisterArray) | **DELETE** /arrays/{namespace}/{array}/deregister | | +| [**fragmentInfo**](ArrayApi.md#fragmentInfo) | **POST** /arrays/{namespace}/{array}/fragment_info | | | [**getActivityLogById**](ArrayApi.md#getActivityLogById) | **GET** /arrays/{namespace}/{array}/activity/{id} | | | [**getAllArrayMetadata**](ArrayApi.md#getAllArrayMetadata) | **GET** /arrays | | | [**getArray**](ArrayApi.md#getArray) | **GET** /arrays/{namespace}/{array} | | @@ -50,11 +51,11 @@ get array activity logs ```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.model.*; -import io.tiledb.cloud.rest_api.api.ArrayApi; +import ApiClient; +import ApiException; +import Configuration; +import io.tiledb.cloud.rest_api.models.*; +import ArrayApi; public class Example { public static void main(String[] args) { @@ -77,7 +78,7 @@ public class Example { 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 | Event values can be one or more of the following read, write, create, delete, register, deregister, comma separated + 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 { @@ -102,7 +103,7 @@ public class Example { | **array** | **String**| name/uri of array that is url-encoded | | | **start** | **Integer**| Start time of window of fetch logs, unix epoch in seconds (default: seven days ago) | [optional] | | **end** | **Integer**| End time of window of fetch logs, unix epoch in seconds (default: current utc timestamp) | [optional] | -| **eventTypes** | **String**| Event values can be one or more of the following read, write, create, delete, register, deregister, comma separated | [optional] | +| **eventTypes** | **String**| Refer to ActivityEventType for possible values | [optional] | | **taskId** | **String**| Array task ID To filter activity to | [optional] | | **hasTaskId** | **Boolean**| Excludes activity log results that do not contain an array task UUID | [optional] | @@ -123,6 +124,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | log of array activity | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -141,7 +143,7 @@ Fetch a list of all arrays that are owned directly by user or user's organiz import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import ArrayApi; public class Example { @@ -219,11 +221,12 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Array of array info that are owned directly by user or user's organizations | - | +| **502** | Bad Gateway | - | | **0** | error response | - | # **arraysBrowserOwnedSidebarGet** -> ArrayBrowserSidebar arraysBrowserOwnedSidebarGet() +> ArrayBrowserSidebar arraysBrowserOwnedSidebarGet(fileType, excludeFileType, fileProperty) @@ -237,7 +240,7 @@ Fetch a sidebar for arrays that are owned directly by user or user's organiz import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import ArrayApi; public class Example { @@ -257,8 +260,11 @@ public class Example { 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(); + ArrayBrowserSidebar result = apiInstance.arraysBrowserOwnedSidebarGet(fileType, excludeFileType, fileProperty); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ArrayApi#arraysBrowserOwnedSidebarGet"); @@ -272,7 +278,12 @@ public class Example { ``` ### Parameters -This endpoint does not need any parameter. + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **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] | ### Return type @@ -291,6 +302,7 @@ This endpoint does not need any parameter. | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Array of array info that are owned directly by user or user's organizations | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -309,7 +321,7 @@ Fetch a list of all arrays that have been shared publically import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import ArrayApi; public class Example { @@ -387,11 +399,12 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Array of array info that has been shared publically | - | +| **502** | Bad Gateway | - | | **0** | error response | - | # **arraysBrowserPublicSidebarGet** -> ArrayBrowserSidebar arraysBrowserPublicSidebarGet() +> ArrayBrowserSidebar arraysBrowserPublicSidebarGet(fileType, excludeFileType, fileProperty) @@ -405,7 +418,7 @@ Fetch a sidebar of all arrays that have been shared publically import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import ArrayApi; public class Example { @@ -425,8 +438,11 @@ public class Example { 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(); + ArrayBrowserSidebar result = apiInstance.arraysBrowserPublicSidebarGet(fileType, excludeFileType, fileProperty); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ArrayApi#arraysBrowserPublicSidebarGet"); @@ -440,7 +456,12 @@ public class Example { ``` ### Parameters -This endpoint does not need any parameter. + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **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] | ### Return type @@ -459,6 +480,7 @@ This endpoint does not need any parameter. | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Array of array info that has been shared publically | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -477,7 +499,7 @@ Fetch a list of all arrays that have been shared with the user import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import ArrayApi; public class Example { @@ -557,11 +579,12 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Array of array info that has been shared with the user | - | +| **502** | Bad Gateway | - | | **0** | error response | - | # **arraysBrowserSharedSidebarGet** -> ArrayBrowserSidebar arraysBrowserSharedSidebarGet() +> ArrayBrowserSidebar arraysBrowserSharedSidebarGet(fileType, excludeFileType, fileProperty, sharedTo) @@ -575,7 +598,7 @@ Fetch a list of all arrays that have been shared with the user import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import ArrayApi; public class Example { @@ -595,8 +618,12 @@ public class Example { 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(); + ArrayBrowserSidebar result = apiInstance.arraysBrowserSharedSidebarGet(fileType, excludeFileType, fileProperty, sharedTo); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ArrayApi#arraysBrowserSharedSidebarGet"); @@ -610,7 +637,13 @@ public class Example { ``` ### Parameters -This endpoint does not need any parameter. + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **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] | +| **sharedTo** | [**List<String>**](String.md)| namespaces to filter results of where there groups were shared to | [optional] | ### Return type @@ -629,6 +662,7 @@ This endpoint does not need any parameter. | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Array of array info that has been shared with the user | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -647,7 +681,7 @@ retrieve a list of timestamps from the array fragment info listing in millisecon import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import ArrayApi; public class Example { @@ -711,11 +745,12 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | list of timestamps in milliseconds, paginated | - | +| **502** | Bad Gateway | - | | **0** | error response | - | # **consolidateArray** -> consolidateArray(namespace, array, tiledbConfig) +> consolidateArray(namespace, array, consolidateRequest) @@ -729,7 +764,7 @@ consolidate an array at a specified URI import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import ArrayApi; public class Example { @@ -751,9 +786,9 @@ public class Example { 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 - TileDBConfig tiledbConfig = new TileDBConfig(); // TileDBConfig | tiledb configuration + ArrayConsolidationRequest consolidateRequest = new ArrayConsolidationRequest(); // ArrayConsolidationRequest | Consolidate Request try { - apiInstance.consolidateArray(namespace, array, tiledbConfig); + apiInstance.consolidateArray(namespace, array, consolidateRequest); } catch (ApiException e) { System.err.println("Exception when calling ArrayApi#consolidateArray"); System.err.println("Status code: " + e.getCode()); @@ -771,7 +806,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **namespace** | **String**| namespace array is in (an organization name or user's username) | | | **array** | **String**| name/uri of array that is url-encoded | | -| **tiledbConfig** | [**TileDBConfig**](TileDBConfig.md)| tiledb configuration | | +| **consolidateRequest** | [**ArrayConsolidationRequest**](ArrayConsolidationRequest.md)| Consolidate Request | | ### Return type @@ -790,6 +825,7 @@ null (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **204** | array consolidated successfully | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -808,7 +844,7 @@ create a array schema at a specified URI registered to a group/project import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import ArrayApi; public class Example { @@ -873,6 +909,7 @@ null (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **204** | schema created successfully | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -891,7 +928,7 @@ delete a array import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import ArrayApi; public class Example { @@ -952,6 +989,7 @@ null (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **204** | delete array successful | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -970,7 +1008,7 @@ deregister a array import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import ArrayApi; public class Example { @@ -1029,6 +1067,89 @@ null (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **204** | deregistered array successful | - | +| **502** | Bad Gateway | - | +| **0** | error response | - | + + +# **fragmentInfo** +> FragmentInfo fragmentInfo(namespace, array, contentType, fragmentInfoRequest) + + + +fetch an array's fragment info + +### Example + +```java +// Import classes: + +import ApiClient; +import ApiException; +import Configuration; +import io.tiledb.cloud.rest_api.models.*; +import 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(); + } + } +} +``` + +### 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 | | +| **contentType** | **String**| Content Type of input and return mime | [default to application/json] | +| **fragmentInfoRequest** | [**FragmentInfoRequest**](FragmentInfoRequest.md)| ArraySchema being created | | + +### Return type + +[**FragmentInfo**](FragmentInfo.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | fragment info | - | | **0** | error response | - | @@ -1047,7 +1168,7 @@ get activity log by ID import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import ArrayApi; public class Example { @@ -1109,6 +1230,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | array activity | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -1127,7 +1249,7 @@ get all array metadata user has access to import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import ArrayApi; public class Example { @@ -1185,6 +1307,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | array metadata for all arrays user has access to | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -1203,7 +1326,7 @@ get an ArraySchema using a url encoded uri import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import ArrayApi; public class Example { @@ -1265,6 +1388,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | get ArraySchema | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -1283,7 +1407,7 @@ get the max buffer sizes of an array for a subarray import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import ArrayApi; public class Example { @@ -1349,6 +1473,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | get the max buffer sizes of an array for a subarray | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -1367,7 +1492,7 @@ get metadata from the array in JSON format import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import ArrayApi; public class Example { @@ -1431,6 +1556,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | get array metadata | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -1449,7 +1575,7 @@ get metadata on an array import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import ArrayApi; public class Example { @@ -1509,6 +1635,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | array metadata for an array | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -1527,7 +1654,7 @@ get metadata on an array import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import ArrayApi; public class Example { @@ -1587,6 +1714,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | array metadata for an array | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -1605,7 +1733,7 @@ get the non empty domain of an array import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import ArrayApi; public class Example { @@ -1669,6 +1797,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | get the non empty domain of an array | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -1687,7 +1816,7 @@ get non-empty domain from the array in json format import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import ArrayApi; public class Example { @@ -1747,6 +1876,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | get array non-empty domaim | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -1765,7 +1895,7 @@ get an sample set of data from the array import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import ArrayApi; public class Example { @@ -1827,6 +1957,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | get array sample data | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -1845,7 +1976,7 @@ Get all sharing details of the array import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import ArrayApi; public class Example { @@ -1906,6 +2037,7 @@ public class Example { |-------------|-------------|------------------| | **200** | List of all specific sharing policies | - | | **404** | Array does not exist or user does not have permissions to view array-sharing policies | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -1924,7 +2056,7 @@ get metadata on all arrays in a namespace import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import ArrayApi; public class Example { @@ -1982,6 +2114,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | array metadata for all arrays in a namespace | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -2000,7 +2133,7 @@ Get fragment end_timestamp on an array, will search for the closest end_timestam import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import ArrayApi; public class Example { @@ -2062,6 +2195,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | fragment end_timestamp on an array | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -2078,7 +2212,7 @@ public class Example { import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import ArrayApi; public class Example { @@ -2132,6 +2266,7 @@ This endpoint does not need any parameter. | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | gets last accessed arrays | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -2150,7 +2285,7 @@ register an array at a specified URI registered to the given namespace import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import ArrayApi; public class Example { @@ -2212,6 +2347,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | array registered successfully | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -2230,7 +2366,7 @@ Share an array with a user import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import ArrayApi; public class Example { @@ -2292,6 +2428,7 @@ null (empty response body) |-------------|-------------|------------------| | **204** | Array shared successfully | - | | **404** | Array does not exist or user does not have permissions to share array | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -2310,7 +2447,7 @@ update metadata on an array import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import ArrayApi; public class Example { @@ -2371,6 +2508,7 @@ null (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **204** | array metadata updated successfully | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -2389,7 +2527,7 @@ update metadata on an array import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import ArrayApi; public class Example { @@ -2450,11 +2588,12 @@ null (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | array metadata updated successfully | - | +| **502** | Bad Gateway | - | | **0** | error response | - | # **vacuumArray** -> vacuumArray(namespace, array, tiledbConfig) +> vacuumArray(namespace, array, vaccumRequest) @@ -2468,7 +2607,7 @@ vacuum an array at a specified URI import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import ArrayApi; public class Example { @@ -2490,9 +2629,9 @@ public class Example { 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 - TileDBConfig tiledbConfig = new TileDBConfig(); // TileDBConfig | tiledb configuration + ArrayVacuumRequest vaccumRequest = new ArrayVacuumRequest(); // ArrayVacuumRequest | Vaccum Request try { - apiInstance.vacuumArray(namespace, array, tiledbConfig); + apiInstance.vacuumArray(namespace, array, vaccumRequest); } catch (ApiException e) { System.err.println("Exception when calling ArrayApi#vacuumArray"); System.err.println("Status code: " + e.getCode()); @@ -2510,7 +2649,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **namespace** | **String**| namespace array is in (an organization name or user's username) | | | **array** | **String**| name/uri of array that is url-encoded | | -| **tiledbConfig** | [**TileDBConfig**](TileDBConfig.md)| tiledb configuration | | +| **vaccumRequest** | [**ArrayVacuumRequest**](ArrayVacuumRequest.md)| Vaccum Request | | ### Return type @@ -2529,5 +2668,6 @@ null (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **204** | array vacuumed successfully | - | +| **502** | Bad Gateway | - | | **0** | error response | - | diff --git a/docs/ArrayConsolidationRequest.md b/docs/ArrayConsolidationRequest.md new file mode 100644 index 0000000..2bff2fb --- /dev/null +++ b/docs/ArrayConsolidationRequest.md @@ -0,0 +1,14 @@ + + +# ArrayConsolidationRequest + +Request to consolidate an array + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**config** | [**TileDBConfig**](TileDBConfig.md) | | [optional] | + + + diff --git a/docs/ArrayInfo.md b/docs/ArrayInfo.md index ab0bd1e..a0ccf8d 100644 --- a/docs/ArrayInfo.md +++ b/docs/ArrayInfo.md @@ -22,7 +22,7 @@ metadata of an array |**subscriptions** | [**List<Subscription>**](Subscription.md) | list of subscriptions created for this array | [optional] | |**logo** | **String** | logo (base64 encoded) for the array. Optional | [optional] | |**accessCredentialsName** | **String** | the name of the access credentials to use. if unset, the default credentials will be used | [optional] | -|**type** | **String** | Array type (dense, key-value, sparse) | [optional] | +|**type** | **ArrayType** | | [optional] | |**shareCount** | **BigDecimal** | number of unique namespaces this array is shared with | [optional] | |**publicShare** | **Boolean** | Suggests if the array was shared to public by owner | [optional] | |**namespaceSubscribed** | **Boolean** | Depends on the namespace asking, denotes the existence of subscription of namespace to this array | [optional] [readonly] | diff --git a/docs/ArrayTask.md b/docs/ArrayTask.md index 99b43c1..05700c4 100644 --- a/docs/ArrayTask.md +++ b/docs/ArrayTask.md @@ -10,6 +10,7 @@ Synchronous Task to Run |------------ | ------------- | ------------- | -------------| |**id** | **String** | task ID | [optional] | |**name** | **String** | Optional task name | [optional] | +|**username** | **String** | username that executed this task | [optional] | |**description** | **String** | Optional task description (Tasks purpose) | [optional] | |**arrayMetadata** | [**ArrayInfo**](ArrayInfo.md) | | [optional] | |**subarray** | [**DomainArray**](DomainArray.md) | | [optional] | @@ -17,6 +18,7 @@ Synchronous Task to Run |**cpu** | **Integer** | millicpu allocated to task | [optional] | |**namespace** | **String** | namespace task is tied to | [optional] | |**status** | **ArrayTaskStatus** | | [optional] | +|**statusMessage** | **String** | The reason the array task status is in the state | [optional] | |**startTime** | **OffsetDateTime** | Start time RFC3339 for job | [optional] | |**finishTime** | **OffsetDateTime** | Finish time RFC3339 for job | [optional] | |**cost** | **Double** | Total accumulated for task in USD, example is $0.12 | [optional] | diff --git a/docs/ArrayTaskType.md b/docs/ArrayTaskType.md index e69aaa6..b8314b6 100644 --- a/docs/ArrayTaskType.md +++ b/docs/ArrayTaskType.md @@ -13,6 +13,8 @@ * `GENERIC_UDF` (value: `"GENERIC_UDF"`) +* `BATCH_UDF` (value: `"BATCH_UDF"`) + * `CLIENT_COMPUTATION` (value: `"CLIENT_COMPUTATION"`) diff --git a/docs/ArrayTasksApi.md b/docs/ArrayTasksApi.md index 4c8b227..d9699f9 100644 --- a/docs/ArrayTasksApi.md +++ b/docs/ArrayTasksApi.md @@ -18,11 +18,11 @@ All URIs are relative to */v1* ```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.model.*; -import io.tiledb.cloud.rest_api.api.ArrayTasksApi; +import ApiClient; +import ApiException; +import Configuration; +import io.tiledb.cloud.rest_api.models.*; +import ArrayTasksApi; public class Example { public static void main(String[] args) { @@ -82,5 +82,6 @@ public class Example { |-------------|-------------|------------------| | **200** | sidebar metadata for task definitions for all arrays user has access to | - | | **404** | array tasks not found | - | +| **502** | Bad Gateway | - | | **0** | error response | - | diff --git a/docs/ArrayVacuumRequest.md b/docs/ArrayVacuumRequest.md new file mode 100644 index 0000000..d7401b0 --- /dev/null +++ b/docs/ArrayVacuumRequest.md @@ -0,0 +1,14 @@ + + +# ArrayVacuumRequest + +Request to consolidate an array + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**config** | [**TileDBConfig**](TileDBConfig.md) | | [optional] | + + + diff --git a/docs/AssetLocations.md b/docs/AssetLocations.md new file mode 100644 index 0000000..9bf8070 --- /dev/null +++ b/docs/AssetLocations.md @@ -0,0 +1,20 @@ + + +# AssetLocations + +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. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**arrays** | [**StorageLocation**](StorageLocation.md) | | [optional] | +|**files** | [**StorageLocation**](StorageLocation.md) | | [optional] | +|**groups** | [**StorageLocation**](StorageLocation.md) | | [optional] | +|**mlModels** | [**StorageLocation**](StorageLocation.md) | | [optional] | +|**notebooks** | [**StorageLocation**](StorageLocation.md) | | [optional] | +|**taskGraphs** | [**StorageLocation**](StorageLocation.md) | | [optional] | +|**udfs** | [**StorageLocation**](StorageLocation.md) | | [optional] | + + + diff --git a/docs/AssetType.md b/docs/AssetType.md new file mode 100644 index 0000000..dd482fb --- /dev/null +++ b/docs/AssetType.md @@ -0,0 +1,39 @@ + + +# AssetType + +## Enum + + +* `ARRAY` (value: `"array"`) + +* `NOTEBOOK` (value: `"notebook"`) + +* `DASHBOARD` (value: `"dashboard"`) + +* `USER_DEFINED_FUNCTION` (value: `"user_defined_function"`) + +* `ML_MODEL` (value: `"ml_model"`) + +* `FILE` (value: `"file"`) + +* `REGISTERED_TASK_GRAPH` (value: `"registered_task_graph"`) + +* `GROUP` (value: `"group"`) + +* `VCF` (value: `"vcf"`) + +* `SOMA` (value: `"soma"`) + +* `POINTCLOUD` (value: `"pointcloud"`) + +* `BIOIMG` (value: `"bioimg"`) + +* `GEOMETRY` (value: `"geometry"`) + +* `RASTER` (value: `"raster"`) + +* `VECTOR_SEARCH` (value: `"vector_search"`) + + + diff --git a/docs/Backoff.md b/docs/Backoff.md new file mode 100644 index 0000000..c2fb765 --- /dev/null +++ b/docs/Backoff.md @@ -0,0 +1,16 @@ + + +# Backoff + +Backoff is a backoff strategy to use within retryStrategy + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**duration** | **String** | Duration is the amount to back off. Default unit is seconds, but could also be a duration (e.g. \"2m\", \"1h\") | [optional] | +|**factor** | **Integer** | Factor is a factor to multiply the base duration after each failed retry | [optional] | +|**maxDuration** | **String** | MaxDuration is the maximum amount of time allowed for the backoff strategy | [optional] | + + + diff --git a/docs/DomainCheckResult.md b/docs/DomainCheckResult.md new file mode 100644 index 0000000..39187ab --- /dev/null +++ b/docs/DomainCheckResult.md @@ -0,0 +1,15 @@ + + +# DomainCheckResult + +The record of a check of a single domain's status. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**time** | **OffsetDateTime** | The timestamp when the check was performed. | [optional] | +|**status** | **DomainCheckStatus** | | [optional] | + + + diff --git a/docs/DomainCheckStatus.md b/docs/DomainCheckStatus.md new file mode 100644 index 0000000..7e1af0e --- /dev/null +++ b/docs/DomainCheckStatus.md @@ -0,0 +1,15 @@ + + +# DomainCheckStatus + +## Enum + + +* `VERIFIED` (value: `"verified"`) + +* `FAILED` (value: `"failed"`) + +* `ERROR` (value: `"error"`) + + + diff --git a/docs/DomainVerificationStatus.md b/docs/DomainVerificationStatus.md new file mode 100644 index 0000000..ec674de --- /dev/null +++ b/docs/DomainVerificationStatus.md @@ -0,0 +1,17 @@ + + +# DomainVerificationStatus + +## Enum + + +* `UNVERIFIED` (value: `"unverified"`) + +* `VERIFIED` (value: `"verified"`) + +* `GRACE_PERIOD` (value: `"grace_period"`) + +* `FAILED` (value: `"failed"`) + + + diff --git a/docs/FavoritesApi.md b/docs/FavoritesApi.md index 0eaef65..0bdad14 100644 --- a/docs/FavoritesApi.md +++ b/docs/FavoritesApi.md @@ -39,11 +39,11 @@ Add a new array favorite ```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.model.*; -import io.tiledb.cloud.rest_api.api.FavoritesApi; +import ApiClient; +import ApiException; +import Configuration; +import io.tiledb.cloud.rest_api.models.*; +import FavoritesApi; public class Example { public static void main(String[] args) { @@ -101,6 +101,7 @@ null (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **204** | Item added to favorites successfully | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -119,7 +120,7 @@ Add a new ML model favorite import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import FavoritesApi; public class Example { @@ -178,6 +179,7 @@ null (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **204** | Item added to favorites successfully | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -196,7 +198,7 @@ Add a new notebook favorite import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import FavoritesApi; public class Example { @@ -255,6 +257,7 @@ null (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **204** | Item added to favorites successfully | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -273,7 +276,7 @@ Add a new UDF favorite import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import FavoritesApi; public class Example { @@ -332,6 +335,7 @@ null (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **204** | Item added to favorites successfully | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -350,7 +354,7 @@ Delete specific array favorite import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import FavoritesApi; public class Example { @@ -409,6 +413,7 @@ null (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **204** | array favorite item deleted successfully | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -427,7 +432,7 @@ Delete specific ML model favorite import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import FavoritesApi; public class Example { @@ -486,6 +491,7 @@ null (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **204** | ML model favorite item deleted successfully | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -504,7 +510,7 @@ Delete specific notebook favorite import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import FavoritesApi; public class Example { @@ -563,6 +569,7 @@ null (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **204** | notebook favorite item deleted successfully | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -581,7 +588,7 @@ Delete specific UDF favorite import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import FavoritesApi; public class Example { @@ -640,6 +647,7 @@ null (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **204** | UDF favorite item deleted successfully | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -658,7 +666,7 @@ Fetch array favorite of a specific array import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import FavoritesApi; public class Example { @@ -718,6 +726,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | OK | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -736,7 +745,7 @@ Fetch ML model favorite of a specific ML model import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import FavoritesApi; public class Example { @@ -796,6 +805,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | OK | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -814,7 +824,7 @@ Fetch notebook favorite of a specific notebook import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import FavoritesApi; public class Example { @@ -874,6 +884,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | OK | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -892,7 +903,7 @@ Fetch UDF favorite of a specific UDF import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import FavoritesApi; public class Example { @@ -952,6 +963,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | OK | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -970,7 +982,7 @@ Fetch a page of array favorites of connected user import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import FavoritesApi; public class Example { @@ -1030,6 +1042,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Available array favorites are returned | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -1048,7 +1061,7 @@ Fetch all favorite array uuids of connected user import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import FavoritesApi; public class Example { @@ -1102,6 +1115,7 @@ This endpoint does not need any parameter. | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Available favorites array uuids are returned | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -1120,7 +1134,7 @@ Fetch a page of ML models favorites of connected user import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import FavoritesApi; public class Example { @@ -1180,6 +1194,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Available ML models favorites are returned | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -1198,7 +1213,7 @@ Fetch all favorite ML models uuids of connected user import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import FavoritesApi; public class Example { @@ -1252,6 +1267,7 @@ This endpoint does not need any parameter. | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Available favorites ML model uuids are returned | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -1270,7 +1286,7 @@ Fetch a page of notebook favorites of connected user import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import FavoritesApi; public class Example { @@ -1332,6 +1348,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Available notebook favorites are returned | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -1350,7 +1367,7 @@ Fetch all favorite notebook uuids of connected user import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import FavoritesApi; public class Example { @@ -1404,6 +1421,7 @@ This endpoint does not need any parameter. | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Available favorites notebook uuids are returned | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -1422,7 +1440,7 @@ Fetch a page of UDF favorites of connected user import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import FavoritesApi; public class Example { @@ -1482,6 +1500,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Available UDF favorites are returned | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -1500,7 +1519,7 @@ Fetch all favorite UDF uuids of connected user import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import FavoritesApi; public class Example { @@ -1554,5 +1573,6 @@ This endpoint does not need any parameter. | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Available favorites UDF uuids are returned | - | +| **502** | Bad Gateway | - | | **0** | error response | - | diff --git a/docs/FilePropertyName.md b/docs/FilePropertyName.md index 6a006a5..aac9326 100644 --- a/docs/FilePropertyName.md +++ b/docs/FilePropertyName.md @@ -15,5 +15,9 @@ * `IS_DASHBOARD` (value: `"is_dashboard"`) +* `VERSION_PRUNING_LIMIT` (value: `"version_pruning_limit"`) + +* `VERSION_PRUNING_ENABLED` (value: `"version_pruning_enabled"`) + diff --git a/docs/FilesApi.md b/docs/FilesApi.md index 5fcc29d..f81ee50 100644 --- a/docs/FilesApi.md +++ b/docs/FilesApi.md @@ -22,11 +22,11 @@ Create a tiledb file at the specified location ```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.model.*; -import io.tiledb.cloud.rest_api.api.FilesApi; +import ApiClient; +import ApiException; +import Configuration; +import io.tiledb.cloud.rest_api.models.*; +import FilesApi; public class Example { public static void main(String[] args) { @@ -87,6 +87,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **201** | File created | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -105,7 +106,7 @@ Export a TileDB File back to its original file format import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import FilesApi; public class Example { @@ -167,6 +168,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **201** | File exported | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -185,7 +187,7 @@ Upload a tiledb file at the specified location import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import FilesApi; public class Example { @@ -251,5 +253,6 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **201** | File uploaded | - | +| **502** | Bad Gateway | - | | **0** | error response | - | diff --git a/docs/FragmentInfo.md b/docs/FragmentInfo.md new file mode 100644 index 0000000..bb0b275 --- /dev/null +++ b/docs/FragmentInfo.md @@ -0,0 +1,16 @@ + + +# FragmentInfo + +Fragment info of an array + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**arraySchemaAll** | [**Map<String, ArraySchema>**](ArraySchema.md) | map of all array schemas | [optional] | +|**fragmentInfo** | [**List<SingleFragmentInfo>**](SingleFragmentInfo.md) | information about fragments in the array | [optional] | +|**toVacuum** | **List<String>** | the URIs of the fragments to vacuum | [optional] | + + + diff --git a/docs/FragmentInfoRequest.md b/docs/FragmentInfoRequest.md new file mode 100644 index 0000000..81e9da4 --- /dev/null +++ b/docs/FragmentInfoRequest.md @@ -0,0 +1,14 @@ + + +# FragmentInfoRequest + +Fragment info request + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**config** | [**TileDBConfig**](TileDBConfig.md) | | [optional] | + + + diff --git a/docs/FragmentMetadata.md b/docs/FragmentMetadata.md new file mode 100644 index 0000000..568acb8 --- /dev/null +++ b/docs/FragmentMetadata.md @@ -0,0 +1,38 @@ + + +# FragmentMetadata + +Fragment Metadata + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**fileSizes** | **List<Integer>** | fixed sizes | [optional] | +|**fileVarSizes** | **List<Integer>** | var length sizes | [optional] | +|**fileValiditySizes** | **List<Integer>** | validity sizes | [optional] | +|**fragmentUri** | **String** | | [optional] | +|**hasTimestamps** | **Boolean** | | [optional] | +|**hasDeleteMeta** | **Boolean** | | [optional] | +|**sparseTileNum** | **Integer** | | [optional] | +|**tileIndexBase** | **Integer** | | [optional] | +|**tileOffsets** | **List<List<Integer>>** | | [optional] | +|**tileVarOffsets** | **List<List<Integer>>** | | [optional] | +|**tileVarSizes** | **List<List<Integer>>** | | [optional] | +|**tileValidityOffsets** | **List<List<Integer>>** | | [optional] | +|**tileMinBuffer** | **List<List<Integer>>** | | [optional] | +|**tileMinVarBuffer** | **List<List<Integer>>** | | [optional] | +|**tileMaxBuffer** | **List<List<Integer>>** | | [optional] | +|**tileMaxVarBuffer** | **List<List<Integer>>** | | [optional] | +|**tileSums** | **List<List<Integer>>** | | [optional] | +|**tileNullCounts** | **List<List<Integer>>** | | [optional] | +|**fragmentMins** | **List<List<Integer>>** | | [optional] | +|**fragmentMaxs** | **List<List<Integer>>** | | [optional] | +|**fragmentSums** | **List<Integer>** | | [optional] | +|**fragmentNullCounts** | **List<Integer>** | | [optional] | +|**version** | **Integer** | | [optional] | +|**timestampRange** | **List<Integer>** | | [optional] | +|**lastTileCellNum** | **Integer** | | [optional] | + + + diff --git a/docs/GenericUDF.md b/docs/GenericUDF.md index 7682183..172974c 100644 --- a/docs/GenericUDF.md +++ b/docs/GenericUDF.md @@ -12,6 +12,7 @@ User-defined function |**language** | **UDFLanguage** | | [optional] | |**version** | **String** | Type-specific version | [optional] | |**imageName** | **String** | Docker image name to use for UDF | [optional] | +|**accessCredentialsName** | **String** | The name of the access credentials to use. if unset, no credentials will be configured in the environment. | [optional] | |**resourceClass** | **String** | 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. | [optional] | |**exec** | **String** | Type-specific executable text | [optional] | |**execRaw** | **String** | optional raw text to store of serialized function, used for showing in UI | [optional] | diff --git a/docs/GroupActivity.md b/docs/GroupActivity.md new file mode 100644 index 0000000..2c97898 --- /dev/null +++ b/docs/GroupActivity.md @@ -0,0 +1,15 @@ + + +# GroupActivity + +Object containing activity of an asset of a group + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**asset** | [**GroupActivityAsset**](GroupActivityAsset.md) | | [optional] | +|**activityLog** | [**ArrayActivityLog**](ArrayActivityLog.md) | | [optional] | + + + diff --git a/docs/GroupActivityAsset.md b/docs/GroupActivityAsset.md new file mode 100644 index 0000000..b324d84 --- /dev/null +++ b/docs/GroupActivityAsset.md @@ -0,0 +1,17 @@ + + +# GroupActivityAsset + +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/GroupActivityResponse.md b/docs/GroupActivityResponse.md new file mode 100644 index 0000000..b4fc32c --- /dev/null +++ b/docs/GroupActivityResponse.md @@ -0,0 +1,15 @@ + + +# GroupActivityResponse + +Object containing activity logs of group content along with the pagination metadata + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**activity** | [**List<GroupActivity>**](GroupActivity.md) | Activity of a group's content | [optional] | +|**paginationMetadata** | [**PaginationMetadata**](PaginationMetadata.md) | | [optional] | + + + diff --git a/docs/GroupBrowserFilterData.md b/docs/GroupBrowserFilterData.md index ad11ec9..4ac6be1 100644 --- a/docs/GroupBrowserFilterData.md +++ b/docs/GroupBrowserFilterData.md @@ -9,6 +9,7 @@ Object with data to fill browser filter | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**namespaces** | **List<String>** | list of all unique namespaces to display | [optional] | +|**groupTypes** | **List<GroupType>** | list of all available group types to display | [optional] | diff --git a/docs/GroupInfo.md b/docs/GroupInfo.md index ba9a33e..fb8203b 100644 --- a/docs/GroupInfo.md +++ b/docs/GroupInfo.md @@ -19,6 +19,7 @@ metadata of a group |**size** | **BigDecimal** | A count of direct members. This is the sum of asset_count and group_count | [optional] | |**lastAccessed** | **OffsetDateTime** | Datetime groups was last accessed in UTC | [optional] | |**allowedActions** | **List<GroupActions>** | list of actions user is allowed to do on this group | [optional] | +|**groupType** | **GroupType** | | [optional] | |**logo** | **String** | logo (base64 encoded) for the gruop. Optional | [optional] | |**accessCredentialsName** | **String** | the name of the access credentials to use. if unset, the default credentials will be used | [optional] | |**shareCount** | **BigDecimal** | number of unique namespaces this group is shared with | [optional] | diff --git a/docs/GroupMemberAssetType.md b/docs/GroupMemberAssetType.md index 652335a..2da27c5 100644 --- a/docs/GroupMemberAssetType.md +++ b/docs/GroupMemberAssetType.md @@ -19,5 +19,19 @@ * `FILE` (value: `"file"`) +* `BIOIMG` (value: `"bioimg"`) + +* `SOMA` (value: `"soma"`) + +* `VCF` (value: `"vcf"`) + +* `POINTCLOUD` (value: `"pointcloud"`) + +* `RASTER` (value: `"raster"`) + +* `GEOMETRY` (value: `"geometry"`) + +* `VECTOR_SEARCH` (value: `"vector_search"`) + diff --git a/docs/GroupType.md b/docs/GroupType.md new file mode 100644 index 0000000..842e1c7 --- /dev/null +++ b/docs/GroupType.md @@ -0,0 +1,25 @@ + + +# GroupType + +## Enum + + +* `GENERIC` (value: `"generic"`) + +* `VCF` (value: `"vcf"`) + +* `SOMA` (value: `"soma"`) + +* `BIOIMG` (value: `"bioimg"`) + +* `POINTCLOUD` (value: `"pointcloud"`) + +* `RASTER` (value: `"raster"`) + +* `GEOMETRY` (value: `"geometry"`) + +* `VECTOR_SEARCH` (value: `"vector_search"`) + + + diff --git a/docs/GroupTypeMetadataKey.md b/docs/GroupTypeMetadataKey.md new file mode 100644 index 0000000..02d6b94 --- /dev/null +++ b/docs/GroupTypeMetadataKey.md @@ -0,0 +1,11 @@ + + +# GroupTypeMetadataKey + +## Enum + + +* `DATASET_TYPE` (value: `"dataset_type"`) + + + diff --git a/docs/GroupsApi.md b/docs/GroupsApi.md index 1c0e281..a69f363 100644 --- a/docs/GroupsApi.md +++ b/docs/GroupsApi.md @@ -8,6 +8,7 @@ All URIs are relative to */v1* | [**createGroup**](GroupsApi.md#createGroup) | **POST** /groups/{namespace}/create | | | [**deleteGroup**](GroupsApi.md#deleteGroup) | **DELETE** /groups/{group_namespace}/{group_name} | | | [**getGroup**](GroupsApi.md#getGroup) | **GET** /groups/{group_namespace}/{group_name} | | +| [**getGroupActivity**](GroupsApi.md#getGroupActivity) | **GET** /groups/{group_namespace}/{group_name}/content_activity | | | [**getGroupContents**](GroupsApi.md#getGroupContents) | **GET** /groups/{group_namespace}/{group_name}/contents | | | [**getGroupSharingPolicies**](GroupsApi.md#getGroupSharingPolicies) | **GET** /groups/{group_namespace}/{group_name}/share | | | [**groupsBrowserOwnedFiltersGet**](GroupsApi.md#groupsBrowserOwnedFiltersGet) | **GET** /groups/browser/owned/filters | | @@ -35,11 +36,11 @@ Changes the contents of the group by adding/removing members. ```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.model.*; -import io.tiledb.cloud.rest_api.api.GroupsApi; +import ApiClient; +import ApiException; +import Configuration; +import io.tiledb.cloud.rest_api.models.*; +import GroupsApi; public class Example { public static void main(String[] args) { @@ -99,6 +100,7 @@ null (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **204** | all changes applied successfully | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -117,7 +119,7 @@ Creates a new group in the namespace. import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import GroupsApi; public class Example { @@ -176,6 +178,7 @@ null (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **204** | group created successfully | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -194,7 +197,7 @@ Deletes the group. The assets are not deleted nor are not relocated to any other import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import GroupsApi; public class Example { @@ -253,6 +256,7 @@ null (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **204** | group deleted successfully | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -271,7 +275,7 @@ Returns the the group import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import GroupsApi; public class Example { @@ -331,6 +335,90 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | the group metadata | - | +| **502** | Bad Gateway | - | +| **0** | error response | - | + + +# **getGroupActivity** +> GroupActivityResponse 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.models.*; +import 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(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **groupNamespace** | **String**| The namespace of the group | | +| **groupName** | **String**| The unique name or id of the group | | +| **page** | **Integer**| pagination offset | [optional] | +| **perPage** | **Integer**| pagination limit | [optional] | + +### Return type + +[**GroupActivityResponse**](GroupActivityResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Activity logs of group contents along with the pagination metadata | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -349,7 +437,7 @@ Returns the contents of the group import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import GroupsApi; public class Example { @@ -427,6 +515,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | the group contents | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -445,7 +534,7 @@ Get all sharing details of the group import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import GroupsApi; public class Example { @@ -506,11 +595,12 @@ public class Example { |-------------|-------------|------------------| | **200** | List of all specific sharing policies | - | | **404** | Group does not exist or user does not have permissions to view group-sharing policies | - | +| **502** | Bad Gateway | - | | **0** | error response | - | # **groupsBrowserOwnedFiltersGet** -> GroupBrowserFilterData groupsBrowserOwnedFiltersGet() +> GroupBrowserFilterData groupsBrowserOwnedFiltersGet(namespace) @@ -524,7 +614,7 @@ Fetch data to initialize filters for the groups browser import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import GroupsApi; public class Example { @@ -544,8 +634,9 @@ public class Example { BasicAuth.setPassword("YOUR PASSWORD"); GroupsApi apiInstance = new GroupsApi(defaultClient); + String namespace = "namespace_example"; // String | namespace try { - GroupBrowserFilterData result = apiInstance.groupsBrowserOwnedFiltersGet(); + GroupBrowserFilterData result = apiInstance.groupsBrowserOwnedFiltersGet(namespace); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling GroupsApi#groupsBrowserOwnedFiltersGet"); @@ -559,7 +650,10 @@ public class Example { ``` ### Parameters -This endpoint does not need any parameter. + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| namespace | [optional] | ### Return type @@ -578,6 +672,7 @@ This endpoint does not need any parameter. | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Filter data | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -596,7 +691,7 @@ Fetch data to initialize filters for the groups browser import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import GroupsApi; public class Example { @@ -650,11 +745,12 @@ This endpoint does not need any parameter. | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Filter data | - | +| **502** | Bad Gateway | - | | **0** | error response | - | # **groupsBrowserSharedFiltersGet** -> GroupBrowserFilterData groupsBrowserSharedFiltersGet() +> GroupBrowserFilterData groupsBrowserSharedFiltersGet(namespace) @@ -668,7 +764,7 @@ Fetch data to initialize filters for the groups browser import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import GroupsApi; public class Example { @@ -688,8 +784,9 @@ public class Example { BasicAuth.setPassword("YOUR PASSWORD"); GroupsApi apiInstance = new GroupsApi(defaultClient); + String namespace = "namespace_example"; // String | namespace try { - GroupBrowserFilterData result = apiInstance.groupsBrowserSharedFiltersGet(); + GroupBrowserFilterData result = apiInstance.groupsBrowserSharedFiltersGet(namespace); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling GroupsApi#groupsBrowserSharedFiltersGet"); @@ -703,7 +800,10 @@ public class Example { ``` ### Parameters -This endpoint does not need any parameter. + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| namespace | [optional] | ### Return type @@ -722,6 +822,7 @@ This endpoint does not need any parameter. | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Filter data | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -740,7 +841,7 @@ Fetch data to initialize filters for the group contents import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import GroupsApi; public class Example { @@ -800,11 +901,12 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Filter data | - | +| **502** | Bad Gateway | - | | **0** | error response | - | # **listOwnedGroups** -> GroupBrowserData listOwnedGroups(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, flat, parent) +> GroupBrowserData listOwnedGroups(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent) @@ -818,7 +920,7 @@ Returns one page of owned groups. import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import GroupsApi; public class Example { @@ -840,6 +942,7 @@ public class Example { 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 @@ -849,7 +952,7 @@ public class Example { 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, search, namespace, orderby, permissions, tag, excludeTag, flat, parent); + 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"); @@ -868,6 +971,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **page** | **Integer**| pagination offset | [optional] | | **perPage** | **Integer**| pagination limit | [optional] | +| **groupType** | **String**| filter by a specific group type | [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] | @@ -894,11 +998,12 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | the group contents | - | +| **502** | Bad Gateway | - | | **0** | error response | - | # **listPublicGroups** -> GroupBrowserData listPublicGroups(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, flat, parent) +> GroupBrowserData listPublicGroups(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent) @@ -912,7 +1017,7 @@ Returns one page of public groups. import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import GroupsApi; public class Example { @@ -934,6 +1039,7 @@ public class Example { 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 @@ -943,7 +1049,7 @@ public class Example { 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, search, namespace, orderby, permissions, tag, excludeTag, flat, parent); + 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"); @@ -962,6 +1068,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **page** | **Integer**| pagination offset | [optional] | | **perPage** | **Integer**| pagination limit | [optional] | +| **groupType** | **String**| filter by a specific group type | [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] | @@ -988,11 +1095,12 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | the group contents | - | +| **502** | Bad Gateway | - | | **0** | error response | - | # **listSharedGroups** -> GroupBrowserData listSharedGroups(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, sharedTo) +> GroupBrowserData listSharedGroups(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, sharedTo) @@ -1006,7 +1114,7 @@ Returns one page of shared groups. import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import GroupsApi; public class Example { @@ -1028,6 +1136,7 @@ public class Example { 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 @@ -1038,7 +1147,7 @@ public class Example { 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, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, sharedTo); + 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"); @@ -1057,6 +1166,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **page** | **Integer**| pagination offset | [optional] | | **perPage** | **Integer**| pagination limit | [optional] | +| **groupType** | **String**| filter by a specific group type | [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] | @@ -1084,6 +1194,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | the group contents | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -1102,7 +1213,7 @@ Registers an existing group in the namespace. import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import GroupsApi; public class Example { @@ -1163,6 +1274,7 @@ null (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **204** | group created successfully | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -1181,7 +1293,7 @@ Share a group with a namespace import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import GroupsApi; public class Example { @@ -1243,6 +1355,7 @@ null (empty response body) |-------------|-------------|------------------| | **204** | Group shared successfully | - | | **404** | Group does not exist or user does not have permissions to share group | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -1261,7 +1374,7 @@ Changes attributes of the group import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import GroupsApi; public class Example { @@ -1322,5 +1435,6 @@ null (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **204** | attributes changed successfully | - | +| **502** | Bad Gateway | - | | **0** | error response | - | diff --git a/docs/Invitation.md b/docs/Invitation.md index 3abce27..360a19c 100644 --- a/docs/Invitation.md +++ b/docs/Invitation.md @@ -11,18 +11,23 @@ Invitations to share or collaborate |**id** | **String** | Unique ID of invitation added to magic link | [optional] | |**invitationType** | **InvitationType** | | [optional] | |**ownerNamespaceUuid** | **String** | Namespace of the owner of the invitation (user or organization) | [optional] | +|**inviterUuid** | **String** | Unique ID of the user that sent the invitation | [optional] | |**userNamespaceUuid** | **String** | Unique ID of the user accepted the invitation | [optional] | |**organizationUserUuid** | **String** | Unique ID of the organization user accepted the invitation | [optional] | |**organizationName** | **String** | Name of the organization, does not persist in database | [optional] | |**organizationRole** | **OrganizationRoles** | | [optional] | +|**organizationUuid** | **String** | Unique ID of the organization whose user(s) accepted the invitation | [optional] | |**arrayUuid** | **String** | Unique ID of the array | [optional] | +|**groupUuid** | **String** | Unique ID of the group | [optional] | |**arrayName** | **String** | Name of the array, does not persist in database | [optional] | |**email** | **String** | Email of the individual we send the invitation to | [optional] | |**actions** | **String** | A comma separated list of ArrayActions or NamespaceActions | [optional] | +|**groupActions** | **String** | A comma separated list of GroupActions | [optional] | |**status** | **InvitationStatus** | | [optional] | |**createdAt** | **OffsetDateTime** | Datetime the invitation was created in UTC | [optional] | |**expiresAt** | **OffsetDateTime** | Datetime the invitation is expected to expire in UTC | [optional] | |**acceptedAt** | **OffsetDateTime** | Datetime the invitation was accepted in UTC | [optional] | +|**namespaceInvited** | **String** | The namespace invited (user or organization, if it exists in the DB) | [optional] | diff --git a/docs/InvitationApi.md b/docs/InvitationApi.md index f328707..d575b9a 100644 --- a/docs/InvitationApi.md +++ b/docs/InvitationApi.md @@ -7,9 +7,11 @@ All URIs are relative to */v1* | [**acceptInvitation**](InvitationApi.md#acceptInvitation) | **POST** /invitations/{invitation} | | | [**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 | | | [**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 | | @@ -25,11 +27,11 @@ Accepts invitation ```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.model.*; -import io.tiledb.cloud.rest_api.api.InvitationApi; +import ApiClient; +import ApiException; +import Configuration; +import io.tiledb.cloud.rest_api.models.*; +import InvitationApi; public class Example { public static void main(String[] args) { @@ -86,6 +88,7 @@ null (empty response body) |-------------|-------------|------------------| | **204** | Invitation was accepted successfully | - | | **404** | Could not find invitation identifier | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -104,7 +107,7 @@ Cancels join organization invitation import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import InvitationApi; public class Example { @@ -164,6 +167,7 @@ null (empty response body) |-------------|-------------|------------------| | **204** | Invitation cancelled successfully | - | | **404** | No invitation was found to cancel | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -182,7 +186,7 @@ Cancels array sharing invitation import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import InvitationApi; public class Example { @@ -244,11 +248,93 @@ null (empty response body) |-------------|-------------|------------------| | **204** | Invitation cancelled successfully | - | | **404** | No invitation was found to cancel | - | +| **502** | Bad Gateway | - | +| **0** | error response | - | + + +# **cancelShareGroupByInvite** +> cancelShareGroupByInvite(namespace, invitation, groupName) + + + +Cancels group sharing invitation + +### Example + +```java +// Import classes: + +import ApiClient; +import ApiException; +import Configuration; +import io.tiledb.cloud.rest_api.models.*; +import 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(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| namespace group is in (an organization name or user's username) | | +| **invitation** | **String**| the ID of invitation about to be cancelled | | +| **groupName** | **String**| name/uuid of group that is url-encoded | | + +### Return type + +null (empty response body) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | Invitation cancelled successfully | - | +| **404** | No invitation was found to cancel | - | +| **502** | Bad Gateway | - | | **0** | error response | - | # **fetchInvitations** -> InvitationData fetchInvitations(organization, array, start, end, page, perPage, type, status, orderby) +> InvitationData fetchInvitations(organization, array, group, start, end, page, perPage, type, status, orderby) @@ -262,7 +348,7 @@ Fetch a list of invitations import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import InvitationApi; public class Example { @@ -284,6 +370,7 @@ public class Example { 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 @@ -292,7 +379,7 @@ public class Example { 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, start, end, page, perPage, type, status, orderby); + 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"); @@ -311,6 +398,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **organization** | **String**| name or ID of organization to filter | [optional] | | **array** | **String**| name/uri of array that is url-encoded to filter | [optional] | +| **group** | **String**| name or ID of group to filter | [optional] | | **start** | **Integer**| start time for tasks to filter by | [optional] | | **end** | **Integer**| end time for tasks to filter by | [optional] | | **page** | **Integer**| pagination offset | [optional] | @@ -336,6 +424,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | List of invitations and pagination metadata | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -354,7 +443,7 @@ Sends email to multiple recipients with joining information regarding an organiz import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import InvitationApi; public class Example { @@ -413,7 +502,9 @@ null (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **204** | Email sent successfully to user for email confirmation link | - | -| **404** | Could not reach one or more recipients | - | +| **207** | Only a portion of the invitations succeeded, some failed | - | +| **500** | Could not reach any recipients | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -432,7 +523,7 @@ Sends email to multiple recipients with sharing information regarding an array import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import InvitationApi; public class Example { @@ -493,6 +584,90 @@ null (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **204** | Email sent successfully to user for email confirmation link | - | -| **404** | Could not reach one or more recipients | - | +| **207** | Only a portion of the invitations succeeded, some failed | - | +| **500** | Could not reach any recipients | - | +| **502** | Bad Gateway | - | +| **0** | error response | - | + + +# **shareGroupByInvite** +> shareGroupByInvite(namespace, group, emailInvite) + + + +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.models.*; +import 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(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| namespace group is in (an organization name or user's username) | | +| **group** | **String**| name/uri of group that is url-encoded | | +| **emailInvite** | [**InvitationGroupShareEmail**](InvitationGroupShareEmail.md)| list of email/namespace recipients | | + +### Return type + +null (empty response body) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | Email sent successfully to user with an email confirmation link | - | +| **207** | Only a portion of the invitations succeeded, some failed | - | +| **500** | Could not reach any recipients | - | +| **502** | Bad Gateway | - | | **0** | error response | - | diff --git a/docs/InvitationFailedRecipients.md b/docs/InvitationFailedRecipients.md new file mode 100644 index 0000000..972cc2a --- /dev/null +++ b/docs/InvitationFailedRecipients.md @@ -0,0 +1,14 @@ + + +# InvitationFailedRecipients + +Encapsulates information regarding the failed invitation recipients + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**failedRecipients** | **List<String>** | | | + + + diff --git a/docs/InvitationGroupShareEmail.md b/docs/InvitationGroupShareEmail.md new file mode 100644 index 0000000..2736db2 --- /dev/null +++ b/docs/InvitationGroupShareEmail.md @@ -0,0 +1,16 @@ + + +# InvitationGroupShareEmail + +Encapsulates information regarding inviting people using email to share group, same permissions for all invitees + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**arrayActions** | **List<ArrayActions>** | List of permitted array actions | | +|**groupActions** | **List<GroupActions>** | List of permitted group actions | | +|**inviteeEmailOrName** | **List<String>** | | | + + + diff --git a/docs/InvitationType.md b/docs/InvitationType.md index fe376d8..e3f3dc5 100644 --- a/docs/InvitationType.md +++ b/docs/InvitationType.md @@ -7,6 +7,8 @@ * `ARRAY_SHARE` (value: `"ARRAY_SHARE"`) +* `GROUP_SHARE` (value: `"GROUP_SHARE"`) + * `JOIN_ORGANIZATION` (value: `"JOIN_ORGANIZATION"`) diff --git a/docs/MultiArrayUDF.md b/docs/MultiArrayUDF.md index 93b5157..4feb4d5 100644 --- a/docs/MultiArrayUDF.md +++ b/docs/MultiArrayUDF.md @@ -12,6 +12,7 @@ User-defined function |**language** | **UDFLanguage** | | [optional] | |**version** | **String** | Type-specific version | [optional] | |**imageName** | **String** | Docker image name to use for UDF | [optional] | +|**accessCredentialsName** | **String** | The name of the access credentials to use. if unset, no credentials will be configured in the environment. | [optional] | |**resourceClass** | **String** | 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. | [optional] | |**exec** | **String** | Type-specific executable text | [optional] | |**execRaw** | **String** | optional raw text to store of serialized function, used for showing in UI | [optional] | diff --git a/docs/NotebookApi.md b/docs/NotebookApi.md index 67233fa..8bbf419 100644 --- a/docs/NotebookApi.md +++ b/docs/NotebookApi.md @@ -24,11 +24,11 @@ Get status of the notebook server ```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.model.*; -import io.tiledb.cloud.rest_api.api.NotebookApi; +import ApiClient; +import ApiException; +import Configuration; +import io.tiledb.cloud.rest_api.models.*; +import NotebookApi; public class Example { public static void main(String[] args) { @@ -88,6 +88,7 @@ public class Example { | **202** | Notebook server is pending | - | | **402** | Payment required | - | | **404** | Notebook is not running | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -106,7 +107,7 @@ Copy a tiledb notebook at the specified location import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import NotebookApi; public class Example { @@ -172,6 +173,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **201** | Notebook copied | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -190,7 +192,7 @@ Upload a notebook at the specified location import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import NotebookApi; public class Example { @@ -256,6 +258,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **201** | File uploaded | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -274,7 +277,7 @@ Shutdown a notebook server import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import NotebookApi; public class Example { @@ -332,6 +335,7 @@ null (empty response body) |-------------|-------------|------------------| | **204** | Notebook shutdown successfully | - | | **404** | Notebook is not running | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -350,7 +354,7 @@ update name on a notebok, moving related S3 object to new location import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import NotebookApi; public class Example { @@ -411,5 +415,6 @@ null (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **204** | notebook name updated successfully | - | +| **502** | Bad Gateway | - | | **0** | error response | - | diff --git a/docs/NotebookStatus.md b/docs/NotebookStatus.md index cff8f30..f3cb5c6 100644 --- a/docs/NotebookStatus.md +++ b/docs/NotebookStatus.md @@ -11,11 +11,14 @@ Status details of a notebook server |**namespace** | **String** | namespace of notebook | [optional] | |**uptime** | **Integer** | duration notebook has been running in seconds | [optional] | |**cpuUsage** | **Integer** | current cpu usage in millicpu | [optional] | +|**gpuUsage** | **Integer** | gpu usage in milligpu | [optional] | |**memoryUsage** | **Integer** | memory usage in bytes | [optional] | +|**gpuLimit** | **Integer** | gpu limit in milligpu | [optional] | |**memoryLimit** | **Integer** | memory allocated to notebook server in bytes | [optional] | |**storageUsage** | **Integer** | storage usage in bytes | [optional] | |**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] | diff --git a/docs/NotebooksApi.md b/docs/NotebooksApi.md index 8f36203..6f95800 100644 --- a/docs/NotebooksApi.md +++ b/docs/NotebooksApi.md @@ -5,6 +5,7 @@ All URIs are relative to */v1* | Method | HTTP request | Description | |------------- | ------------- | -------------| | [**notebooksNamespaceArrayEndTimestampsGet**](NotebooksApi.md#notebooksNamespaceArrayEndTimestampsGet) | **GET** /notebooks/{namespace}/{array}/end_timestamps | | +| [**notebooksNamespaceArrayPrunePost**](NotebooksApi.md#notebooksNamespaceArrayPrunePost) | **POST** /notebooks/{namespace}/{array}/prune | | @@ -20,11 +21,11 @@ retrieve a list of timestamps from the array fragment info listing in millisecon ```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.model.*; -import io.tiledb.cloud.rest_api.api.NotebooksApi; +import ApiClient; +import ApiException; +import Configuration; +import io.tiledb.cloud.rest_api.models.*; +import NotebooksApi; public class Example { public static void main(String[] args) { @@ -87,5 +88,86 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | list of timestamps in milliseconds, paginated | - | +| **502** | Bad Gateway | - | +| **0** | error response | - | + + +# **notebooksNamespaceArrayPrunePost** +> notebooksNamespaceArrayPrunePost(namespace, array, keepVersions) + + + +prune fragments of the notebook + +### Example + +```java +// Import classes: + +import ApiClient; +import ApiException; +import Configuration; +import io.tiledb.cloud.rest_api.models.*; +import 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(); + } + } +} +``` + +### 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 | | +| **keepVersions** | **Integer**| The number of most recents fragment to preserve | [optional] | + +### Return type + +null (empty response body) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | notebook pruned | - | +| **502** | Bad Gateway | - | | **0** | error response | - | diff --git a/docs/Organization.md b/docs/Organization.md index 32b1515..901c033 100644 --- a/docs/Organization.md +++ b/docs/Organization.md @@ -20,8 +20,9 @@ Organization |**numOfArrays** | **BigDecimal** | number of registered arrays for this organization | [optional] | |**enabledFeatures** | **List<String>** | List of extra/optional/beta features to enable for namespace | [optional] [readonly] | |**unpaidSubscription** | **Boolean** | A notice that the user has an unpaid subscription | [optional] [readonly] | -|**defaultS3Path** | **String** | default S3 path to store newly created notebooks | [optional] | -|**defaultS3PathCredentialsName** | **String** | Default S3 path credentials name is the credentials name to use along with default_s3_path | [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] | |**stripeConnect** | **Boolean** | Denotes that the organization is able to apply pricing to arrays by means of Stripe Connect | [optional] [readonly] | diff --git a/docs/OrganizationApi.md b/docs/OrganizationApi.md index ab69a2e..f5ac53b 100644 --- a/docs/OrganizationApi.md +++ b/docs/OrganizationApi.md @@ -8,15 +8,21 @@ All URIs are relative to */v1* | [**addUserToOrganization**](OrganizationApi.md#addUserToOrganization) | **POST** /organizations/{organization}/user | | | [**checkAWSAccessCredentials**](OrganizationApi.md#checkAWSAccessCredentials) | **GET** /credentials/{namespace}/aws | | | [**checkAWSAccessCredentialsByName**](OrganizationApi.md#checkAWSAccessCredentialsByName) | **GET** /credentials/{namespace}/aws/{name} | | +| [**checkSSODomain**](OrganizationApi.md#checkSSODomain) | **POST** /organizations/{organization}/sso_domains/{uuid}/run_check | | | [**createOrganization**](OrganizationApi.md#createOrganization) | **POST** /organization | | +| [**createSSODomain**](OrganizationApi.md#createSSODomain) | **POST** /organizations/{organization}/sso_domain | | | [**deleteAWSAccessCredentials**](OrganizationApi.md#deleteAWSAccessCredentials) | **DELETE** /credentials/{namespace}/aws/{name} | | | [**deleteOrganization**](OrganizationApi.md#deleteOrganization) | **DELETE** /organizations/{organization} | | +| [**deleteSSODomain**](OrganizationApi.md#deleteSSODomain) | **DELETE** /organizations/{organization}/sso_domains/{uuid} | | | [**deleteUserFromOrganization**](OrganizationApi.md#deleteUserFromOrganization) | **DELETE** /organizations/{organization}/{username} | | | [**getAllOrganizations**](OrganizationApi.md#getAllOrganizations) | **GET** /organizations | | | [**getOrganization**](OrganizationApi.md#getOrganization) | **GET** /organizations/{organization} | | | [**getOrganizationUser**](OrganizationApi.md#getOrganizationUser) | **GET** /organizations/{organization}/{username} | | +| [**getSSODomain**](OrganizationApi.md#getSSODomain) | **GET** /organizations/{organization}/sso_domains/{uuid} | | +| [**getSSODomains**](OrganizationApi.md#getSSODomains) | **GET** /organizations/{organization}/sso_domains | | | [**updateAWSAccessCredentials**](OrganizationApi.md#updateAWSAccessCredentials) | **PATCH** /credentials/{namespace}/aws/{name} | | | [**updateOrganization**](OrganizationApi.md#updateOrganization) | **PATCH** /organizations/{organization} | | +| [**updateSSODomain**](OrganizationApi.md#updateSSODomain) | **PATCH** /organizations/{organization}/sso_domains/{uuid} | | | [**updateUserInOrganization**](OrganizationApi.md#updateUserInOrganization) | **PATCH** /organizations/{organization}/{username} | | @@ -33,11 +39,11 @@ Add aws keys ```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.model.*; -import io.tiledb.cloud.rest_api.api.OrganizationApi; +import ApiClient; +import ApiException; +import Configuration; +import io.tiledb.cloud.rest_api.models.*; +import OrganizationApi; public class Example { public static void main(String[] args) { @@ -95,6 +101,7 @@ null (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **204** | AWS keys added successfully | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -113,7 +120,7 @@ add a user to an organization import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import OrganizationApi; public class Example { @@ -172,6 +179,7 @@ null (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **204** | user added to organization successfully | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -190,7 +198,7 @@ Check if aws keys are set import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import OrganizationApi; public class Example { @@ -248,6 +256,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | AWS keys are set | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -266,7 +275,7 @@ Check if aws keys are set by name import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import OrganizationApi; public class Example { @@ -326,6 +335,85 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | AWS keys are set | - | +| **502** | Bad Gateway | - | +| **0** | error response | - | + + +# **checkSSODomain** +> DomainCheckResult checkSSODomain(organization, uuid) + + + +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.models.*; +import 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(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **organization** | **String**| organization name | | +| **uuid** | **String**| configuration ID | | + +### Return type + +[**DomainCheckResult**](DomainCheckResult.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | The check executed. Detailed results are available in the response. | - | | **0** | error response | - | @@ -344,7 +432,7 @@ create a organization, the user creating will be listed as owner import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import OrganizationApi; public class Example { @@ -401,6 +489,85 @@ null (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **204** | organization created successfully | - | +| **502** | Bad Gateway | - | +| **0** | error response | - | + + +# **createSSODomain** +> SSODomainConfig createSSODomain(organization, config) + + + +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.models.*; +import 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(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **organization** | **String**| organization name | | +| **config** | [**SSODomainConfig**](SSODomainConfig.md)| The SSO connection to create. | | + +### Return type + +[**SSODomainConfig**](SSODomainConfig.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Claim created successfully. | - | | **0** | error response | - | @@ -419,7 +586,7 @@ delete a AWS Access credentials in a namespace. This will likely cause arrays to import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import OrganizationApi; public class Example { @@ -478,6 +645,7 @@ null (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **204** | AWS credentials deleted | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -496,7 +664,7 @@ delete a organization import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import OrganizationApi; public class Example { @@ -553,6 +721,84 @@ null (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **204** | organization deleted | - | +| **502** | Bad Gateway | - | +| **0** | error response | - | + + +# **deleteSSODomain** +> deleteSSODomain(organization, uuid) + + + +Deletes the configuration for the given SSO connection. + +### Example + +```java +// Import classes: + +import ApiClient; +import ApiException; +import Configuration; +import io.tiledb.cloud.rest_api.models.*; +import 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(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **organization** | **String**| organization name | | +| **uuid** | **String**| configuration ID | | + +### Return type + +null (empty response body) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | Deletion successful. | - | | **0** | error response | - | @@ -571,7 +817,7 @@ delete a user from an organization import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import OrganizationApi; public class Example { @@ -630,6 +876,7 @@ null (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **204** | user delete from organization successfully | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -648,7 +895,7 @@ get all organizations that the user is member of import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import OrganizationApi; public class Example { @@ -704,6 +951,7 @@ This endpoint does not need any parameter. | **200** | array of organizations the user is member of | - | | **400** | Error finding organizations | - | | **500** | Request user not found, or has empty context | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -722,7 +970,7 @@ get a organization import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import OrganizationApi; public class Example { @@ -781,6 +1029,7 @@ public class Example { |-------------|-------------|------------------| | **200** | organization details | - | | **404** | Organization does not exist | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -799,7 +1048,7 @@ get a user from an organization import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import OrganizationApi; public class Example { @@ -860,6 +1109,161 @@ public class Example { |-------------|-------------|------------------| | **200** | user from organization | - | | **404** | User is not in organization | - | +| **502** | Bad Gateway | - | +| **0** | error response | - | + + +# **getSSODomain** +> SSODomainConfig getSSODomain(organization, uuid) + + + +Gets details about the given SSO domain connection. + +### Example + +```java +// Import classes: + +import ApiClient; +import ApiException; +import Configuration; +import io.tiledb.cloud.rest_api.models.*; +import 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(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **organization** | **String**| organization name | | +| **uuid** | **String**| configuration ID | | + +### Return type + +[**SSODomainConfig**](SSODomainConfig.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | The details about this domain connection. | - | +| **0** | error response | - | + + +# **getSSODomains** +> SSODomainConfigResponse getSSODomains(organization) + + + +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.models.*; +import 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(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **organization** | **String**| organization name | | + +### Return type + +[**SSODomainConfigResponse**](SSODomainConfigResponse.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | The SSO domains associated with the org. | - | | **0** | error response | - | @@ -878,7 +1282,7 @@ Update aws keys or associated buckets. This will update the key associations for import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import OrganizationApi; public class Example { @@ -939,6 +1343,7 @@ null (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **204** | AWS keys updated successfully | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -957,7 +1362,7 @@ update a organization import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import OrganizationApi; public class Example { @@ -1016,6 +1421,87 @@ null (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **204** | organization updated successfully | - | +| **502** | Bad Gateway | - | +| **0** | error response | - | + + +# **updateSSODomain** +> SSODomainConfig updateSSODomain(organization, uuid, config) + + + +Updates the configuration for the given SSO connection. + +### Example + +```java +// Import classes: + +import ApiClient; +import ApiException; +import Configuration; +import io.tiledb.cloud.rest_api.models.*; +import 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(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **organization** | **String**| organization name | | +| **uuid** | **String**| configuration ID | | +| **config** | [**SSODomainConfig**](SSODomainConfig.md)| The changes to make to the configuration. | | + +### Return type + +[**SSODomainConfig**](SSODomainConfig.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | The updated details about the SSO connection. | - | | **0** | error response | - | @@ -1034,7 +1520,7 @@ update a user in an organization import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import OrganizationApi; public class Example { @@ -1095,5 +1581,6 @@ null (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **204** | user update in organization successfully | - | +| **502** | Bad Gateway | - | | **0** | error response | - | diff --git a/docs/QueryApi.md b/docs/QueryApi.md index ecfa6fe..eeee7c0 100644 --- a/docs/QueryApi.md +++ b/docs/QueryApi.md @@ -24,11 +24,11 @@ send a query to run against a specified array/URI registered to a group/project ```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.model.*; -import io.tiledb.cloud.rest_api.api.QueryApi; +import ApiClient; +import ApiException; +import Configuration; +import io.tiledb.cloud.rest_api.models.*; +import QueryApi; public class Example { public static void main(String[] args) { @@ -98,6 +98,7 @@ public class Example { |-------------|-------------|------------------| | **200** | query completed and results are returned in query object | * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
| | **204** | query completed successfully with no return | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -116,7 +117,7 @@ send a query to run against a specified array/URI registered to a group/project import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import QueryApi; public class Example { @@ -187,6 +188,7 @@ public class Example { |-------------|-------------|------------------| | **200** | query est result size computed and results are returned in query object | * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
| | **204** | query completed successfully with no return | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -205,7 +207,7 @@ send a query to run against a specified array/URI registered to a group/project, import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import QueryApi; public class Example { @@ -269,6 +271,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | query completed and result bytes are returned | * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
| +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -287,7 +290,7 @@ send a query to run against a specified array/URI registered to a group/project import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import QueryApi; public class Example { @@ -358,6 +361,7 @@ public class Example { |-------------|-------------|------------------| | **200** | query completed and results are returned in query object | * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
| | **204** | query completed successfully with no return | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -376,7 +380,7 @@ send a query to run against a specified array/URI registered to a group/project, import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import QueryApi; public class Example { @@ -442,5 +446,6 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | query completed and results are returned in JSON format | * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
| +| **502** | Bad Gateway | - | | **0** | error response | - | diff --git a/docs/Querytype.md b/docs/Querytype.md index d450be1..1c5a290 100644 --- a/docs/Querytype.md +++ b/docs/Querytype.md @@ -9,5 +9,7 @@ * `WRITE` (value: `"WRITE"`) +* `DELETE` (value: `"DELETE"`) + diff --git a/docs/RegisteredTaskGraph.md b/docs/RegisteredTaskGraph.md index 1a7b21f..4f901f3 100644 --- a/docs/RegisteredTaskGraph.md +++ b/docs/RegisteredTaskGraph.md @@ -15,7 +15,7 @@ The structure and metadata of a task graph that can be stored on TileDB Cloud an |**licenseId** | **String** | SPDX license identifier. | [optional] | |**licenseText** | **String** | Full text of the license. | [optional] | |**tags** | **List<String>** | Optional tags to classify the graph. | [optional] | -|**nodes** | [**List<RegisteredTaskGraphNode>**](RegisteredTaskGraphNode.md) | 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. | [optional] | +|**nodes** | [**List<TaskGraphNode>**](TaskGraphNode.md) | 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. | [optional] | diff --git a/docs/RegisteredTaskGraphsApi.md b/docs/RegisteredTaskGraphsApi.md index 9e63d7a..e0a5e49 100644 --- a/docs/RegisteredTaskGraphsApi.md +++ b/docs/RegisteredTaskGraphsApi.md @@ -25,11 +25,11 @@ Delete the given registered task graph. ```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.model.*; -import io.tiledb.cloud.rest_api.api.RegisteredTaskGraphsApi; +import ApiClient; +import ApiException; +import Configuration; +import io.tiledb.cloud.rest_api.models.*; +import RegisteredTaskGraphsApi; public class Example { public static void main(String[] args) { @@ -87,6 +87,7 @@ null (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **204** | Task graph successfully deleted. | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -105,7 +106,7 @@ Fetch the contents of this registered task graph. import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import RegisteredTaskGraphsApi; public class Example { @@ -165,6 +166,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | The contents of the registered task graph. | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -183,7 +185,7 @@ Get sharing policies for the task graph. import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import RegisteredTaskGraphsApi; public class Example { @@ -244,6 +246,7 @@ public class Example { |-------------|-------------|------------------| | **200** | List of all specific sharing policies | - | | **404** | The task graph does not exist (or the user does not have permission to view policies) | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -262,7 +265,7 @@ Register a task graph in the given namespace, with the given name. import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import RegisteredTaskGraphsApi; public class Example { @@ -323,6 +326,7 @@ null (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **204** | Task graph registered successfully. | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -341,7 +345,7 @@ Share a task graph. import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import RegisteredTaskGraphsApi; public class Example { @@ -403,6 +407,7 @@ null (empty response body) |-------------|-------------|------------------| | **204** | UDF shared successfully | - | | **404** | UDF does not exist or user does not have permissions to share UDF | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -421,7 +426,7 @@ Update the contents of an existing registered task graph. import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import RegisteredTaskGraphsApi; public class Example { @@ -482,5 +487,6 @@ null (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **204** | Task graph updated successfully. | - | +| **502** | Bad Gateway | - | | **0** | error response | - | diff --git a/docs/RetryPolicy.md b/docs/RetryPolicy.md new file mode 100644 index 0000000..c202480 --- /dev/null +++ b/docs/RetryPolicy.md @@ -0,0 +1,17 @@ + + +# RetryPolicy + +## Enum + + +* `ALWAYS` (value: `"Always"`) + +* `ONFAILURE` (value: `"OnFailure"`) + +* `ONERROR` (value: `"OnError"`) + +* `ONTRANSIENTERROR` (value: `"OnTransientError"`) + + + diff --git a/docs/RetryStrategy.md b/docs/RetryStrategy.md new file mode 100644 index 0000000..adfc420 --- /dev/null +++ b/docs/RetryStrategy.md @@ -0,0 +1,17 @@ + + +# RetryStrategy + +RetryStrategy provides controls on how to retry a taskgraph node + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**backoff** | [**Backoff**](Backoff.md) | | [optional] | +|**expression** | **String** | 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 | [optional] | +|**limit** | **Integer** | 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`. | [optional] | +|**retryPolicy** | **RetryPolicy** | | [optional] | + + + diff --git a/docs/SSODomainConfig.md b/docs/SSODomainConfig.md new file mode 100644 index 0000000..e83bcd9 --- /dev/null +++ b/docs/SSODomainConfig.md @@ -0,0 +1,21 @@ + + +# SSODomainConfig + +The information used to set up a single-sign on connection to a customer domain. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**uuid** | **String** | A server-generated ID for the configuration. | [optional] | +|**domain** | **String** | The fully-qualified domain (but with no trailing dot) to connect for single sign-on. This may not be changed after creation. | [optional] | +|**oidcIssuer** | **String** | 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. | [optional] | +|**oidcClientId** | **String** | The OpenID Connect client ID for this SSO instance. | [optional] | +|**oidcClientSecret** | **String** | The OpenID Connect client secret for this SSO instance. | [optional] | +|**domainSetup** | [**SSODomainSetup**](SSODomainSetup.md) | | [optional] | +|**verificationStatus** | **DomainVerificationStatus** | | [optional] | +|**checkResults** | [**List<DomainCheckResult>**](DomainCheckResult.md) | A list of the results of recent attempts to verify this domain. | [optional] | + + + diff --git a/docs/SSODomainConfigResponse.md b/docs/SSODomainConfigResponse.md new file mode 100644 index 0000000..05d0e78 --- /dev/null +++ b/docs/SSODomainConfigResponse.md @@ -0,0 +1,14 @@ + + +# SSODomainConfigResponse + +The response to a request for the list of domain claims associated with a particular organization. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**domainConfigs** | [**List<SSODomainConfig>**](SSODomainConfig.md) | | [optional] | + + + diff --git a/docs/SSODomainSetup.md b/docs/SSODomainSetup.md new file mode 100644 index 0000000..2110907 --- /dev/null +++ b/docs/SSODomainSetup.md @@ -0,0 +1,16 @@ + + +# SSODomainSetup + +Configuration settings to verify ownership of a given domain. At least one of these must be completed enable user login from the domain. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**txt** | **String** | a DNS TXT record to set on the domain to claim. | [optional] | +|**cnameSrc** | **String** | a DNS name to set a CNAME record on | [optional] | +|**cnameDst** | **String** | the CNAME target of `cname_src`. | [optional] | + + + diff --git a/docs/SingleFragmentInfo.md b/docs/SingleFragmentInfo.md new file mode 100644 index 0000000..f93b48e --- /dev/null +++ b/docs/SingleFragmentInfo.md @@ -0,0 +1,15 @@ + + +# SingleFragmentInfo + +Single Fragment info of an array + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**arraySchemaName** | **String** | array schema name | [optional] | +|**meta** | [**FragmentMetadata**](FragmentMetadata.md) | | [optional] | + + + diff --git a/docs/SqlApi.md b/docs/SqlApi.md index 0be5dee..c4834b5 100644 --- a/docs/SqlApi.md +++ b/docs/SqlApi.md @@ -20,11 +20,11 @@ Run a sql query ```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.model.*; -import io.tiledb.cloud.rest_api.api.SqlApi; +import ApiClient; +import ApiException; +import Configuration; +import io.tiledb.cloud.rest_api.models.*; +import SqlApi; public class Example { public static void main(String[] args) { @@ -86,5 +86,6 @@ public class Example { |-------------|-------------|------------------| | **200** | JSON results in array of objects form, if the query returns results | * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
| | **204** | SQL executed successfully | * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
| +| **502** | Bad Gateway | - | | **0** | error response | - | diff --git a/docs/StatsApi.md b/docs/StatsApi.md index 0bdd142..6173796 100644 --- a/docs/StatsApi.md +++ b/docs/StatsApi.md @@ -20,11 +20,11 @@ Fetch libtiledb stat ```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.model.*; -import io.tiledb.cloud.rest_api.api.StatsApi; +import ApiClient; +import ApiException; +import Configuration; +import io.tiledb.cloud.rest_api.models.*; +import StatsApi; public class Example { public static void main(String[] args) { @@ -77,5 +77,6 @@ This endpoint does not need any parameter. | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | stats | - | +| **502** | Bad Gateway | - | | **0** | error response | - | diff --git a/docs/StorageLocation.md b/docs/StorageLocation.md new file mode 100644 index 0000000..eb9a6bf --- /dev/null +++ b/docs/StorageLocation.md @@ -0,0 +1,15 @@ + + +# StorageLocation + +The path at which a given asset will be stored, and the credentials used to access that asset. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**path** | **String** | 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. | [optional] | +|**credentialsName** | **String** | 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. | [optional] | + + + diff --git a/docs/TGArrayNodeData.md b/docs/TGArrayNodeData.md new file mode 100644 index 0000000..95ed3ee --- /dev/null +++ b/docs/TGArrayNodeData.md @@ -0,0 +1,16 @@ + + +# TGArrayNodeData + +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. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**uri** | **Object** | 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=\" } } | [optional] | +|**ranges** | [**TGQueryRanges**](TGQueryRanges.md) | | [optional] | +|**buffers** | **Object** | 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=\" } } | [optional] | + + + diff --git a/docs/TGQueryRanges.md b/docs/TGQueryRanges.md new file mode 100644 index 0000000..d6c0648 --- /dev/null +++ b/docs/TGQueryRanges.md @@ -0,0 +1,16 @@ + + +# TGQueryRanges + +Parameterizable version of `QueryRanges`. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**layout** | **Layout** | | [optional] | +|**friendlyRanges** | **Object** | 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=\" } } | [optional] | +|**ranges** | **Object** | 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=\" } } | [optional] | + + + diff --git a/docs/TGUDFEnvironment.md b/docs/TGUDFEnvironment.md index dcda8f5..3556c33 100644 --- a/docs/TGUDFEnvironment.md +++ b/docs/TGUDFEnvironment.md @@ -11,9 +11,12 @@ Metadata about the environment where we want to execute a UDF. |**language** | **UDFLanguage** | | [optional] | |**languageVersion** | **String** | 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. | [optional] | |**imageName** | **String** | The name of the image to use for the execution environment. | [optional] | +|**accessCredentialsName** | **String** | The name of the access credentials to use. if unset, no credentials will be configured in the environment. | [optional] | |**namespace** | **String** | 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). | [optional] | |**resourceClass** | **String** | 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. | [optional] | +|**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] | diff --git a/docs/TGUDFEnvironmentResources.md b/docs/TGUDFEnvironmentResources.md new file mode 100644 index 0000000..9cbe835 --- /dev/null +++ b/docs/TGUDFEnvironmentResources.md @@ -0,0 +1,16 @@ + + +# 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 + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**cpu** | **String** | | [optional] | +|**memory** | **String** | | [optional] | +|**gpu** | **Integer** | | [optional] | + + + diff --git a/docs/TaskGraph.md b/docs/TaskGraph.md new file mode 100644 index 0000000..608c111 --- /dev/null +++ b/docs/TaskGraph.md @@ -0,0 +1,23 @@ + + +# TaskGraph + +Information about a task graph. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**uuid** | **String** | The server-generated UUID of the task graph. | [optional] [readonly] | +|**namespace** | **String** | 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. | [optional] | +|**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] | +|**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] | +|**taskGraphType** | **TaskGraphType** | | [optional] | + + + diff --git a/docs/TaskGraphLog.md b/docs/TaskGraphLog.md index 21ccb3f..6862e8b 100644 --- a/docs/TaskGraphLog.md +++ b/docs/TaskGraphLog.md @@ -22,6 +22,8 @@ Logging information about the execution of a task graph. |**executionTime** | **String** | The total execution time of all the nodes in this graph, in ISO 8601 format with hours, minutes, and seconds. | [optional] | |**statusCount** | **Map<String, BigDecimal>** | A mapping from `ArrayTaskStatus` string value to the number of nodes in this graph that are in that status. | [optional] | |**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] | diff --git a/docs/TaskGraphLogsApi.md b/docs/TaskGraphLogsApi.md index 84191f6..7b6f05e 100644 --- a/docs/TaskGraphLogsApi.md +++ b/docs/TaskGraphLogsApi.md @@ -8,6 +8,10 @@ All URIs are relative to */v1* | [**getTaskGraphLog**](TaskGraphLogsApi.md#getTaskGraphLog) | **GET** /taskgraphs/{namespace}/logs/{id} | | | [**listTaskGraphLogs**](TaskGraphLogsApi.md#listTaskGraphLogs) | **GET** /taskgraphs/logs | | | [**reportClientNode**](TaskGraphLogsApi.md#reportClientNode) | **POST** /taskgraphs/{namespace}/logs/{id}/report_client_node | | +| [**resubmitTaskGraphExecution**](TaskGraphLogsApi.md#resubmitTaskGraphExecution) | **POST** /taskgraphs/{namespace}/executions/{id}/resubmit | | +| [**retryTaskGraphExecution**](TaskGraphLogsApi.md#retryTaskGraphExecution) | **POST** /taskgraphs/{namespace}/executions/{id}/retry | | +| [**stopTaskGraphExecution**](TaskGraphLogsApi.md#stopTaskGraphExecution) | **POST** /taskgraphs/{namespace}/executions/{id}/stop | | +| [**submitTaskGraph**](TaskGraphLogsApi.md#submitTaskGraph) | **POST** /taskgraphs/{namespace}/graphs/{id}/submit | | | [**updateTaskGraphLog**](TaskGraphLogsApi.md#updateTaskGraphLog) | **PATCH** /taskgraphs/{namespace}/logs/{id} | | @@ -24,11 +28,11 @@ Create a task graph log. ```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.model.*; -import io.tiledb.cloud.rest_api.api.TaskGraphLogsApi; +import ApiClient; +import ApiException; +import Configuration; +import io.tiledb.cloud.rest_api.models.*; +import TaskGraphLogsApi; public class Example { public static void main(String[] args) { @@ -87,6 +91,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **201** | The task graph was created. The returned TaskGraphLog will include the data the client sent, with the server-defined fields added in. | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -105,7 +110,7 @@ Fetch information about a single task graph execution. import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import TaskGraphLogsApi; public class Example { @@ -165,6 +170,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Information about the execution of a single task graph. | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -183,7 +189,7 @@ Fetch the task graph logs of a namespace the user has access to. The returned en import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import TaskGraphLogsApi; public class Example { @@ -253,6 +259,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | The task graph logs that matched the user's query. | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -269,7 +276,7 @@ public class Example { import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import TaskGraphLogsApi; public class Example { @@ -330,6 +337,323 @@ null (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **204** | Status reported successfully. | - | +| **502** | Bad Gateway | - | +| **0** | error response | - | + + +# **resubmitTaskGraphExecution** +> TaskGraphLog resubmitTaskGraphExecution(namespace, id) + + + +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.models.*; +import 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(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| The namespace that owns this task graph execution. | | +| **id** | **String**| The UUID of the task graph execution (TaskGraphLog). | | + +### Return type + +[**TaskGraphLog**](TaskGraphLog.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **202** | Information about the task graph execution. | - | +| **502** | Bad Gateway | - | +| **0** | error response | - | + + +# **retryTaskGraphExecution** +> TaskGraphLog retryTaskGraphExecution(namespace, id) + + + +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.models.*; +import 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(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| The namespace that owns this task graph execution. | | +| **id** | **String**| The UUID of the task graph execution (TaskGraphLog). | | + +### Return type + +[**TaskGraphLog**](TaskGraphLog.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **202** | Information about the task graph execution. | - | +| **502** | Bad Gateway | - | +| **0** | error response | - | + + +# **stopTaskGraphExecution** +> TaskGraphLog 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.models.*; +import 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(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| The namespace that owns this task graph execution. | | +| **id** | **String**| The UUID of the task graph execution (TaskGraphLog). | | + +### Return type + +[**TaskGraphLog**](TaskGraphLog.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **202** | Information about the task graph execution. | - | +| **502** | Bad Gateway | - | +| **0** | error response | - | + + +# **submitTaskGraph** +> TaskGraphLog submitTaskGraph(namespace, id) + + + +Submit a single task graph for execution. + +### Example + +```java +// Import classes: + +import ApiClient; +import ApiException; +import Configuration; +import io.tiledb.cloud.rest_api.models.*; +import 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(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| The namespace that owns this task graph. | | +| **id** | **String**| The UUID of the task graph entry. | | + +### Return type + +[**TaskGraphLog**](TaskGraphLog.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **202** | Information about the execution of a single task graph. | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -348,7 +672,7 @@ Update information about a single task graph execution. import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import TaskGraphLogsApi; public class Example { @@ -409,5 +733,6 @@ null (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **204** | Log entry updated successfully. | - | +| **502** | Bad Gateway | - | | **0** | error response | - | diff --git a/docs/TaskGraphNode.md b/docs/TaskGraphNode.md new file mode 100644 index 0000000..99c222d --- /dev/null +++ b/docs/TaskGraphNode.md @@ -0,0 +1,23 @@ + + +# TaskGraphNode + +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`. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**clientNodeId** | **String** | The client-generated UUID of the given graph node. | [optional] | +|**name** | **String** | A client-specified name for the node. If provided, this must be unique. | [optional] | +|**dependsOn** | **List<String>** | The client_node_uuid of each node that this node depends upon. Used to define the structure of the graph. | [optional] | +|**arrayNode** | [**UDFArrayDetails**](UDFArrayDetails.md) | | [optional] | +|**inputNode** | [**TGInputNodeData**](TGInputNodeData.md) | | [optional] | +|**sqlNode** | [**TGSQLNodeData**](TGSQLNodeData.md) | | [optional] | +|**udfNode** | [**TGUDFNodeData**](TGUDFNodeData.md) | | [optional] | +|**retryStrategy** | [**RetryStrategy**](RetryStrategy.md) | | [optional] | +|**expandNodeOutput** | **String** | 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. | [optional] | +|**deadline** | **Long** | Duration in seconds relative to the node start time which the node is allowed to run before it gets terminated. | [optional] | + + + diff --git a/docs/TaskGraphNodeMetadata.md b/docs/TaskGraphNodeMetadata.md index 8ad54c9..ff5f198 100644 --- a/docs/TaskGraphNodeMetadata.md +++ b/docs/TaskGraphNodeMetadata.md @@ -13,6 +13,7 @@ Metadata about an individual node in a task graph. |**dependsOn** | **List<String>** | The client_node_uuid of each node that this node depends upon. Used to define the structure of the graph. | [optional] | |**runLocation** | **TaskGraphLogRunLocation** | | [optional] | |**status** | **ArrayTaskStatus** | | [optional] | +|**statusMessage** | **String** | The reason the array task status is in the state | [optional] | |**executions** | [**List<ArrayTask>**](ArrayTask.md) | 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. | [optional] [readonly] | diff --git a/docs/TaskGraphType.md b/docs/TaskGraphType.md new file mode 100644 index 0000000..3632126 --- /dev/null +++ b/docs/TaskGraphType.md @@ -0,0 +1,13 @@ + + +# TaskGraphType + +## Enum + + +* `BATCH` (value: `"batch"`) + +* `REALTIME` (value: `"realtime"`) + + + diff --git a/docs/TaskGraphs.md b/docs/TaskGraphs.md new file mode 100644 index 0000000..e8b5591 --- /dev/null +++ b/docs/TaskGraphs.md @@ -0,0 +1,14 @@ + + +# TaskGraphs + +Information about a series of task graphs. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**graphs** | [**List<TaskGraph>**](TaskGraph.md) | The series of graphs. | [optional] | + + + diff --git a/docs/TaskGraphsApi.md b/docs/TaskGraphsApi.md new file mode 100644 index 0000000..ef2baa4 --- /dev/null +++ b/docs/TaskGraphsApi.md @@ -0,0 +1,407 @@ +# TaskGraphsApi + +All URIs are relative to */v1* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**createTaskGraph**](TaskGraphsApi.md#createTaskGraph) | **POST** /taskgraphs/{namespace}/graphs | | +| [**getTaskGraph**](TaskGraphsApi.md#getTaskGraph) | **GET** /taskgraphs/{namespace}/graphs/{id} | | +| [**listTaskGraphs**](TaskGraphsApi.md#listTaskGraphs) | **GET** /taskgraphs/{namespace}/graphs | | +| [**submitTaskGraph**](TaskGraphsApi.md#submitTaskGraph) | **POST** /taskgraphs/{namespace}/graphs/{id}/submit | | +| [**updateTaskGraph**](TaskGraphsApi.md#updateTaskGraph) | **PATCH** /taskgraphs/{namespace}/graphs/{id} | | + + + +# **createTaskGraph** +> TaskGraph createTaskGraph(namespace, graph) + + + +Create a single task graph for execution. + +### Example + +```java +// Import classes: + +import ApiClient; +import ApiException; +import Configuration; +import io.tiledb.cloud.rest_api.models.*; +import 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(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| Include graphs for this namespace. | | +| **graph** | [**TaskGraph**](TaskGraph.md)| Create the task graph. | | + +### Return type + +[**TaskGraph**](TaskGraph.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Task graph created successfully. | - | +| **502** | Bad Gateway | - | +| **0** | error response | - | + + +# **getTaskGraph** +> TaskGraph getTaskGraph(namespace, id) + + + +Fetch information about a single task graph. + +### Example + +```java +// Import classes: + +import ApiClient; +import ApiException; +import Configuration; +import io.tiledb.cloud.rest_api.models.*; +import 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(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| The namespace that owns this task graph. | | +| **id** | **String**| The UUID of the task graph entry. | | + +### Return type + +[**TaskGraph**](TaskGraph.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Information about the single task graph. | - | +| **502** | Bad Gateway | - | +| **0** | error response | - | + + +# **listTaskGraphs** +> TaskGraphs listTaskGraphs(namespace) + + + +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.models.*; +import 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(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| Namespace for graphs | | + +### Return type + +[**TaskGraphs**](TaskGraphs.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | The task graphs that matched the user's query. | - | +| **502** | Bad Gateway | - | +| **0** | error response | - | + + +# **submitTaskGraph** +> TaskGraphLog submitTaskGraph(namespace, id) + + + +Submit a single task graph for execution. + +### Example + +```java +// Import classes: + +import ApiClient; +import ApiException; +import Configuration; +import io.tiledb.cloud.rest_api.models.*; +import 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(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| The namespace that owns this task graph. | | +| **id** | **String**| The UUID of the task graph entry. | | + +### Return type + +[**TaskGraphLog**](TaskGraphLog.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **202** | Information about the execution of a single task graph. | - | +| **502** | Bad Gateway | - | +| **0** | error response | - | + + +# **updateTaskGraph** +> updateTaskGraph(namespace, id, graph) + + + +Update information about a single task graph execution. + +### Example + +```java +// Import classes: + +import ApiClient; +import ApiException; +import Configuration; +import io.tiledb.cloud.rest_api.models.*; +import 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(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| The namespace that owns this task graph. | | +| **id** | **String**| The UUID of the task graph entry. | | +| **graph** | [**TaskGraph**](TaskGraph.md)| Updates to make to the task graph. | | + +### Return type + +null (empty response body) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | Task graph created successfully. | - | +| **502** | Bad Gateway | - | +| **0** | error response | - | + diff --git a/docs/TasksApi.md b/docs/TasksApi.md index 9d1f99c..57c93ad 100644 --- a/docs/TasksApi.md +++ b/docs/TasksApi.md @@ -23,11 +23,11 @@ Run a sql query ```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.model.*; -import io.tiledb.cloud.rest_api.api.TasksApi; +import ApiClient; +import ApiException; +import Configuration; +import io.tiledb.cloud.rest_api.models.*; +import TasksApi; public class Example { public static void main(String[] args) { @@ -89,6 +89,7 @@ public class Example { |-------------|-------------|------------------| | **200** | JSON results in array of objects form, if the query returns results | * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
| | **204** | SQL executed successfully | * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
| +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -107,7 +108,7 @@ Fetch an array task import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import TasksApi; public class Example { @@ -165,6 +166,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Array task | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -183,7 +185,7 @@ Retrieve results of an array task import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import TasksApi; public class Example { @@ -245,6 +247,7 @@ public class Example { | **200** | output and format of originating request | * Content-Type - format results are delivered in
| | **202** | task is still executing | - | | **404** | results were not saved, or results have expored | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -263,7 +266,7 @@ Fetch a list of all array tasks a user has access to import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import TasksApi; public class Example { @@ -347,5 +350,6 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Array of all tasks user has access too | - | +| **502** | Bad Gateway | - | | **0** | error response | - | diff --git a/docs/TileDBConfig.md b/docs/TileDBConfig.md index 0e763ad..9f51301 100644 --- a/docs/TileDBConfig.md +++ b/docs/TileDBConfig.md @@ -2,13 +2,13 @@ # TileDBConfig -user's TileDB config +TileDB config used for interaction with the embedded library ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**configs** | **Map<String, String>** | | [optional] | +|**entries** | [**List<TileDBConfigEntriesInner>**](TileDBConfigEntriesInner.md) | | [optional] | diff --git a/docs/TileDBConfigEntriesInner.md b/docs/TileDBConfigEntriesInner.md new file mode 100644 index 0000000..3af277f --- /dev/null +++ b/docs/TileDBConfigEntriesInner.md @@ -0,0 +1,14 @@ + + +# TileDBConfigEntriesInner + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**key** | **String** | | [optional] | +|**value** | **String** | | [optional] | + + + diff --git a/docs/Token.md b/docs/Token.md index 88c6a68..2048aa6 100644 --- a/docs/Token.md +++ b/docs/Token.md @@ -12,7 +12,7 @@ A api token and its metadata |**name** | **String** | Name of token to revoke | [optional] | |**issuedAt** | **OffsetDateTime** | datetime the token was created | [optional] | |**expiresAt** | **OffsetDateTime** | datetime the token when token will expire | [optional] | -|**scope** | **String** | Optional scope to limit token, defaults to all permissions, current supported values are password_reset or * | [optional] | +|**scope** | **List<TokenScope>** | Optional scope to limit token, defaults to all permissions, current supported values are password_reset or * | [optional] | diff --git a/docs/TokenRequest.md b/docs/TokenRequest.md index af364ba..72d9e97 100644 --- a/docs/TokenRequest.md +++ b/docs/TokenRequest.md @@ -10,7 +10,7 @@ A request from a user for an api token |------------ | ------------- | ------------- | -------------| |**expires** | **OffsetDateTime** | Expiration date for token, if empty token defaults to 30 minutes | [optional] | |**name** | **String** | Optional name for token, if the name already exists for the user it will be auto incremented (i.e. myToken-1) | [optional] | -|**scope** | **String** | Optional scope to limit token, defaults to all permissions, current supported values are password_reset or * | [optional] | +|**scope** | **List<TokenScope>** | Optional scope to limit token, defaults to all permissions, current supported values are password_reset or * | [optional] | diff --git a/docs/UdfApi.md b/docs/UdfApi.md index 2f1dce1..8abf545 100644 --- a/docs/UdfApi.md +++ b/docs/UdfApi.md @@ -30,11 +30,11 @@ delete a registered UDF -- this will remove all sharing and can not be undone ```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.model.*; -import io.tiledb.cloud.rest_api.api.UdfApi; +import ApiClient; +import ApiException; +import Configuration; +import io.tiledb.cloud.rest_api.models.*; +import UdfApi; public class Example { public static void main(String[] args) { @@ -92,6 +92,7 @@ null (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **204** | UDF deleted successfully | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -110,7 +111,7 @@ get a specific UDF in the given namespace import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import UdfApi; public class Example { @@ -171,6 +172,7 @@ public class Example { |-------------|-------------|------------------| | **200** | UDFInfo was retrieved successfully | - | | **404** | UDF not found | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -189,7 +191,7 @@ Get all sharing details of the UDF import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import UdfApi; public class Example { @@ -250,6 +252,7 @@ public class Example { |-------------|-------------|------------------| | **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 | - | @@ -268,7 +271,7 @@ Copy a tiledb udf at the specified location import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import UdfApi; public class Example { @@ -334,6 +337,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **201** | UDF copied | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -352,7 +356,7 @@ register a UDF in the given namespace import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import UdfApi; public class Example { @@ -413,6 +417,7 @@ null (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **204** | UDF registered successfully | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -431,7 +436,7 @@ Share a UDF with a user import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import UdfApi; public class Example { @@ -493,6 +498,7 @@ null (empty response body) |-------------|-------------|------------------| | **204** | UDF shared successfully | - | | **404** | UDF does not exist or user does not have permissions to share UDF | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -511,7 +517,7 @@ submit a generic UDF in the given namespace import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import UdfApi; public class Example { @@ -573,6 +579,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | UDF completed and the UDF-type specific result is returned | * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
| +| **502** | Bad Gateway | - | | **0** | error response | * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
| @@ -591,7 +598,7 @@ submit a multi-array UDF in the given namespace import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import UdfApi; public class Example { @@ -653,6 +660,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | UDF completed and the UDF-type specific result is returned | * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
| +| **502** | Bad Gateway | - | | **0** | error response | * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
| @@ -671,7 +679,7 @@ send a UDF to run against a specified array/URI registered to a group/project import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import UdfApi; public class Example { @@ -739,6 +747,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | UDF completed and the UDF-type specific result is returned | * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
| +| **502** | Bad Gateway | - | | **0** | error response | * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
| @@ -757,7 +766,7 @@ retrieve a list of timestamps from the array fragment info listing in millisecon import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import UdfApi; public class Example { @@ -821,6 +830,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | list of timestamps in milliseconds, paginated | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -839,7 +849,7 @@ update an existing registered UDF in the given namespace import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import UdfApi; public class Example { @@ -900,5 +910,6 @@ null (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **204** | UDF updated successfully | - | +| **502** | Bad Gateway | - | | **0** | error response | - | diff --git a/docs/User.md b/docs/User.md index 39f23e0..32df828 100644 --- a/docs/User.md +++ b/docs/User.md @@ -17,14 +17,14 @@ User |**stripeConnect** | **Boolean** | Denotes that the user is able to apply pricing to arrays by means of Stripe Connect | [optional] [readonly] | |**company** | **String** | the user's company | [optional] | |**logo** | **String** | the user's logo | [optional] | -|**lastActivityDate** | **OffsetDateTime** | when the user last logged in (set by the server) | [optional] [readonly] | |**timezone** | **String** | | [optional] | |**organizations** | [**List<OrganizationUser>**](OrganizationUser.md) | Array of organizations a user is part of and their roles | [optional] [readonly] | |**allowedActions** | **List<NamespaceActions>** | list of actions user is allowed to do on this organization | [optional] | |**enabledFeatures** | **List<String>** | List of extra/optional/beta features to enable for namespace | [optional] [readonly] | |**unpaidSubscription** | **Boolean** | A notice that the user has an unpaid subscription | [optional] [readonly] | -|**defaultS3Path** | **String** | default S3 path to store newly created notebooks | [optional] | -|**defaultS3PathCredentialsName** | **String** | Default S3 path credentials name is the credentials name to use along with default_s3_path | [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** | **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] | diff --git a/docs/UserApi.md b/docs/UserApi.md index 724ae0b..b427aba 100644 --- a/docs/UserApi.md +++ b/docs/UserApi.md @@ -41,11 +41,11 @@ Add aws keys ```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.model.*; -import io.tiledb.cloud.rest_api.api.UserApi; +import ApiClient; +import ApiException; +import Configuration; +import io.tiledb.cloud.rest_api.models.*; +import UserApi; public class Example { public static void main(String[] args) { @@ -103,6 +103,7 @@ null (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **204** | AWS keys added successfully | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -121,7 +122,7 @@ add a user to an organization import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import UserApi; public class Example { @@ -180,6 +181,7 @@ null (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **204** | user added to organization successfully | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -198,7 +200,7 @@ Check if aws keys are set import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import UserApi; public class Example { @@ -256,6 +258,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | AWS keys are set | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -274,7 +277,7 @@ Check if aws keys are set by name import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import UserApi; public class Example { @@ -334,6 +337,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | AWS keys are set | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -352,7 +356,7 @@ confirm user email import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import UserApi; public class Example { @@ -405,6 +409,7 @@ null (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **204** | User email confirmed successfully | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -423,7 +428,7 @@ create a user import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import UserApi; public class Example { @@ -480,6 +485,7 @@ null (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **204** | user created successfully | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -498,7 +504,7 @@ delete a AWS Access credentials in a namespace. This will likely cause arrays to import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import UserApi; public class Example { @@ -557,6 +563,7 @@ null (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **204** | AWS credentials deleted | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -575,7 +582,7 @@ delete a user import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import UserApi; public class Example { @@ -632,6 +639,7 @@ null (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **204** | user deleted | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -650,7 +658,7 @@ delete a user from an organization import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import UserApi; public class Example { @@ -709,6 +717,7 @@ null (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **204** | user delete from organization successfully | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -727,7 +736,7 @@ get a user from an organization import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import UserApi; public class Example { @@ -788,6 +797,7 @@ public class Example { |-------------|-------------|------------------| | **200** | user from organization | - | | **404** | User is not in organization | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -806,7 +816,7 @@ Get session token for user import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import UserApi; public class Example { @@ -864,6 +874,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Session token | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -882,7 +893,7 @@ retrieves available token scopes for a user import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import UserApi; public class Example { @@ -936,6 +947,7 @@ This endpoint does not need any parameter. | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | available token scopes | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -954,7 +966,7 @@ get a user import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import UserApi; public class Example { @@ -1008,6 +1020,7 @@ This endpoint does not need any parameter. | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | user details | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -1026,7 +1039,7 @@ get a user import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import UserApi; public class Example { @@ -1085,6 +1098,7 @@ public class Example { |-------------|-------------|------------------| | **200** | user details | - | | **404** | User does not exist | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -1103,7 +1117,7 @@ Request an authorization token, optionally taken a TokenRequest object to set pa import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import UserApi; public class Example { @@ -1161,6 +1175,7 @@ public class Example { | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | token | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -1179,7 +1194,7 @@ reset user password import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import UserApi; public class Example { @@ -1237,6 +1252,7 @@ null (empty response body) |-------------|-------------|------------------| | **204** | User password updated successfully | - | | **404** | User not found | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -1255,7 +1271,7 @@ revoke an authorization token import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import UserApi; public class Example { @@ -1312,6 +1328,7 @@ null (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **204** | revokation successfully | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -1330,7 +1347,7 @@ Fetch a list of user tokens import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import UserApi; public class Example { @@ -1384,6 +1401,7 @@ This endpoint does not need any parameter. | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Array of user created non-session tokens | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -1402,7 +1420,7 @@ Fetch a list of user session tokens import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import UserApi; public class Example { @@ -1456,6 +1474,7 @@ This endpoint does not need any parameter. | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Array of user created session tokens | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -1474,7 +1493,7 @@ Update aws keys or associated buckets. This will update the key associations for import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import UserApi; public class Example { @@ -1535,6 +1554,7 @@ null (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **204** | AWS keys updated successfully | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -1553,7 +1573,7 @@ update a user import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import UserApi; public class Example { @@ -1612,6 +1632,7 @@ null (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **204** | user updated successfully | - | +| **502** | Bad Gateway | - | | **0** | error response | - | @@ -1630,7 +1651,7 @@ update a user in an organization import ApiClient; import ApiException; import Configuration; -import org.openapitools.client.models.*; +import io.tiledb.cloud.rest_api.models.*; import UserApi; public class Example { @@ -1691,5 +1712,6 @@ null (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **204** | user update in organization successfully | - | +| **502** | Bad Gateway | - | | **0** | error response | - | diff --git a/openapi-v1.yaml b/openapi-v1.yaml new file mode 100644 index 0000000..c764327 --- /dev/null +++ b/openapi-v1.yaml @@ -0,0 +1,10050 @@ +swagger: "2.0" +info: + description: TileDB Storage Platform REST API + title: TileDB Storage Platform API + version: 2.2.19 + +produces: + - application/json +consumes: + - application/json + +schemes: + - http + - https + +basePath: /v1 + +securityDefinitions: + BasicAuth: + type: basic + ApiKeyAuth: + type: apiKey + in: header + name: X-TILEDB-REST-API-KEY + OAuth2: + type: oauth2 + flow: accessCode + authorizationUrl: https://oauth2.tiledb.com/oauth2/authorize + tokenUrl: https://oauth2.tiledb.com/oauth2/token + scopes: + read: Grants read access + write: Grants write access + admin: Grants read and write access to administrative information + +security: + - BasicAuth: [] + - ApiKeyAuth: [] + # Commented out beacause this breaks the python autogenerated client + # It always sets the Bearer authorization header even when empty :/ + # - OAuth2: [read, write, admin] + +definitions: + ArrayType: + description: TileDB array type + type: string + enum: + # Dense array + - dense + # Sparse array + - sparse + + Datatype: + description: TileDB data type + type: string + enum: + # 32-bit signed integer + - INT32 + # 64-bit signed integer + - INT64 + # 32-bit floating point value + - FLOAT32 + # 64-bit floating point value + - FLOAT64 + # Character + - CHAR + # 8-bit signed integer + - INT8 + # 8-bit unsigned integer + - UINT8 + # 16-bit signed integer + - INT16 + # 16-bit unsigned integer + - UINT16 + # 32-bit unsigned integer + - UINT32 + # 64-bit unsigned integer + - UINT64 + # ASCII string + - STRING_ASCII + # UTF-8 string + - STRING_UTF8 + # UTF-16 string + - STRING_UTF16 + # UTF-32 string + - STRING_UTF32 + # UCS2 string + - STRING_UCS2 + # UCS4 string + - STRING_UCS4 + # This can be any datatype. Must store (type tag, value) pairs. + - ANY + + ActivityEventType: + description: Type of activity logged + type: string + enum: + # read_schema operation + - read_schema + # max_buffer_sizes operation + - max_buffer_sizes + # non_empty_domain operation + - non_empty_domain + # query read operation + - query_read + # query write operation + - query_write + # query delete operation + - query_delete + # create operation + - create + # delete operation + - delete + # register operation + - register + # deregister operation + - deregister + # udf operations + - udf + # get array metadata operation + - array_metadata_get + # update array metadata operation + - array_metadata_update + # estimated_result_sizes + - estimated_result_sizes + # read_fragment_info + - read_fragment_info + + UDFLanguage: + description: UDF Type + type: string + enum: + # python + - python + # r + - r + + UDFType: + description: UDF Type + type: string + enum: + # multi_array + - multi_array + # single_array + - single_array + # generic + - generic + + ResultFormat: + description: "Data format of a result" + type: string + enum: + - python_pickle + - r_serialization + - json + - arrow + - bytes + # Raw binary data, not interpreted by the loader. + - tiledb_json + # The format used to encode argument values for a task graph: JSON + # as deeply as possible, but any value that cannot be JSON-encoded + # is replaced with a TGArgValue. + - native # DEPRECATED. Use the language-specific values instead. + + Layout: + description: Layout of array + type: string + enum: + # Row-major layout + - row-major + # Column-major layout + - col-major + # Global-order layout + - global-order + # Unordered layout + - unordered + + Querytype: + description: Type of query + type: string + enum: + # READ + - READ + # Write + - WRITE + # Delete + - DELETE + + Querystatus: + description: Status of query + type: string + enum: + # FAILED + - FAILED + # COMPLETED + - COMPLETED + # INPROGRESS + - INPROGRESS + # INCOMPLETE + - INCOMPLETE + # UNINITIALIZED + - UNINITIALIZED + + FilterType: + description: TileDB filter types + type: string + enum: + # No-op filter + - FILTER_NONE + # Gzip compressor + - FILTER_GZIP + # Zstandard compressor + - FILTER_ZSTD + # LZ4 compressor + - FILTER_LZ4 + # Run-length encoding compressor + - FILTER_RLE + # Bzip2 compressor + - FILTER_BZIP2 + # Double-delta compressor + - FILTER_DOUBLE_DELTA + # Bit width reduction filter. + - FILTER_BIT_WIDTH_REDUCTION + # Bitshuffle filter. + - FILTER_BITSHUFFLE + # Byteshuffle filter. + - FILTER_BYTESHUFFLE + # Positive-delta encoding filter. + - FILTER_POSITIVE_DELTA + + FilterOption: + description: TileDB filter option + type: string + enum: + # Compression level. Type: `int32_t` + - COMPRESSION_LEVEL + # Max window length for bit width reduction. Type: `uint32_t` + - BIT_WIDTH_MAX_WINDOW + # Max window length for positive-delta encoding. Type: `uint32_t`. + - POSITIVE_DELTA_MAX_WINDOW + + OrganizationRoles: + description: role user has in organization + type: string + enum: + # Owner/creator of group + - owner + # Admin almost all rights but can't delete organization + - admin + # Read and write User + - read_write + # Read Only User + - read_only + + ArrayActions: + description: actions a user can take on an array + type: string + enum: + # Read + - read + # Write + - write + # Edit metadata about array + - edit + # View logs for array + - read_array_logs + # Permission to get array info + - read_array_info + # Permission to fetch the array schema + - read_array_schema + + UDFActions: + description: actions a user can take on a UDF + type: string + enum: + # Fetch UDF and run jobs + - fetch_udf + # Share UDF with others + - share_udf + + NamespaceActions: + description: actions a user can take on an organization + type: string + enum: + # Fetch details about namespace and read arrays in namespace + - read + # Write to arrays inside namespace + - write + # Create arrays inside namespace + - create + # Delete/Deregister arrays in namespace + - delete + # Edit array metadata + - edit + # View logs for array + - read_array_logs + # View logs for job + - read_job_logs + # View change logs for namespace + - read_object_logs + # Run job + - run_job + # Delete an organization + - delete_organization + # Edit organization details + - edit_organization + # Edit billing details + - edit_billing + + DomainArray: + description: Domain object for an array of each type + type: object + properties: + int8: + type: array + x-omitempty: true + items: + type: integer + format: int8 + uint8: + type: array + x-omitempty: true + items: + type: integer + format: uint8 + int16: + type: array + x-omitempty: true + items: + type: integer + format: int16 + uint16: + type: array + x-omitempty: true + items: + type: integer + format: uint16 + int32: + type: array + x-omitempty: true + items: + type: integer + format: int32 + uint32: + type: array + x-omitempty: true + items: + type: integer + format: uint32 + int64: + type: array + x-omitempty: true + items: + type: integer + format: int64 + uint64: + type: array + x-omitempty: true + items: + type: integer + format: uint64 + float32: + type: array + x-omitempty: true + items: + type: number + format: float + float64: + type: array + x-omitempty: true + items: + type: number + format: double + + Array: + description: Represents an open array + type: object + required: + - timestamp + - queryType + - uri + properties: + timestamp: + description: timestamp (epoch milliseconds) array is opened at + type: number + format: uint64 + example: 1540471791873 + queryType: + description: Array opened for query type + $ref: "#/definitions/Querytype" + uri: + description: Array uri + type: string + + Attribute: + description: Attribute of array + type: object + required: + - name + - type + - filterPipeline + - cellValNum + properties: + name: + description: Attribute name + type: string + example: attribute1 + type: + $ref: "#/definitions/Datatype" + filterPipeline: + $ref: "#/definitions/FilterPipeline" + cellValNum: + description: Attribute number of values per cell + type: integer + example: 1 + nullable: + description: Is attribute nullable + type: boolean + example: true + fillValue: + description: The default fill value + type: array + items: + type: integer + format: uint8 + + Dimension: + description: Dimension of array + type: object + required: + - type + - domain + - nullTileExtent + properties: + name: + description: Dimension name + type: string + example: "row" + type: + $ref: "#/definitions/Datatype" + domain: + description: extent of domain + $ref: "#/definitions/DomainArray" + nullTileExtent: + description: Is tile extent null + type: boolean + example: true + tileExtent: + description: Extent of tile + type: object + properties: + int8: + type: integer + format: int8 + uint8: + type: integer + format: uint8 + int16: + type: integer + format: int16 + uint16: + type: integer + format: uint16 + int32: + type: integer + format: int32 + uint32: + type: integer + format: uint32 + int64: + type: integer + format: int64 + uint64: + type: integer + format: uint64 + float32: + type: integer + format: float + float64: + type: integer + format: double + filterPipeline: + x-omit-empty: true + $ref: "#/definitions/FilterPipeline" + + Domain: + description: Domain of array + type: object + required: + - type + - tileOrder + - cellOrder + - dimensions + properties: + type: + $ref: "#/definitions/Datatype" + description: Domain Type + tileOrder: + $ref: "#/definitions/Layout" + description: Tile Order + cellOrder: + $ref: "#/definitions/Layout" + description: Cell Order + dimensions: + type: array + description: Array of dimensions + items: + $ref: "#/definitions/Dimension" + + Filter: + description: Filter + type: object + required: + - type + properties: + type: + description: Filter type + $ref: "#/definitions/FilterType" + data: + description: Filter data + type: object + properties: + int8: + type: integer + format: int8 + uint8: + type: integer + format: uint8 + int16: + type: integer + format: int16 + uint16: + type: integer + format: uint16 + int32: + type: integer + format: int32 + uint32: + type: integer + format: uint32 + int64: + type: integer + format: int64 + uint64: + type: integer + format: uint64 + float32: + type: integer + format: float + float64: + type: integer + format: double + + FilterPipeline: + description: One or more filters to apply + type: object + properties: + filters: + type: array + x-omitempty: true + items: + $ref: "#/definitions/Filter" + + ArraySchema: + description: ArraySchema during creation or retrieval + type: object + required: + - version + - arrayType + - tileOrder + - cellOrder + - capacity + - coordsFilterPipeline + - offsetFilterPipeline + - domain + - attributes + properties: + uri: + description: URI of schema + type: string + example: "s3:///test_array" + version: + description: file format version + type: array + x-omitempty: true + items: + type: integer + example: [1, 3, 0] + arrayType: + $ref: "#/definitions/ArrayType" + description: Type of array + example: sparse + tileOrder: + description: Tile order setting of array + $ref: "#/definitions/Layout" + example: row-major + cellOrder: + description: Order of cells + $ref: "#/definitions/Layout" + example: row-major + capacity: + description: Capacity of array + type: integer + format: uint64 + example: 100000 + coordsFilterPipeline: + description: Filter pipeline used for coordinates (enum) + $ref: "#/definitions/FilterPipeline" + offsetFilterPipeline: + description: Filter pipeline use for variable offsets (enum) + $ref: "#/definitions/FilterPipeline" + domain: + description: Domain of array + $ref: "#/definitions/Domain" + attributes: + description: Attributes of array + type: array + x-omitempty: true + items: + $ref: "#/definitions/Attribute" + allowsDuplicates: + description: True if the array allows coordinate duplicates. Applicable only to sparse arrays. + type: boolean + x-go-type: + import: + package: "github.com/TileDB-Inc/TileDB-Go" + alias: "tiledb" + type: "ArraySchema" + + AttributeBufferHeader: + description: Represents an attribute buffer header information + type: object + required: + - name + - fixedLenBufferSizeInBytes + - varLenBufferSizeInBytes + + properties: + name: + description: Attribute name + type: string + example: "attribute1" + fixedLenBufferSizeInBytes: + description: Number of bytes in the fixed-length attribute data buffer (offsets for var-len attributes) + type: integer + format: uint64 + varLenBufferSizeInBytes: + description: Number of bytes in the var-length attribute data buffer + type: integer + format: uint64 + + Writer: + type: object + properties: + checkCoordDups: + type: boolean + checkCoordOOB: + type: boolean + dedupCoords: + type: boolean + subarray: + $ref: "#/definitions/DomainArray" + + SubarrayRanges: + description: A set of 1D ranges for a subarray + type: object + properties: + type: + $ref: "#/definitions/Datatype" + hasDefaultRange: + description: True if the range is the default range + type: boolean + buffer: + description: The bytes of the ranges + type: array + items: + type: integer + format: uint8 + + Subarray: + description: A Subarray + type: object + properties: + layout: + $ref: "#/definitions/Layout" + ranges: + description: List of 1D ranges, one per dimension + type: array + x-omitempty: true + items: + $ref: "#/definitions/SubarrayRanges" + + SubarrayPartitioner: + description: The subarray partitioner + type: object + properties: + subarray: + $ref: "#/definitions/Subarray" + budget: + description: Result size budget (in bytes) for all attributes. + type: array + x-omitempty: true + items: + $ref: "#/definitions/AttributeBufferSize" + current: + description: The current partition info + type: object + properties: + subarray: + $ref: "#/definitions/Subarray" + start: + description: PartitionInfo start + type: integer + format: uint64 + end: + description: PartitionInfo end + type: integer + format: uint64 + splitMultiRange: + description: PartitionInfo splitMultiRange + type: boolean + state: + description: The state information for the remaining partitions to be produced + type: object + properties: + start: + description: State start + type: integer + format: uint64 + end: + description: State end + type: integer + format: uint64 + singleRange: + description: State singleRange + type: array + x-omitempty: true + items: + $ref: "#/definitions/Subarray" + multiRange: + description: State multiRange + type: array + x-omitempty: true + items: + $ref: "#/definitions/Subarray" + memoryBudget: + description: The memory budget for the fixed-sized attributes and the offsets of the var-sized attributes + type: integer + format: uint64 + memoryBudgetVar: + description: The memory budget for the var-sized attributes + type: integer + format: uint64 + + ReadState: + description: state for reads + type: object + properties: + initialized: + description: True if the reader has been initialized. + type: boolean + + overflowed: + description: True if the query produced results that could not fit in some buffer. + type: boolean + + unsplittable: + description: True if the current subarray partition is unsplittable. + type: boolean + + subarrayPartitioner: + $ref: "#/definitions/SubarrayPartitioner" + + QueryReader: + description: Read struct (can't be called reader due to class name conflict) + type: object + properties: + layout: + $ref: "#/definitions/Layout" + subarray: + $ref: "#/definitions/Subarray" + readState: + description: To handle incomplete read queries. + $ref: "#/definitions/ReadState" + varOffsetsMode: + description: The offsets format (bytes or elements) to be used. + type: string + varOffsetsAddExtraElement: + description: True if an extra element will be added to the end of the offsets buffer. + type: boolean + varOffsetsBitsize: + description: The offsets bitsize (32 or 64) to be used. + type: integer + format: uint32 + + Query: + type: object + required: + - type + - attributeBufferHeaders + - layout + - status + - array + - totalFixedLengthBufferBytes + - totalVarLenBufferBytes + properties: + type: + $ref: "#/definitions/Querytype" + layout: + $ref: "#/definitions/Layout" + status: + $ref: "#/definitions/Querystatus" + attributeBufferHeaders: + description: List of attribute buffer headers + type: array + x-omitempty: true + items: + $ref: "#/definitions/AttributeBufferHeader" + writer: + description: writer contains data needed for continuation of global write order queries + $ref: "#/definitions/Writer" + reader: + description: reader contains data needed for continuation of reads + $ref: "#/definitions/QueryReader" + array: + description: Represents an open array + $ref: "#/definitions/Array" + totalFixedLengthBufferBytes: + description: Total number of bytes in fixed size attribute buffers. + type: integer + format: uint64 + totalVarLenBufferBytes: + description: Total number of bytes in variable size attribute buffers. + type: integer + format: uint64 + x-go-type: + import: + package: "github.com/TileDB-Inc/TileDB-Go" + alias: "tiledb" + type: "Query" + + NonEmptyDomain: + type: object + description: object representing a non-empty domain + required: + - nonEmptyDomain + - isEmpty + properties: + nonEmptyDomain: + description: Non Empty Domain of array + $ref: "#/definitions/DomainArray" + isEmpty: + description: Is non-empty domain really empty? + type: boolean + example: False + + AttributeBufferSize: + type: object + description: object representing buffer size of an attribute + required: + - attribute + - offsetBytes + - dataBytes + properties: + attribute: + description: name of attribute + type: string + offsetBytes: + description: buffer size (in bytes) of offset buffer + type: integer + format: uint64 + dataBytes: + description: buffer size (in bytes) of data buffer + type: integer + format: uint64 + + MaxBufferSizes: + type: object + description: a list of max buffer sizes, one per attribute + properties: + maxBufferSizes: + type: array + x-omitempty: true + items: + $ref: "#/definitions/AttributeBufferSize" + + ArrayMetadataEntry: + type: object + description: key/value pair representing an array metadata map entry + properties: + key: + type: string + type: + type: string + valueNum: + type: integer + format: uint32 + value: + type: array + items: + type: integer + format: uint8 + del: + type: boolean + + ArrayMetadata: + type: object + description: user's TileDB array metadata + properties: + entries: + description: List of metadata entries + type: array + x-omitempty: true + items: + $ref: "#/definitions/ArrayMetadataEntry" + + TileDBConfig: + description: TileDB config used for interaction with the embedded library + type: object + properties: + entries: + type: array + items: + type: object + properties: + key: + type: string + value: + type: string + + + ArrayActivityLog: + description: Actvity of an Array + type: object + properties: + event_at: + description: time event took place (RFC3339) + type: string + format: date-time + action: + description: Type of the event + $ref: "#/definitions/ActivityEventType" + username: + description: User who performed action + type: string + example: "user1" + bytes_sent: + description: Bytes sent to client + type: integer + format: uint64 + example: 1073741824 + bytes_received: + description: Bytes recieved from client + type: integer + format: uint64 + example: 1073741824 + array_task_id: + description: UUID of associated array task + type: string + example: "00000000-0000-0000-0000-000000000000" + id: + description: ID of the activity + type: string + example: "00000000-0000-0000-0000-000000000000" + query_ranges: + description: ranges for query + x-omitempty: true + type: string + example: '{"rows":[{"start": 1, "end": 1},{"start": 3, "end": 4}],"cols":[{"start": 1, "end": 4}]}' + query_stats: + description: stats for query + x-omitempty: true + type: string + example: '{"timers": {"Context.StorageManager.read_load_array_schema_from_uri.sum": 0.0255293, "...": "..."}, "counters": {"Context.StorageManager.read_unfiltered_byte_num": 191, "...": "..."}}' + + ArrayTaskType: + description: Synchronous Task Type + type: string + enum: + - SQL + - UDF + - QUERY + - GENERIC_UDF + - BATCH_UDF + - CLIENT_COMPUTATION + + ArrayTaskStatus: + description: Status of array task + type: string + enum: + - QUEUED + - FAILED + - COMPLETED + - RUNNING + - RESOURCES_UNAVAILABLE + - UNKNOWN + - CANCELLED + - DENIED # Deprecated; used to mean RESOURCES_UNAVAILABLE. + + ArrayTaskLog: + description: Array task stderr/stdout logs + type: object + properties: + array_task_id: + description: ID of associated task + type: string + logs: + description: logs from array task + type: string + + ArrayTask: + description: Synchronous Task to Run + type: object + properties: + id: + description: task ID + type: string + name: + description: Optional task name + type: string + example: "subarray-multiplier" + username: + description: username that executed this task + type: string + example: "demo" + description: + description: Optional task description (Tasks purpose) + type: string + example: "Return attr a1 in the subarray bounded by coordinates and multiply attr1 by 2" + array_metadata: + description: Metadata of the array used in the context of this task + $ref: "#/definitions/ArrayInfo" + subarray: + description: A subarray to run the array task on + $ref: "#/definitions/DomainArray" + example: + - Dim1: + Int64: 0 + 10 + Dim2: + Int64: 20 + 22 + Dim3: + Int64: 10000 + 10100 + memory: + description: memory allocated to task in bytes + type: integer + format: uint64 + example: 1073741824 + cpu: + description: millicpu allocated to task + type: integer + format: uint64 + example: 4000 + namespace: + type: string + description: namespace task is tied to + example: "organization1" + status: + description: The status of an individual task + $ref: "#/definitions/ArrayTaskStatus" + status_message: + description: The reason the array task status is in the state + type: string + x-nullable: true + x-omitempty: true + start_time: + description: Start time RFC3339 for job + type: string + format: date-time + finish_time: + description: Finish time RFC3339 for job + type: string + format: date-time + x-nullable: true + cost: + description: Total accumulated for task in USD, example is $0.12 + type: number + format: double + example: 0.12 + egress_cost: + description: Total accumulated for egress task in USD, example is $0.12 + type: number + format: double + example: 0.12 + access_cost: + description: Cost accumulated for access task in USD, example is $0.12 + type: number + format: double + example: 0.12 + query_type: + description: If task type is query, whether it's a read or write query + $ref: "#/definitions/Querytype" + udf_code: + description: Optional actual code that is going to be executed + type: string + udf_language: + description: Optional actual language used to express udf_code + type: string + sql_query: + description: Optional actual sql query that is going to be executed + type: string + type: + description: Type of task + $ref: "#/definitions/ArrayTaskType" + activity: + description: Array activity logs for task + type: array + x-omitempty: true + items: + $ref: "#/definitions/ArrayActivityLog" + logs: + description: logs from array task + type: string + x-omitempty: false + duration: + description: duration in nanoseconds of an array task + type: number + example: 341000000000 + sql_init_commands: + description: SQL queries or commands to run before main sql query + type: array + items: + type: string + description: sql query or command to run before main sql query + sql_parameters: + description: SQL query parameters + type: array + items: {} + result_format: + $ref: "#/definitions/ResultFormat" + description: type of results (native, i.e cloud pickle or json or arrow) + x-omitempty: true + task_graph_uuid: + type: string + x-omitempty: true + description: > + If set, the ID of the log for the task graph that this was part of. + client_node_uuid: + type: string + x-omitempty: true + description: > + If set, the client-defined ID of the node within this task's graph. + + PaginationMetadata: + properties: + page: + description: pagination offset. Use it to skip the first ((page - 1) * per_page) items + type: number + format: uint64 + example: 1 + per_page: + description: pagination limit (page size) + type: number + format: uint64 + example: 10 + total_pages: + description: number of total pages with current limit + type: number + format: uint64 + example: 14 + total_items: + description: number of total available items + type: number + format: uint64 + example: 138 + + ArrayTaskData: + description: Object including array tasks and metadata + type: object + properties: + array_tasks: + description: Array Tasks + type: array + x-omitempty: true + items: + $ref: "#/definitions/ArrayTask" + pagination_metadata: + $ref: "#/definitions/PaginationMetadata" + + ArrayTaskBrowserSidebar: + description: Object for ui array tasks browser page + type: object + properties: + organizations: + description: list of all unique organizations the user is part of that have array tasks + type: array + x-omitempty: false + items: + type: string + result_count_for_all: + description: A count of "all" + x-omitempty: false + type: integer + result_count_by_namespace: + description: A map that includes the result count by namespace + x-omitempty: false + additionalProperties: + type: integer + + LastAccessedArray: + type: object + description: Information related to last access of an array + properties: + array_id: + type: string + description: unique ID of array + example: "00000000-0000-0000-0000-000000000000" + array_name: + type: string + description: name of the array + example: array1 + namespace: + description: namespace of a user or organization + type: string + example: "mockuser" + accessed_time: + description: timestamp (epoch milliseconds) array is last accessed + type: number + format: uint64 + example: 1540471791873 + access_type: + description: Type of the event + $ref: "#/definitions/ActivityEventType" + + ArraySample: + type: object + description: Sample data from array + properties: + data: + additionalProperties: + type: object + + ArrayMetadataJson: + type: object + description: Metadata from array in Json format + additionalProperties: true + + NonEmptyDomainJson: + type: object + description: Non-empty domain from array in Json format + additionalProperties: true + + ArrayBrowserData: + description: Object including array info and pagination metadata + type: object + properties: + arrays: + description: Array Info + type: array + x-omitempty: true + items: + $ref: "#/definitions/ArrayInfo" + pagination_metadata: + $ref: "#/definitions/PaginationMetadata" + + ArrayEndTimestampData: + description: Object including array end_timestamps (list of Unix epoch timestamps in milliseconds) and pagination metadata + type: object + properties: + end_timestamps: + description: List of timestamps expressed in milliseconds since Unix epoch + type: array + x-omitempty: true + items: + type: integer + format: uint64 + pagination_metadata: + $ref: "#/definitions/PaginationMetadata" + + ArrayBrowserSidebar: + description: Object for ui array tasks browser page + type: object + properties: + namespaces: + description: list of all unique namespaces to display + type: array + x-omitempty: false + items: + type: string + result_count_for_all: + description: A count of "all" of category + x-omitempty: false + type: integer + result_count_by_namespace: + description: A map that includes the result count by namespace + x-omitempty: false + additionalProperties: + type: integer + + Error: + type: object + properties: + code: + type: integer + format: int64 + message: + type: string + request_id: + type: string + + User: + description: User + type: object + required: + - username + properties: + id: + type: string + description: unique ID of user + example: "00000000-0000-0000-0000-000000000000" + username: + type: string + minLength: 1 + maxLength: 63 + pattern: "^[\\w.\\-]+$" # only allows alphanumeric characters + description: username must be unique + example: "username" + password: + type: string + minLength: 8 + description: password + example: "password" + name: + description: the user's full, real name + type: string + minLength: 1 + example: "Jane Doe" + email: + description: the user's email + type: string + example: "jane.doe@example.com" + is_valid_email: + description: user's email is validated to be correct + type: boolean + readOnly: true + example: false + stripe_connect: + description: Denotes that the user is able to apply pricing to arrays by means of Stripe Connect + type: boolean + readOnly: true + example: false + company: + description: the user's company + type: string + example: TileDB + logo: + description: the user's logo + type: string + x-nullable: true + timezone: + type: string + example: Europe/Athens + organizations: + type: array + x-omitempty: true + description: Array of organizations a user is part of and their roles + readOnly: true + items: + $ref: "#/definitions/OrganizationUser" + allowed_actions: + description: list of actions user is allowed to do on this organization + type: array + x-omitempty: true + items: + $ref: "#/definitions/NamespaceActions" + enabled_features: + description: List of extra/optional/beta features to enable for namespace + type: array + x-omitempty: true + readOnly: true + items: + type: string + unpaid_subscription: + description: A notice that the user has an unpaid subscription + type: boolean + readOnly: true + x-omitempty: false + default_s3_path: + description: > + The default location to store newly-created notebooks and other assets + like UDFs. The name `default_s3_path` is a legacy holdover; it may + refer to any supported storage location. + type: string + default_s3_path_credentials_name: + description: > + The name of the credentials used to create and access files in the + `default_s3_path`, if needed. + asset_locations: + $ref: "#/definitions/AssetLocations" + default_namespace_charged: + description: Override the default namespace charged for actions when no namespace is specified + type: string + + OrganizationUser: + description: user in an organization + type: object + properties: + user_id: + type: string + description: unique ID of user + example: "00000000-0000-0000-0000-000000000000" + organization_id: + type: string + description: unique ID of organization + example: "00000000-0000-0000-0000-000000000000" + username: + description: username for user + type: string + example: "username" + organization_name: + description: name of organization + type: string + example: "MyOrganization" + role: + $ref: "#/definitions/OrganizationRoles" + allowed_actions: + description: list of actions user is allowed to do on this organization + type: array + x-omitempty: true + items: + $ref: "#/definitions/NamespaceActions" + + DomainVerificationStatus: + description: The current status of the claim on the domain. + type: string + enum: + - unverified + # A newly-registered claim which has not been verified. + - verified + # The claim has been verified and the ownership claim is active. + - grace_period + # Verification is failing, but to ensure continuity of service, + # we allow a period of failure before deactivating the claim. + - failed + # The domain verification was not found and the ownership claim + # is inactive. + + DomainCheckStatus: + description: The status of a single check on a domain's status. + type: string + enum: + - verified + # Verification was successful and the claim was found. + - failed + # Verification completed without error and the claim was not found. + - error + # An internal error occurred when performing verification. + + DomainCheckResult: + description: The record of a check of a single domain's status. + type: object + properties: + time: + type: string + format: date-time + description: The timestamp when the check was performed. + status: + $ref: '#/definitions/DomainCheckStatus' + + SSODomainConfig: + description: > + The information used to set up a single-sign on connection to a customer + domain. + type: object + properties: + uuid: + type: string + description: A server-generated ID for the configuration. + domain: + type: string + description: > + The fully-qualified domain (but with no trailing dot) to connect for + single sign-on. This may not be changed after creation. + x-nullable: true + oidc_issuer: + type: string + description: > + 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. + oidc_client_id: + type: string + description: The OpenID Connect client ID for this SSO instance. + oidc_client_secret: + type: string + description: The OpenID Connect client secret for this SSO instance. + x-go-custom-tag: 'tdbrest:"secret"' + domain_setup: + $ref: '#/definitions/SSODomainSetup' + verification_status: + $ref: '#/definitions/DomainVerificationStatus' + check_results: + description: > + A list of the results of recent attempts to verify this domain. + type: array + items: + $ref: '#/definitions/DomainCheckResult' + + SSODomainConfigResponse: + description: > + The response to a request for the list of domain claims associated with + a particular organization. + type: object + properties: + domain_configs: + type: array + items: + $ref: '#/definitions/SSODomainConfig' + + SSODomainSetup: + description: > + Configuration settings to verify ownership of a given domain. At least one + of these must be completed enable user login from the domain. + type: object + properties: + txt: + description: a DNS TXT record to set on the domain to claim. + type: string + cname_src: + description: a DNS name to set a CNAME record on + type: string + cname_dst: + description: the CNAME target of `cname_src`. + type: string + + Organization: + description: Organization + type: object + required: + - name + properties: + id: + type: string + description: unique ID of organization + example: "00000000-0000-0000-0000-000000000000" + role: + description: role of requested user within this organization + $ref: "#/definitions/OrganizationRoles" + name: + type: string + minLength: 1 + maxLength: 63 + pattern: "^[\\w.\\-]+$" # only allows alphanumeric characters + description: organization name must be unique + created_at: + description: Datetime organization was created in UTC + type: string + format: date-time + updated_at: + description: Datetime organization was updated in UTC + type: string + format: date-time + logo: + description: Organization logo + type: string + x-nullable: true + description: + description: Organization description + type: string + x-nullable: true + users: + type: array + x-omitempty: true + items: + $ref: "#/definitions/OrganizationUser" + allowed_actions: + description: list of actions user is allowed to do on this organization + type: array + x-omitempty: true + items: + $ref: "#/definitions/NamespaceActions" + num_of_arrays: + description: number of registered arrays for this organization + type: number + format: int32 + x-omitempty: false + enabled_features: + description: List of extra/optional/beta features to enable for namespace + type: array + x-omitempty: true + readOnly: true + items: + type: string + unpaid_subscription: + description: A notice that the user has an unpaid subscription + type: boolean + readOnly: true + x-omitempty: false + default_s3_path: + description: > + The default location to store newly-created notebooks and other assets + like UDFs. The name `default_s3_path` is a legacy holdover; it may + refer to any supported storage location. + type: string + default_s3_path_credentials_name: + description: > + The name of the credentials used to create and access files in the + `default_s3_path`, if needed. + type: string + asset_locations: + $ref: "#/definitions/AssetLocations" + stripe_connect: + description: Denotes that the organization is able to apply pricing to arrays by means of Stripe Connect + type: boolean + readOnly: true + example: false + + AssetLocations: + 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. + type: object + properties: + arrays: + $ref: '#/definitions/StorageLocation' + files: + $ref: '#/definitions/StorageLocation' + groups: + $ref: '#/definitions/StorageLocation' + ml_models: + $ref: '#/definitions/StorageLocation' + notebooks: + $ref: '#/definitions/StorageLocation' + task_graphs: + $ref: '#/definitions/StorageLocation' + udfs: + $ref: '#/definitions/StorageLocation' + + StorageLocation: + description: > + The path at which a given asset will be stored, and the credentials used + to access that asset. + type: object + properties: + path: + description: > + 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. + x-nullable: true + type: string + credentials_name: + description: > + 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. + x-nullable: true + type: string + + ArraySharing: + description: details for sharing a given array + type: object + properties: + actions: + description: List of permitted actions + type: array + x-omitempty: true + items: + $ref: "#/definitions/ArrayActions" + example: + - read + - write + namespace: + description: namespace being granted array access can be a user or organization + type: string + example: "MyOrganization" + namespace_type: + description: details on if the namespace is a organization or user + type: string + example: "organization" + + UDFSharing: + description: details for sharing a given UDF + type: object + properties: + actions: + description: List of permitted actions + type: array + x-omitempty: true + items: + $ref: "#/definitions/UDFActions" + example: + - fetch + - share + namespace: + description: namespace being granted array access can be a user or organization + type: string + example: "MyOrganization" + namespace_type: + description: details on if the namespace is a organization or user + type: string + example: "organization" + + FileType: + description: File types represented as TileDB arrays + type: string + enum: + # Notebook + - notebook + # UDF + - user_defined_function + # ML Model + - ml_model + # Files + - file + # Task graphs + - registered_task_graph + + AssetType: + description: Asset types represented as TileDB arrays + type: string + enum: + # Array + - array + # Notebook + - notebook + # Dashboard + - dashboard + # UDF + - user_defined_function + # ML Model + - ml_model + # Files + - file + # Task graphs + - registered_task_graph + # Groups + - group + # VCF + - vcf + # SOMA + - soma + # Point cloud + - pointcloud + # Biomedical imaging + - bioimg + # Geometry + - geometry + # Raster + - raster + # Vector search + - vector_search + + FilePropertyName: + description: File property assigned to a specific file (array) + type: string + enum: + # Image name + - image + # Size + - size + # Code block + - code_block + # UDF language + - udf_language + # Is dashboard + - is_dashboard + # version_pruning_limit + - version_pruning_limit + # version_pruning_enabled + - version_pruning_enabled + + PricingType: + description: Pricing types + type: string + enum: + # Egress pricing + - egress + # Access pricing + - access + + PricingCurrency: + description: Currency of pricing + type: string + enum: + # US Dollars + - USD + + PricingUnitLabel: + description: Unit label + type: string + enum: + # Byte + - byte + # Second + - second + + PricingAggregateUsage: + description: Specifies a usage aggregation strategy for pricings of usage_type=metered + type: string + enum: + # For summing up all usage during a period + - sum + + PricingInterval: + description: Interval for pricing + type: string + enum: + # Month + - month + + Pricing: + description: Pricing created by converting an array to product + type: object + properties: + id: + description: Unique ID of plan as defined by Stripe + type: string + example: "planID" + array_uuid: + description: Unique ID of registered array + type: string + example: "00000000-0000-0000-0000-000000000000" + pricing_name: + description: Name of pricing + type: string + pricing_type: + description: Type of pricing + $ref: "#/definitions/PricingType" + product_name: + description: Name of product + type: string + product_statement_descriptor: + description: Extra information about a product which will appear on the credit card statement of the customer + type: string + product_unit_label: + description: A label that represents units of this product in Stripe and receipts and invoices of the customer + $ref: "#/definitions/PricingUnitLabel" + currency: + description: Currency of pricing + $ref: "#/definitions/PricingCurrency" + aggregate_usage: + description: Specifies a usage aggregation strategy for pricings of usage_type=metered + $ref: "#/definitions/PricingAggregateUsage" + interval: + description: The frequency with which a subscription should be billed + $ref: "#/definitions/PricingInterval" + divided_by: + description: Group of n product unit labels + type: integer + format: int64 + example: 1048576 + charge: + description: Price in cents (decimal) per unitlabel + type: number + format: double + activated: + description: If pricing is activated + type: boolean + example: false + + Subscription: + description: Subscription of a user (customer) to another user's arrays + type: object + properties: + id: + description: Unique ID of subscription as defined by Stripe + type: string + example: "subscriptionID" + owner_namespace_uuid: + description: Unique ID of the array (product) owner + type: string + example: "00000000-0000-0000-0000-000000000000" + customer_namespace_uuid: + description: Unique ID of the array (product) user (customer) + type: string + example: "00000000-0000-0000-0000-000000000000" + pricing: + description: list of pricing used by this subscription + type: array + x-omitempty: true + items: + $ref: "#/definitions/Pricing" + + ArrayInfo: + description: metadata of an array + type: object + properties: + id: + description: unique ID of registered array + type: string + example: "00000000-0000-0000-0000-000000000000" + file_type: + description: File type stored /wrapped by this array + x-omitempty: true + $ref: "#/definitions/FileType" + file_properties: + type: object + description: map of file properties created for this array + x-omitempty: true + additionalProperties: + type: string + uri: + description: uri of array + type: string + example: "s3://bucket/array" + namespace: + description: namespace array is in + type: string + example: "user1" + size: + description: size in bytes of array + type: number + format: uint64 + example: 1024 + x-nullable: true + last_accessed: + description: Datetime array was last accessed in UTC + type: string + format: date-time + description: + description: description of array + type: string + x-nullable: true + name: + description: name of array + type: string + example: myarray1 + allowed_actions: + description: list of actions user is allowed to do on this array + type: array + x-omitempty: true + items: + $ref: "#/definitions/ArrayActions" + pricing: + description: list of pricing created for this array + type: array + x-omitempty: true + items: + $ref: "#/definitions/Pricing" + subscriptions: + description: list of subscriptions created for this array + type: array + x-omitempty: true + items: + $ref: "#/definitions/Subscription" + logo: + description: logo (base64 encoded) for the array. Optional + type: string + access_credentials_name: + description: the name of the access credentials to use. if unset, the default credentials will be used + type: string + type: + description: Array type (dense, key-value, sparse). Calculation of array type runs after array has been registered. So, it is not available immediately. + example: sparse + x-nullable: true + $ref: "#/definitions/ArrayType" + share_count: + description: number of unique namespaces this array is shared with + type: number + format: int32 + public_share: + description: Suggests if the array was shared to public by owner + type: boolean + x-omitempty: false + example: true + namespace_subscribed: + description: Depends on the namespace asking, denotes the existence of subscription of namespace to this array + type: boolean + readOnly: true + example: false + tiledb_uri: + description: uri for access through TileDB cloud + type: string + x-omitempty: false + tags: + description: optional tags for array + x-omitempty: false + type: array + items: + type: string + description: tag must be lowercase characters or hypen [a-z-] + license_id: + type: string + x-omitempty: true + description: License identifier from SPDX License List or Custom + license_text: + type: string + x-omitempty: true + description: License text + read_only: + description: Suggests if the array is in read_only mode + type: boolean + x-nullable: true + example: false + is_favorite: + description: Indicates whether the array is in user favorites + type: boolean + x-omitempty: true + example: true + + ArrayInfoUpdate: + description: metadata of an array + type: object + properties: + description: + description: description of array + type: string + x-nullable: true + name: + description: description of array + type: string + example: myarray1 + uri: + description: uri of array + type: string + example: "s3://bucket/array" + file_type: + description: File type stored /wrapped by this array + x-omitempty: true + $ref: "#/definitions/FileType" + file_properties: + type: object + description: map of file properties created for this array + x-omitempty: true + additionalProperties: + type: string + access_credentials_name: + description: the name of the access credentials to use. if unset, the default credentials will be used + type: string + logo: + description: logo (base64 encoded) for the array. Optional + type: string + tags: + description: optional tags for array + x-omitempty: false + type: array + items: + type: string + description: tag must be lowercase characters or hypen [a-z-] + license_id: + type: string + x-omitempty: true + description: License identifier from SPDX License List or Custom + license_text: + type: string + x-omitempty: true + description: License text + read_only: + description: Suggests if the array is in read_only mode + type: boolean + x-omitempty: true + example: true + + TokenRequest: + description: A request from a user for an api token + type: object + properties: + expires: + description: Expiration date for token, if empty token defaults to 30 minutes + type: string + format: date-time + example: 2018-12-31T12:13:14Z + name: + description: Optional name for token, if the name already exists for the user it will be auto incremented (i.e. myToken-1) + type: string + example: myToken + scope: + description: "Optional scope to limit token, defaults to all permissions, current supported values are password_reset or *" + type: array + items: + $ref: "#/definitions/TokenScope" + + Token: + description: A api token and its metadata + type: object + properties: + token: + description: A api token + type: string + name: + description: Name of token to revoke + type: string + issued_at: + description: datetime the token was created + type: string + format: date-time + expires_at: + description: datetime the token when token will expire + type: string + format: date-time + scope: + description: Optional scope to limit token, defaults to all permissions, current supported values are password_reset or * + type: array + items: + $ref: "#/definitions/TokenScope" + + AWSAccessCredentials: + description: Model representing aws keys or service role, service roles are currently ignored, but will be preferred option in the future + type: object + properties: + secret_access_key: + type: string + description: aws secret access key, never returned in get requests + access_key_id: + type: string + description: aws access key + service_role_arn: + type: string + description: aws service role to use for access + name: + type: string + description: human readable name + default: + type: boolean + description: true if this is the default credential to be used within this namespace + x-omitempty: true + buckets: + description: a whitelist of one or more buckets this key should access + type: array + x-omitempty: true + items: + type: string + description: A bucket or path of a bucket that is granted access by these credentials + example: "s3://company-bucket-1/tiledb/" + created_at: + description: Time when UDF dependencies were created (rfc3339) + type: string + format: date-time + readOnly: true + updated_at: + description: Time when UDF dependencies was last updated (rfc3339) + type: string + format: date-time + readOnly: true + + SSOProvider: + description: Single sign on provider + type: string + enum: + # Github + - github + # Google + - google + # Stripe + - stripe + # Okta + - okta + + PublicShareFilter: + description: Query parameter to get array metadatas + type: string + enum: + # Exclude + - exclude + # Only + - only + + DimensionCoordinate: + description: A single, typed coordinate for a dimension + type: object + properties: + int8: + type: integer + format: int8 + x-omitempty: false + uint8: + type: integer + format: uint8 + x-omitempty: false + int16: + type: integer + format: int16 + x-omitempty: false + uint16: + type: integer + format: uint16 + x-omitempty: false + int32: + type: integer + format: int32 + x-omitempty: false + uint32: + type: integer + format: uint32 + x-omitempty: false + int64: + type: integer + format: int64 + x-omitempty: false + uint64: + type: integer + format: uint64 + x-omitempty: false + float32: + type: number + format: float + x-omitempty: false + float64: + type: number + format: double + x-omitempty: false + + UDFSubarrayRange: + description: A dimension range to query + type: object + properties: + dimension_id: + type: integer + description: The dimension index + x-omitempty: false + range_start: + $ref: "#/definitions/DimensionCoordinate" + description: The range start index + x-omitempty: false + range_end: + $ref: "#/definitions/DimensionCoordinate" + description: The range end index + x-omitempty: false + + UDFSubarray: + description: Subarray bounds to query for a UDF to operate on + type: object + properties: + layout: + $ref: "#/definitions/Layout" + ranges: + description: List of ranges, + type: array + items: + $ref: "#/definitions/UDFSubarrayRange" + + QueryRanges: + description: Subarray bounds to query + type: object + properties: + layout: + $ref: "#/definitions/Layout" + ranges: + description: List of ranges, + type: array + x-omitempty: true + items: + type: array + x-omitempty: true + items: + type: number + + QueryJson: + description: Query returning results as JSON + type: object + properties: + query_ranges: + description: ranges to run against, generic format + $ref: "#/definitions/QueryRanges" + fields: + description: List of fields to return data from, empty means return data for all fields + type: array + x-omitempty: true + items: + type: string + x-omitempty: true + + GenericUDF: + description: User-defined function + type: object + properties: + udf_info_name: + type: string + description: name of UDFInfo to run, format is {namespace}/{udf_name}. Can not be used with exec + example: TileDB-Inc/csv_ingestor + language: + $ref: "#/definitions/UDFLanguage" + description: UDF language + version: + type: string + description: Type-specific version + image_name: + type: string + description: Docker image name to use for UDF + x-omitempty: true + access_credentials_name: + description: The name of the access credentials to use. if unset, no credentials will be configured in the environment. + type: string + resource_class: + type: string + description: > + 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. + x-omitempty: true + example: standard + exec: + type: string + description: Type-specific executable text + exec_raw: + type: string + x-omitempty: true + description: optional raw text to store of serialized function, used for showing in UI + argument: + type: string + description: Argument(s) to pass to UDF function, tuple or list of args/kwargs which can be in native or JSON format + x-omitempty: true + stored_param_uuids: + type: array + items: + type: string + example: 229f38c4-ba89-43d6-ab88-bae3bcca7969 + description: '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 {}.' + result_format: + $ref: "#/definitions/ResultFormat" + description: type of results (native, i.e cloud pickle or json or arrow) + x-omitempty: true + task_name: + description: name of task, optional + type: string + store_results: + description: store results for later retrieval + type: boolean + timeout: + description: "UDF-type timeout in seconds (default: 900)" + type: integer + dont_download_results: + description: '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").' + type: boolean + task_graph_uuid: + type: string + x-omitempty: true + description: > + If set, the ID of the log for the task graph that this was part of. + client_node_uuid: + type: string + x-omitempty: true + description: > + If set, the client-defined ID of the node within this task's graph. + + UDFArrayDetails: + description: Contains array details for multi-array query including uri, ranges buffers + type: object + properties: + parameter_id: + description: > + 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. + type: string + x-nullable: true + x-omitempty: true + uri: + description: array to set ranges and buffers on, must be in tiledb:// format + type: string + ranges: + description: ranges to run against, generic format + $ref: "#/definitions/QueryRanges" + buffers: + description: List of buffers to fetch (attributes + dimensions) + type: array + x-omitempty: true + items: + type: string + + MultiArrayUDF: + description: User-defined function + type: object + properties: + udf_info_name: + type: string + description: name of UDFInfo to run, format is {namespace}/{udf_name}. Can not be used with exec + example: TileDB-Inc/quickstart_median + language: + $ref: "#/definitions/UDFLanguage" + description: UDF language + version: + type: string + description: Type-specific version + image_name: + type: string + description: Docker image name to use for UDF + x-omitempty: true + access_credentials_name: + description: The name of the access credentials to use. if unset, no credentials will be configured in the environment. + type: string + resource_class: + type: string + description: > + 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. + x-omitempty: true + example: standard + exec: + type: string + description: Type-specific executable text + exec_raw: + type: string + x-omitempty: true + description: optional raw text to store of serialized function, used for showing in UI + result_format: + $ref: "#/definitions/ResultFormat" + task_name: + description: name of task, optional + type: string + argument: + type: string + description: > + 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 + x-omitempty: true + arguments_json: + type: array + description: > + 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. + items: + $ref: "#/definitions/TGUDFArgument" + x-nullable: true + stored_param_uuids: + type: array + items: + type: string + description: '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 {}.' + store_results: + description: store results for later retrieval + type: boolean + dont_download_results: + description: '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").' + type: boolean + ranges: + description: ranges to run against, generic format. Deprecated please set arrays with UDFArrayDetails + $ref: "#/definitions/QueryRanges" + subarray: + $ref: "#/definitions/UDFSubarray" + description: Subarray ranges to query. This is deprecated. For single-array UDF, please use `ranges` in `MultiArrayUDF`; for multi-array UDF, please use `ranges` in `UDFArrayDetails`. + buffers: + description: List of buffers to fetch (attributes + dimensions). Deprecated; please set arrays with `UDFArrayDetails`. + type: array + x-omitempty: true + items: + type: string + arrays: + description: Array ranges/buffer into to run UDF on + type: array + x-omitempty: false + items: + $ref: "#/definitions/UDFArrayDetails" + timeout: + description: "UDF-type timeout in seconds (default: 900)" + type: integer + task_graph_uuid: + type: string + x-omitempty: true + description: > + If set, the ID of the log for the task graph that this was part of. + client_node_uuid: + type: string + x-omitempty: true + description: > + If set, the client-defined ID of the node within this task's graph. + + UDFImage: + description: Defines a set of images related to a specific name + type: object + properties: + id: + description: Unique ID of set of images + type: string + example: "00000000-0000-0000-0000-000000000000" + name: + type: string + description: name of UDF + language: + $ref: "#/definitions/UDFLanguage" + description: UDF language + + UDFImageVersion: + description: Defines an image that belongs to a set of images having a version + type: object + properties: + id: + description: Unique ID of a versioned image + type: string + example: "00000000-0000-0000-0000-000000000000" + name: + type: string + description: name of UDFImageVersion + udf_image_uuid: + description: Unique ID of the UDF image set + type: string + x-omitempty: false + example: "00000000-0000-0000-0000-000000000000" + docker_image: + type: string + description: Uri of docker image related to current entry + version: + description: Image-specific version + type: number + format: uint64 + example: 2 + default: + description: If current image is default version + type: boolean + example: true + latest: + description: If current image is latest version + type: boolean + example: true + + UDFInfoUpdate: + description: User-defined function that can persist in db, used and shared multiple times + type: object + properties: + name: + type: string + description: name of UDF + language: + $ref: "#/definitions/UDFLanguage" + description: UDF language + version: + type: string + description: Type-specific version + image_name: + type: string + description: Docker image name to use for UDF + x-omitempty: true + type: + $ref: "#/definitions/UDFType" + description: UDF type + exec: + type: string + description: Type-specific executable text + exec_raw: + type: string + x-omitempty: true + description: optional raw text to store of serialized function, used for showing in UI + readme: + type: string + description: Markdown readme of UDFs + license_id: + type: string + x-omitempty: true + description: License identifier from SPDX License List or Custom + license_text: + type: string + x-omitempty: true + description: License text + tags: + description: optional tags for UDF + x-omitempty: false + type: array + items: + type: string + description: tag must be lowercase characters or hypen [a-z-] + + UDFInfo: + description: User-defined function that can persist in db, used and shared multiple times + type: object + properties: + id: + description: Unique ID of UDF + type: string + example: "00000000-0000-0000-0000-000000000000" + name: + type: string + description: name of UDF + language: + $ref: "#/definitions/UDFLanguage" + description: UDF language + type: + $ref: "#/definitions/UDFType" + description: UDF type + readme: + type: string + description: Markdown readme of UDFs + license_id: + type: string + x-omitempty: true + description: License identifier from SPDX License List or Custom + license_text: + type: string + x-omitempty: true + description: License text + tags: + description: optional tags for UDF + x-omitempty: false + type: array + items: + type: string + description: tag must be lowercase characters or hypen [a-z-] + + SQLParameters: + description: Parameters for running sql query + type: object + properties: + name: + description: name of task, optional + type: string + query: + description: query to run + type: string + output_uri: + type: string + description: Output array uri + example: "s3://my_bucket/my_output_array" + store_results: + description: store results for later retrieval + type: boolean + dont_download_results: + description: '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").' + type: boolean + resource_class: + type: string + description: > + 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. + x-omitempty: true + example: standard + result_format: + $ref: "#/definitions/ResultFormat" + description: type of results (native, i.e cloud pickle or json or arrow) + x-omitempty: tru + init_commands: + description: Queries or commands to run before main query + type: array + items: + type: string + description: sql query or command to run before main sql query + parameters: + description: SQL query parameters + type: array + items: {} + task_graph_uuid: + type: string + x-omitempty: true + description: > + If set, the ID of the log for the task graph that this was part of. + client_node_uuid: + type: string + x-omitempty: true + description: > + If set, the client-defined ID of the node within this task's graph. + + NotebookStatus: + description: Status details of a notebook server + type: object + properties: + namespace: + description: namespace of notebook + type: string + uptime: + description: duration notebook has been running in seconds + type: integer + format: uint64 + example: 120 + cpu_usage: + description: current cpu usage in millicpu + type: integer + format: uint64 + example: 4000 + gpu_usage: + description: gpu usage in milligpu + type: integer + format: uint64 + example: 4000 + memory_usage: + description: memory usage in bytes + type: integer + format: uint64 + example: 1073741824 + gpu_limit: + description: gpu limit in milligpu + type: integer + format: uint64 + example: 1073741824 + memory_limit: + description: memory allocated to notebook server in bytes + type: integer + format: uint64 + example: 1073741824 + storage_usage: + description: storage usage in bytes + type: integer + format: uint64 + example: 1073741824 + storage_limit: + description: storage allocated to notebook server in bytes + type: integer + format: uint64 + example: 1073741824 + cpu_count: + description: millicpu allocated to notebook server + type: integer + format: uint64 + example: 4000 + cost: + description: cost in USD for the current notebook session + x-omitempty: true + x-nullable: true + type: number + format: double + example: 0.27 + + ArrayFavorite: + description: A user-favorite array item + type: object + properties: + array_uuid: + description: unique UUID of the array + type: string + namespace: + description: the namespace of the array + type: string + name: + description: the name of the array + type: string + + ArrayFavoritesData: + description: Object including array favorites and pagination metadata + type: object + properties: + arrays: + description: List of array infos + type: array + x-omitempty: false + items: + $ref: "#/definitions/ArrayInfo" + pagination_metadata: + $ref: "#/definitions/PaginationMetadata" + + NotebookFavorite: + description: A user-favorite notebook item + type: object + properties: + notebook_uuid: + description: unique UUID of the notebook + type: string + namespace: + description: the namespace of the notebook + type: string + name: + description: the name of the notebook + type: string + + NotebookFavoritesData: + description: Object including notebook favorites and pagination metadata + type: object + properties: + notebooks: + description: List of notebook infos + type: array + x-omitempty: false + items: + $ref: "#/definitions/ArrayInfo" + pagination_metadata: + $ref: "#/definitions/PaginationMetadata" + + UDFFavorite: + description: A user-favorite UDF item + type: object + properties: + udf_uuid: + description: unique UUID of the UDF + type: string + namespace: + description: the namespace of the UDF + type: string + name: + description: the name of the UDF + type: string + + UDFFavoritesData: + description: Object including UDF favorites and pagination metadata + type: object + properties: + udfs: + description: List of UDF infos + type: array + x-omitempty: false + items: + $ref: "#/definitions/ArrayInfo" + pagination_metadata: + $ref: "#/definitions/PaginationMetadata" + + MLModelFavorite: + description: A user-favorite MLModel item + type: object + properties: + mlmodel_uuid: + description: unique UUID of the MLModel + type: string + namespace: + description: the namespace of the MLModel + type: string + name: + description: the name of the MLModel + type: string + + MLModelFavoritesData: + description: Object including MLModel favorites and pagination metadata + type: object + properties: + mlmodels: + description: List of MLModel infos + type: array + x-omitempty: false + items: + $ref: "#/definitions/ArrayInfo" + pagination_metadata: + $ref: "#/definitions/PaginationMetadata" + + InvitationType: + description: List of values that InvitationType can take + type: string + enum: + # Array share + - ARRAY_SHARE + # Group share + - GROUP_SHARE + # Join Organization + - JOIN_ORGANIZATION + + InvitationStatus: + description: List of values that InvitationStatus can take + type: string + enum: + # Pending + - PENDING + # Accepted + - ACCEPTED + + InvitationArrayShareEmail: + description: Encapsulates information regarding inviting people using email to share array, same permissions for all invitees + type: object + required: + - actions + - invitee_email + properties: + actions: + description: List of permitted actions + type: array + items: + $ref: "#/definitions/ArrayActions" + example: + - read + - write + invitee_email: + type: array + x-omitempty: true + items: + type: string + + InvitationFailedRecipients: + description: Encapsulates information regarding the failed invitation recipients + type: object + required: + - failed_recipients + properties: + failed_recipients: + type: array + x-omitempty: true + items: + type: string + + InvitationGroupShareEmail: + description: Encapsulates information regarding inviting people using email to share group, same permissions for all invitees + type: object + required: + - array_actions + - group_actions + - invitee_email_or_name + properties: + array_actions: + description: List of permitted array actions + type: array + items: + $ref: "#/definitions/ArrayActions" + example: + - read + - write + group_actions: + description: List of permitted group actions + type: array + items: + $ref: "#/definitions/GroupActions" + example: + - read + - write + invitee_email_or_name: + type: array + x-omitempty: true + items: + type: string + + InvitationOrganizationJoinEmail: + description: Encapsulates information regarding inviting people using email to join organization, same permissions for all invitees + type: object + required: + - invitee_email + - organization_role + properties: + actions: + description: List of permitted actions + type: array + items: + $ref: "#/definitions/NamespaceActions" + example: + - read + - write + organization_role: + description: Role of the invited namespace in the joined organization + $ref: "#/definitions/OrganizationRoles" + x-omitempty: false + invitee_email: + type: array + x-omitempty: true + items: + type: string + + Invitation: + description: Invitations to share or collaborate + type: object + properties: + id: + description: Unique ID of invitation added to magic link + type: string + example: "00000000-0000-0000-0000-000000000000" + invitation_type: + description: Type of invitation + $ref: "#/definitions/InvitationType" + example: array_share + x-omitempty: false + owner_namespace_uuid: + description: Namespace of the owner of the invitation (user or organization) + type: string + example: "00000000-0000-0000-0000-000000000000" + inviter_uuid: + description: Unique ID of the user that sent the invitation + type: string + example: "00000000-0000-0000-0000-000000000000" + user_namespace_uuid: + description: Unique ID of the user accepted the invitation + type: string + x-omitempty: false + example: "00000000-0000-0000-0000-000000000000" + organization_user_uuid: + description: Unique ID of the organization user accepted the invitation + type: string + x-omitempty: false + example: "00000000-0000-0000-0000-000000000000" + organization_name: + description: Name of the organization, does not persist in database + type: string + example: "organization_name" + organization_role: + description: Role of the invited namespace in the joined organization + $ref: "#/definitions/OrganizationRoles" + x-omitempty: false + organization_uuid: + description: Unique ID of the organization whose user(s) accepted the invitation + type: string + x-omitempty: false + example: "00000000-0000-0000-0000-000000000000" + array_uuid: + description: Unique ID of the array + type: string + x-omitempty: false + example: "00000000-0000-0000-0000-000000000000" + group_uuid: + description: Unique ID of the group + type: string + x-omitempty: false + example: "00000000-0000-0000-0000-000000000000" + array_name: + description: Name of the array, does not persist in database + type: string + example: "array_name" + email: + description: Email of the individual we send the invitation to + type: string + example: "jane@doe.com" + actions: + description: A comma separated list of ArrayActions or NamespaceActions + type: string + example: "read,write" + group_actions: + description: A comma separated list of GroupActions + type: string + example: "read,write" + status: + description: Status of invitation + $ref: "#/definitions/InvitationStatus" + example: PENDING + x-omitempty: false + created_at: + description: Datetime the invitation was created in UTC + type: string + format: date-time + x-omitempty: false + expires_at: + description: Datetime the invitation is expected to expire in UTC + type: string + format: date-time + x-omitempty: false + accepted_at: + description: Datetime the invitation was accepted in UTC + type: string + format: date-time + x-omitempty: false + namespace_invited: + description: The namespace invited (user or organization, if it exists in the DB) + type: string + x-omitempty: true + + InvitationData: + description: Object including invitations and metadata + type: object + properties: + invitations: + description: List of invitations + type: array + x-omitempty: true + items: + $ref: "#/definitions/Invitation" + pagination_metadata: + $ref: "#/definitions/PaginationMetadata" + + TokenScope: + description: An api token scope available for creation + type: string + enum: + - password_reset + - confirm_email + - "*" + - user:read + - user:read-write + - user:admin + - array:read + - array:read-write + - array:admin + - organization:read + - organization:read-write + - organization:admin + - group:read + - group:read-write + - group:admin + + FileCreate: + description: Input/Output information required to create a new file + type: object + properties: + input_uri: + type: string + description: storage URI of the input file + output_uri: + type: string + description: output location of the TileDB File + name: + type: string + description: name to set for registered file + + FileCreated: + description: Created file name and information + type: object + properties: + output_uri: + type: string + description: output location of the TileDB File + file_name: + type: string + description: name of the file created + + FileUploaded: + description: Uploaded file name and information + type: object + required: + - id + properties: + output_uri: + type: string + description: output location of the TileDB File + file_name: + type: string + description: name of the file uploaded + id: + description: unique ID of the uploaded file + type: string + example: "00000000-0000-0000-0000-000000000000" + x-omitempty: false + + FileExport: + description: Output information required to export a file + type: object + properties: + output_uri: + type: string + description: output location of the TileDB File + + FileExported: + description: Output uri of the exported file + type: object + properties: + output_uri: + type: string + description: output location of the exported file + + NotebookCopy: + description: Output information required to copy a notebook + type: object + properties: + output_uri: + type: string + description: output location of the TileDB File + name: + type: string + description: name to set for registered notebook + namespace: + type: string + description: namespace to copy to + + NotebookCopied: + description: Copied notebook uri and information + type: object + required: + - id + properties: + output_uri: + type: string + description: output location of the TileDB Notebook + name: + type: string + description: name of the notebook created + namespace: + type: string + description: namespace copied to + id: + description: unique ID of the copied notebook + type: string + example: "00000000-0000-0000-0000-000000000000" + x-omitempty: false + + UDFCopy: + description: information required to copy a udf + type: object + properties: + output_uri: + type: string + description: output location of the TileDB File + namespace: + type: string + description: namespace to register the copy. If empty use the namespace of the request user + name: + type: string + description: name to set for the copy. If empty use the name as the original udf, if it not already used in the namespace + + UDFCopied: + description: Copied udf uri and information + type: object + required: + - id + properties: + output_uri: + type: string + description: output location of the TileDB udf + namespace: + type: string + description: namespace of the copied udf + name: + type: string + description: name of the copied udf + id: + description: unique ID of the copied udf + type: string + example: "00000000-0000-0000-0000-000000000000" + x-omitempty: false + + GroupActions: + description: actions a user can take on a group + type: string + enum: + # Read: read contents + - read + # Write: add a new asset + - write + # Edit: update attributes, add and remove assets + - edit + + GroupType: + description: Group type is a hint for the groups contents and TileDB Cloud may use a specialized viewer for each type + type: string + enum: + # Generic + - generic + # VCF + - vcf + # SOMA + - soma + # Biomedical Imaing + - bioimg + # Point Cloud + - pointcloud + # Raster + - raster + # Geometry + - geometry + # Vector search + - vector_search + + GroupTypeMetadataKey: + description: A group type is stored in the group metadata using this key + type: string + enum: + - dataset_type + + GroupInfo: + description: metadata of a group + type: object + properties: + id: + description: unique ID of registered group + type: string + example: "00000000-0000-0000-0000-000000000000" + namespace: + description: namespace group is in + type: string + example: "user1" + name: + description: name of group + type: string + example: myarray1 + description: + description: description of group + type: string + x-nullable: true + uri: + description: uri of group + type: string + example: "s3://bucket/asset" + tiledb_uri: + description: uri for access through TileDB cloud + type: string + x-omitempty: false + asset_count: + description: A count of direct array members + type: number + format: int32 + example: 12 + x-omitempty: false + group_count: + description: A count of direct group members + type: number + format: int32 + example: 4 + x-omitempty: false + size: + description: A count of direct members. This is the sum of asset_count and group_count + type: number + format: int32 + example: 16 + x-omitempty: false + last_accessed: + description: Datetime groups was last accessed in UTC + type: string + format: date-time + allowed_actions: + description: list of actions user is allowed to do on this group + type: array + x-omitempty: true + items: + $ref: "#/definitions/GroupActions" + group_type: + description: the type of the group + $ref: "#/definitions/GroupType" + x-omitempty: true + logo: + description: logo (base64 encoded) for the gruop. Optional + type: string + access_credentials_name: + description: the name of the access credentials to use. if unset, the default credentials will be used + type: string + share_count: + description: number of unique namespaces this group is shared with + type: number + format: int32 + public_share: + description: Suggests if the group was shared to public by owner + type: boolean + x-omitempty: false + example: true + tags: + description: optional tags for group + x-omitempty: false + type: array + items: + type: string + description: tag must be lowercase characters or hypen [a-z-] + license_id: + type: string + x-omitempty: true + description: License identifier from SPDX License List or Custom + license_text: + type: string + x-omitempty: true + description: License text + + GroupEntry: + description: Object describing a single member of a group, which can be an array or a group + type: object + properties: + member_id: + type: string + readOnly: true + description: The unique member id for the entry + group: + description: the metadata of the entry if it is a group, null if it is an array + $ref: "#/definitions/GroupInfo" + array: + description: the metadata of the entry if it is an array, null if it is a group + $ref: "#/definitions/ArrayInfo" + + GroupContents: + description: Object including a page of members of a group and pagination metadata + type: object + properties: + entries: + description: Groups members + type: array + x-omitempty: false + items: + $ref: "#/definitions/GroupEntry" + pagination_metadata: + $ref: "#/definitions/PaginationMetadata" + + GroupBrowserData: + description: Object including group info and pagination metadata + type: object + properties: + groups: + description: Groups Info + type: array + x-omitempty: false + items: + $ref: "#/definitions/GroupInfo" + pagination_metadata: + $ref: "#/definitions/PaginationMetadata" + + GroupBrowserFilterData: + description: Object with data to fill browser filter + type: object + properties: + namespaces: + description: list of all unique namespaces to display + type: array + x-omitempty: false + items: + type: string + group_types: + description: list of all available group types to display + type: array + x-omitempty: false + items: + $ref: "#/definitions/GroupType" + + GroupContentsFilterData: + description: Object with data to fill contents filter + type: object + properties: + namespaces: + description: list of all unique namespaces to display + type: array + x-omitempty: false + items: + type: string + + GroupCreate: + description: Initial attributes for the creation of a group. + type: object + properties: + description: + description: A human readable description of the contents of the group. + type: string + name: + description: The name of the group. If must be unique within the group. + type: string + parent: + description: The unique name or id of the parent of the group. If empty, then the new group will be a top level group. + type: string + uri: + description: uri of group. + type: string + x-omitempty: false + logo: + description: logo (base64 encoded) for the group. Optional + type: string + access_credentials_name: + description: the name of the access credentials to use. if unset, the default credentials will be used. + type: string + tags: + description: optional tags for groups. + x-omitempty: false + type: array + items: + type: string + description: tag must be lowercase characters or hypen [a-z-]. + license_id: + type: string + x-omitempty: true + description: License identifier from SPDX License List or Custom. + license_text: + type: string + x-omitempty: true + description: License text + + GroupRegister: + description: Initial attributes for the registration of a an existing group. + type: object + properties: + description: + description: A human readable description of the contents of the group. + type: string + name: + description: The name of the group. If must be unique within the group. + type: string + parent: + description: The unique name or id of the parent of the group. If empty, then the new group will be a top level group. + type: string + uri: + description: uri of group. + type: string + x-omitempty: false + logo: + description: logo (base64 encoded) for the group. Optional + type: string + access_credentials_name: + description: the name of the access credentials to use. if unset, the default credentials will be used. + type: string + tags: + description: optional tags for groups. + x-omitempty: false + type: array + items: + type: string + description: tag must be lowercase characters or hypen [a-z-]. + license_id: + type: string + x-omitempty: true + description: License identifier from SPDX License List or Custom. + license_text: + type: string + x-omitempty: true + description: License text + + GroupUpdate: + description: Updates for a group. New values for the attributes. + type: object + properties: + description: + description: A human readable description of the content of the group + type: string + x-nullable: true + name: + description: The name of the group. If must be unique within the group. + type: string + logo: + description: logo (base64 encoded) for the group. Optional + type: string + access_credentials_name: + description: the name of the access credentials to use. if unset, the default credentials will be used + type: string + tags: + description: optional tags for groups + x-omitempty: false + type: array + items: + type: string + description: tag must be lowercase characters or hypen [a-z-] + license_id: + type: string + x-omitempty: true + description: License identifier from SPDX License List or Custom + license_text: + type: string + x-omitempty: true + description: License text + + GroupMemberType: + description: File types that can be included in groups + type: string + enum: + # Group + - group + # Array + - array + + GroupMemberAssetType: + description: Specific file types of group members + type: string + enum: + # Group + - group + # Array + - array + # Notebook + - notebook + # Dashboard + - dashboard + # UDF + - user_defined_function + # ML Model + - ml_model + # Files + - file + # Biomedical Imaging + - bioimg + # SOMA + - soma + # VCF + - vcf + # Point Cloud + - pointcloud + # Raster + - raster + # Geometry + - geometry + # Vector search + - vector_search + + GroupMember: + description: A groups member, array or another groups, to add or remove from an existing group. + type: object + properties: + namespace: + description: The namespace of the asset. + type: string + name: + description: The name or id of the asset. + type: string + member_type: + $ref: "#/definitions/GroupMemberType" + + GroupChanges: + description: A request to change the members of a group. Contains assets to add or remove. + type: object + properties: + add: + description: the assets, arrays or groups, to add to the group. + type: array + items: + $ref: "#/definitions/GroupMember" + remove: + description: the assets, arrays or groups, to remove from the group. + type: array + items: + $ref: "#/definitions/GroupMember" + + GroupSharing: + description: sharing state of a group with a namespace + type: object + properties: + group_actions: + description: List of permitted actions for the group and all subgroups + type: array + x-omitempty: true + items: + $ref: "#/definitions/GroupActions" + example: + - read + - write + array_actions: + description: List of permitted actions for all the subarrays of the group + type: array + x-omitempty: true + items: + $ref: "#/definitions/ArrayActions" + example: + - read + - write + namespace: + description: namespace being granted group access can be a user or organization + type: string + example: "MyOrganization" + namespace_type: + description: details on if the namespace is a organization or user + type: string + example: "organization" + + GroupSharingRequest: + description: a request to share a group and all the contents with a namespace + type: object + properties: + group_actions: + description: List of permitted actions for the group and all subgroups + type: array + x-omitempty: true + items: + $ref: "#/definitions/GroupActions" + example: + - read + - write + array_actions: + description: List of permitted actions for all the subarrays of the group + type: array + x-omitempty: true + items: + $ref: "#/definitions/ArrayActions" + example: + - read + - write + namespace: + description: namespace being granted group access can be a user or organization + type: string + example: "MyOrganization" + + GroupActivity: + description: Object containing activity of an asset of a group + type: object + properties: + asset: + description: The asset details + type: object + properties: + id: + description: The asset ID + type: string + name: + description: The asset name + type: string + namespace: + description: The namespace that the asset belongs to + type: string + asset_type: + description: The type of the asset + $ref: "#/definitions/AssetType" + activity_log: + description: Object containing the activity log + $ref: "#/definitions/ArrayActivityLog" + + GroupActivityResponse: + description: Object containing activity logs of group content along with the pagination metadata + type: object + properties: + activity: + description: Activity of a group's content + type: array + x-omitempty: false + x-nullable: false + items: + $ref: "#/definitions/GroupActivity" + pagination_metadata: + x-omitempty: false + x-nullable: false + $ref: "#/definitions/PaginationMetadata" + + # + # Task graph messages + # + + # Task graph logs + + TaskGraphLogRunLocation: + description: > + The location where an individual node of a task graph is executed. + type: string + enum: + - server + # The node is executed server-side. This node will appear in the + # ArrayTask logs. + - client + # The node is executed client-side. This node will NOT appear in the + # ArrayTask logs since no action will have been performed. + - virtual + # The node is not executed at all. This node represents an input or + # other node that is a component of the graph but is not a true step + # that actually executes code. + + TaskGraphLogStatus: + description: The status of a given task graph execution. + type: string + enum: + - submitted + # The task graph has been submitted, but no tasks have been run. + # This should not be reported by the client. + - running + # Some task in the graph is currently running. + # This should not be reported by the client. + - idle + # The graph is not yet completed, but nothing is actively running. + # This should not be reported by the client. + - abandoned + # The graph has been idle for an extended period of time, likely due to + # the client crashing or aborting without notifying the server. + # Semantically this is equivalent to `idle`. + - succeeded + # The client has declared that the task graph has completed + # successfully. This ordinarily entails all nodes succeeding. + - failed + # The client has declared that the task graph was not successful. + - cancelled + # The client has cancelled further execution of the task graph. + + TaskGraphType: + description: > + The type of a task graph. + type: string + enum: + - batch + - realtime + + TaskGraphLog: + description: Logging information about the execution of a task graph. + type: object + properties: + uuid: + type: string + readOnly: true + description: The server-generated UUID of the task graph. + namespace: + type: string + description: > + 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. + created_by: + type: string + readOnly: true + description: The name of the user who created this task graph log. + name: + type: string + description: > + A name for this task graph log, displayed in the UI. + Does not need to be unique. + created_at: + type: string + format: date-time + readOnly: true + description: > + The date/time when this task graph log was originally created. + This is distinct from the execution start_time. + start_time: + type: string + format: date-time + readOnly: true + x-nullable: true + x-omitempty: true + description: > + The start time of the task graph, recorded when the server + starts executing the first node. + end_time: + type: string + format: date-time + readOnly: true + x-nullable: true + x-omitempty: true + description: > + The end time of the task graph, recorded when the client reports + completion. + status: + $ref: "#/definitions/TaskGraphLogStatus" + total_cost: + type: number + x-nullable: true + description: > + If present, the total cost of executing all nodes in this task graph. + access_cost: + type: number + x-nullable: true + description: > + If present, the total cost of access from execution of the nodes + in this task graph. + egress_cost: + type: number + x-nullable: true + description: > + If present, the total cost of access from execution of the nodes + in this task graph. + execution_time: + type: string + description: > + The total execution time of all the nodes in this graph, in ISO 8601 + format with hours, minutes, and seconds. + example: "P15H22M0.45S" + status_count: + type: object + description: > + A mapping from `ArrayTaskStatus` string value to the number of nodes + in this graph that are in that status. + additionalProperties: + description: The number of nodes that are in the given state. + type: number + nodes: + type: array + items: + $ref: "#/definitions/TaskGraphNodeMetadata" + description: > + 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. + task_graph_type: + $ref: "#/definitions/TaskGraphType" + task_graph_id: + type: string + description: The UUID of the task graph. + + TaskGraphNodeMetadata: + description: Metadata about an individual node in a task graph. + type: object + properties: + client_node_uuid: + type: string + description: The client-generated UUID of the given graph node. + name: + type: string + description: > + The client-generated name of the node. + This is not guaranteed to be unique. + depends_on: + type: array + items: + type: string + description: > + The client_node_uuid of each node that this node depends upon. + Used to define the structure of the graph. + run_location: + $ref: "#/definitions/TaskGraphLogRunLocation" + status: + description: > + If present, the overall execution status of this node, taking into + account the latest execution information. + + For nodes that have not yet been executed, this will be listed as + `QUEUED`. For nodes that are set to run locally and have not reported + any status information, this will be listed as `UNKNOWN`. + $ref: "#/definitions/ArrayTaskStatus" + status_message: + description: The reason the array task status is in the state + type: string + x-nullable: true + x-omitempty: true + executions: + type: array + items: + $ref: "#/definitions/ArrayTask" + readOnly: true + description: > + 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. + + TaskGraphLogsData: + description: Response data for a task graph list, including pagination metadata. + type: object + properties: + task_graph_logs: + description: The requested task graph logs. + type: array + items: + $ref: "#/definitions/TaskGraphLog" + pagination_metadata: + $ref: "#/definitions/PaginationMetadata" + + TaskGraphClientNodeStatus: + description: > + A report of the execution status of a node that ran on the client side. + type: object + properties: + client_node_uuid: + type: string + status: + $ref: "#/definitions/ArrayTaskStatus" + + # Task graph + TaskGraph: + description: Information about a task graph. + type: object + properties: + uuid: + type: string + readOnly: true + description: The server-generated UUID of the task graph. + namespace: + type: string + description: > + 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. + created_by: + type: string + readOnly: true + description: The name of the user who created this task graph log. + name: + type: string + description: > + A name for this task graph, displayed in the UI. + Does not need to be unique. + created_at: + type: string + format: date-time + readOnly: true + description: > + The date/time when this task graph was originally created. + nodes: + type: array + items: + $ref: "#/definitions/TaskGraphNode" + description: > + 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. + parallelism: + type: integer + format: int64 + x-nullable: true + x-omitempty: true + description: > + Parallelism limits the max total parallel pods that can execute + at the same time in a workflow. + retry_strategy: + $ref: '#/definitions/RetryStrategy' + deadline: + type: integer + format: int64 + x-nullable: true + x-omitempty: true + description: > + Duration in seconds relative to the workflow start time which the + workflow is allowed to run before it gets terminated. + task_graph_type: + $ref: "#/definitions/TaskGraphType" + + TaskGraphs: + description: Information about a series of task graphs. + type: object + properties: + graphs: + type: array + items: + $ref: "#/definitions/TaskGraph" + description: > + The series of graphs. + + # Registered task graphs + + RegisteredTaskGraph: + 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. + type: object + properties: + uuid: + type: string + description: A server-assigned unique ID for the UDF, in UUID format. + namespace: + type: string + description: The namespace that owns this task graph log. + name: + type: string + description: > + The name of this graph, to appear in URLs. + Must be unique per-namespace. + readme: + type: string + description: Documentation for the task graph, in Markdown format. + license_id: + type: string + x-nullable: True + description: SPDX license identifier. + license_text: + type: string + x-nullable: True + description: Full text of the license. + tags: + type: array + x-nullable: False + description: Optional tags to classify the graph. + items: + type: string + description: Unaccented, lowercase, hyphenated Latin characters. + nodes: + type: array + items: + $ref: '#/definitions/TaskGraphNode' + description: > + 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. + + TaskGraphActions: + description: actions a user can take on a UDF + type: string + enum: + # Fetch task graph + - fetch_task_graph + # Share task graph with others + - share_task_graph + + TaskGraphSharing: + description: details for sharing a given registered task graph + type: object + properties: + actions: + description: List of permitted actions + type: array + x-omitempty: true + items: + $ref: "#/definitions/TaskGraphActions" + example: + - fetch_task_graph + - share_task_graph + namespace: + description: namespace being granted array access can be a user or organization + type: string + example: "MyOrganization" + namespace_type: + description: details on if the namespace is a organization or user + type: string + example: "organization" + + TaskGraphNode: + 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`. + type: object + properties: + client_node_id: + type: string + description: The client-generated UUID of the given graph node. + name: + type: string + x-nullable: true + description: > + A client-specified name for the node. If provided, this must be + unique. + depends_on: + type: array + items: + type: string + description: > + The client_node_uuid of each node that this node depends upon. + Used to define the structure of the graph. + array_node: + $ref: "#/definitions/UDFArrayDetails" + input_node: + $ref: "#/definitions/TGInputNodeData" + sql_node: + $ref: "#/definitions/TGSQLNodeData" + udf_node: + $ref: '#/definitions/TGUDFNodeData' + retry_strategy: + $ref: '#/definitions/RetryStrategy' + expand_node_output: + type: string + x-nullable: true + description: > + 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. + deadline: + type: integer + format: int64 + x-nullable: true + x-omitempty: true + description: > + Duration in seconds relative to the node start time which the + node is allowed to run before it gets terminated. + + TGArrayNodeData: + 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. + type: object + x-nullable: true + properties: + uri: + description: > + The `tiledb://` URI of the array to query, or a Node which yields + that `tiledb://` URI. + $ref: "#/definitions/TGArgValue" + ranges: + $ref: "#/definitions/TGQueryRanges" + buffers: + description: > + A list of buffers (attributes and dimensions) to fetch. + Can be provided either raw or as a node to be interpolated in. + $ref: "#/definitions/TGArgValue" + x-omitempty: true + + TGQueryRanges: + description: Parameterizable version of `QueryRanges`. + type: object + properties: + layout: + $ref: "#/definitions/Layout" + friendly_ranges: + description: > + The ranges to query against, in a user-friendly format. This is a + slightly more flexible format designed to be easier for an author + to use. This may also be Node data which yields these ranges. + (These will be processed by the client to turn into raw ranges.) + + A single `[lo, hi]` span may be specified as: + + - a scalar value (for `lo == hi`) + - a Slice (escaped in `"__tdbudf__": "__slice__"` format) + - a single-entry list (for `lo == hi`) + - a pair of values `[lo, hi]` + + The ranges for a given dimension may be specified as: + + - a single scalar value (for a single-value `[val, val]` span) + - a Slice (for exactly one `[lo, hi]` span) + - a list of spans as described above. + + See the TileDB Cloud documentation for more details on the formats. + + Either this or `ranges` must be specified, but not both. + $ref: "#/definitions/TGArgValue" + ranges: + description: > + The ranges to query against, or Node data which yields those ranges. + + The result must be in the QueryRanges format: + + [ + [d1lo1, d1hi1, d1lo2, d1hi2, ...], + [d2lo1, d2hi1, d2lo2, d2hi2, ...], + ..., + ] + + but there are many ways to construct it: + + - A node returning the entire `[[lo, hi, ...], ...]` list-of-lists. + - `[[(lo node), (hi node)], ...]` + - `[(node returning lo/hi pairs), ...]` + - Or a mix of any of the above. + + Either this or `user_ranges` must be specified, but not both. + $ref: "#/definitions/TGArgValue" + + TGInputNodeData: + description: > + Specifies that a node is an “input value”, allowing for parameterized + task graphs. An input node may not depend upon any other nodes. + type: object + x-nullable: True + properties: + default_value: + $ref: "#/definitions/TGArgValue" + datatype: + description: > + 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. + type: string + x-nullable: true + + TGSQLNodeData: + description: > + A node specifying an SQL query to execute in TileDB Cloud. + type: object + x-nullable: true + properties: + init_commands: + description: The commands to execute before running the query itself. + type: array + items: + type: string + query: + description: > + The text of the SQL query to execute. Parameters are substituted in + for `?`s, just as in a regular MariaDB query. + type: string + parameters: + description: > + The parameters to substitute in for arguments in the `query`. + Fixed-length. Arguments must be in JSON format. + type: array + items: + $ref: "#/definitions/TGArgValue" + result_format: + $ref: "#/definitions/ResultFormat" + namespace: + description: > + If set, the non-default namespace to execute this SQL query under. + type: string + x-nullable: true + + TGUDFNodeData: + description: A node specifying the execution of a user-defined function. + type: object + x-nullable: true + properties: + registered_udf_name: + description: > + 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. + type: string + x-nullable: true + executable_code: + description: > + 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). + type: string + x-nullable: true + source_text: + description: > + 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. + type: string + environment: + $ref: "#/definitions/TGUDFEnvironment" + arguments: + description: > + 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}, + ] + type: array + items: + $ref: "#/definitions/TGUDFArgument" + result_format: + $ref: "#/definitions/ResultFormat" + + + TGUDFArgument: + description: > + A single argument to a UDF. This may represent a positional argument or + a named argument, depending upon whether `name` is set. + type: object + properties: + name: + description: The name of the argument, if present. + type: string + x-nullable: true + value: + $ref: "#/definitions/TGArgValue" + + TGArgValue: + description: > + 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=" + } + } + + TGUDFEnvironment: + description: Metadata about the environment where we want to execute a UDF. + type: object + properties: + language: + $ref: "#/definitions/UDFLanguage" + language_version: + description: > + 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. + type: string + image_name: + description: > + The name of the image to use for the execution environment. + type: string + access_credentials_name: + description: > + The name of the access credentials to use. if unset, no credentials will be configured in the environment. + type: string + namespace: + description: > + 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). + type: string + x-nullable: true + resource_class: + description: > + 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. + type: string + x-omitempty: true + resources: + type: object + description: > + The resources requested for this particular node. If resources are not + specified resource_class is used, if it is not set the standard resource + // defaults are used + properties: + cpu: + type: string + example: 500m + memory: + type: string + example: 8Gi + gpu: + type: integer + example: 1 + x-omitempty: true + run_client_side: + description: > + 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. + type: boolean + x-omitempty: true + timeout: + description: > + 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). + type: number + x-nullable: true + + FragmentMetadata: + description: Fragment Metadata + type: object + # TODO: define all properties + properties: + fileSizes: + description: fixed sizes + type: array + items: + type: integer + format: uint64 + fileVarSizes: + description: var length sizes + type: array + items: + type: integer + format: uint64 + fileValiditySizes: + description: validity sizes + type: array + items: + type: integer + format: uint64 + fragmentUri: + type: string + hasTimestamps: + type: boolean + hasDeleteMeta: + type: boolean + sparseTileNum: + type: integer + format: uint64 + tileIndexBase: + type: integer + format: uint64 + tileOffsets: + type: array + items: + type: array + items: + type: integer + format: uint64 + tileVarOffsets: + type: array + items: + type: array + items: + type: integer + format: uint64 + tileVarSizes: + type: array + items: + type: array + items: + type: integer + format: uint64 + tileValidityOffsets: + type: array + items: + type: array + items: + type: integer + format: uint64 + tileMinBuffer: + type: array + items: + type: array + items: + type: integer + format: uint8 + tileMinVarBuffer: + type: array + items: + type: array + items: + type: integer + format: uint8 + tileMaxBuffer: + type: array + items: + type: array + items: + type: integer + format: uint8 + tileMaxVarBuffer: + type: array + items: + type: array + items: + type: integer + format: uint8 + tileSums: + type: array + items: + type: array + items: + type: integer + format: uint8 + tileNullCounts: + type: array + items: + type: array + items: + type: integer + format: uint64 + fragmentMins: + type: array + items: + type: array + items: + type: integer + format: uint8 + fragmentMaxs: + type: array + items: + type: array + items: + type: integer + format: uint8 + fragmentSums: + type: array + items: + type: integer + format: uint64 + fragmentNullCounts: + type: array + items: + type: integer + format: uint64 + version: + type: integer + format: uint32 + timestampRange: + type: array + items: + type: integer + format: uint64 + # A pair of timestamps for fragment + + lastTileCellNum: + type: integer + format: uint64 + + # TODO: handle! + # nonEmptyDomain @25 :NonEmptyDomainList; + # non empty domain + + # TODO: handle! + # rtree @26 :Data; + + SingleFragmentInfo: + description: Single Fragment info of an array + type: object + properties: + ArraySchemaName: + description: array schema name + type: string + meta: + description: fragment metadata + $ref: "#/definitions/FragmentMetadata" + + FragmentInfo: + description: Fragment info of an array + type: object + properties: + arraySchemaAll: + description: map of all array schemas + type: object + additionalProperties: + $ref: "#/definitions/ArraySchema" + fragmentInfo: + description: information about fragments in the array + type: array + items: + $ref: "#/definitions/SingleFragmentInfo" + toVacuum: + description: the URIs of the fragments to vacuum + type: array + items: + type: string + + FragmentInfoRequest: + description: Fragment info request + type: object + properties: + config: + description: config to use for opening + $ref: "#/definitions/TileDBConfig" + + ArrayConsolidationRequest: + description: Request to consolidate an array + type: object + properties: + config: + type: object + description: config to use to retrieve the contents + $ref: "#/definitions/TileDBConfig" + + ArrayVacuumRequest: + description: Request to consolidate an array + type: object + properties: + config: + type: object + description: config to use to retrieve the contents + $ref: "#/definitions/TileDBConfig" + + RetryStrategy: + description: RetryStrategy provides controls on how to retry a taskgraph node + type: object + properties: + backoff: + description: Backoff is a backoff strategy + $ref: '#/definitions/Backoff' + expression: + description: 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 + type: string + limit: + description: 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`. + type: integer + format: uint32 + retryPolicy: + description: RetryPolicy is a policy of NodePhase statuses that will be retried + $ref: '#/definitions/RetryPolicy' + + Backoff: + description: Backoff is a backoff strategy to use within retryStrategy + type: object + properties: + duration: + description: Duration is the amount to back off. Default unit is seconds, but could also be a duration (e.g. "2m", "1h") + type: string + factor: + description: Factor is a factor to multiply the base duration after each failed retry + type: integer + format: uint32 + maxDuration: + description: MaxDuration is the maximum amount of time allowed for the backoff strategy + type: string + + RetryPolicy: + description: RetryPolicy is a policy of node statuses that will be retried + type: string + enum: + # Retry always + - Always + # Retry task failures + - OnFailure + # Retry task errors + - OnError + # Retry task transient errors + - OnTransientError + +paths: + /.stats: + get: + description: Fetch libtiledb stat + tags: + - stats + operationId: getTiledbStats + responses: + 200: + description: stats + schema: + type: object + properties: + stats: + description: string of stats from tiledb + type: string + example: "123" + examples: + application/json: + stats: "123" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /arrays: + parameters: + - name: public_share + in: query + type: string + description: Public share values can be one of exclude, only + get: + description: get all array metadata user has access to + tags: + - array + operationId: getAllArrayMetadata + responses: + 200: + description: array metadata for all arrays user has access to + schema: + type: array + x-omitempty: true + items: + $ref: "#/definitions/ArrayInfo" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /arrays/{namespace}: + parameters: + - name: namespace + in: path + description: namespace array is in (an organization name or user's username) + type: string + required: true + get: + description: get metadata on all arrays in a namespace + tags: + - array + operationId: getArraysInNamespace + responses: + 200: + description: array metadata for all arrays in a namespace + schema: + type: array + x-omitempty: true + items: + $ref: "#/definitions/ArrayInfo" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /arrays/{namespace}/{array}: + parameters: + - name: namespace + in: path + description: namespace array is in (an organization name or user's username) + type: string + required: true + - name: array + in: path + description: name/uri of array that is url-encoded + type: string + required: true + - name: Content-Type + in: header + description: Content Type of input and return mime + type: string + required: true + default: application/json + delete: + description: delete a array + tags: + - array + operationId: deleteArray + responses: + 204: + description: delete array successful + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + get: + description: get an ArraySchema using a url encoded uri + produces: + - application/json + - application/capnp + consumes: + - application/json + - application/capnp + tags: + - array + operationId: getArray + responses: + 200: + description: get ArraySchema + schema: + $ref: "#/definitions/ArraySchema" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + post: + description: create a array schema at a specified URI registered to a group/project + tags: + - array + operationId: createArray + parameters: + - name: ArraySchema + in: body + description: ArraySchema being created + schema: + $ref: "#/definitions/ArraySchema" + required: true + - name: X-TILEDB-CLOUD-ACCESS-CREDENTIALS-NAME + in: header + description: Optional registered access credentials to use for creation + type: string + required: false + responses: + 204: + description: schema created successfully + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /arrays/{namespace}/{array}/activity: + parameters: + - name: namespace + in: path + description: namespace array is in (an organization name or user's username) + type: string + required: true + - name: array + in: path + description: name/uri of array that is url-encoded + type: string + required: true + - name: start + in: query + description: "Start time of window of fetch logs, unix epoch in seconds (default: seven days ago)" + type: integer + format: uint64 + required: false + - name: end + in: query + description: "End time of window of fetch logs, unix epoch in seconds (default: current utc timestamp)" + type: integer + format: uint64 + required: false + - name: event_types + in: query + type: string + description: Refer to ActivityEventType for possible values + - name: task_id + in: query + type: string + description: Array task ID To filter activity to + - name: has_task_id + in: query + type: boolean + description: Excludes activity log results that do not contain an array task UUID + get: + description: get array activity logs + tags: + - array + operationId: arrayActivityLog + responses: + 200: + description: log of array activity + schema: + type: array + x-omitempty: true + items: + $ref: "#/definitions/ArrayActivityLog" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /arrays/{namespace}/{array}/activity/{id}: + parameters: + - name: namespace + in: path + description: namespace array is in (an organization name or user's username) + type: string + required: true + - name: array + in: path + description: name/uri of array that is url-encoded + type: string + required: true + - name: id + in: path + description: ID of the activity + type: string + required: true + get: + description: get activity log by ID + tags: + - array + operationId: getActivityLogById + responses: + 200: + description: array activity + schema: + $ref: "#/definitions/ArrayActivityLog" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /arrays/{namespace}/{array}/deregister: + parameters: + - name: namespace + in: path + description: namespace array is in (an organization name or user's username) + type: string + required: true + - name: array + in: path + description: name/uri of array that is url-encoded + type: string + required: true + delete: + description: deregister a array + tags: + - array + operationId: deregisterArray + responses: + 204: + description: deregistered array successful + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /arrays/{namespace}/{array}/array_metadata: + parameters: + - name: namespace + in: path + description: namespace array is in (an organization name or user's username) + type: string + required: true + - name: array + in: path + description: name/uri of array that is url-encoded + type: string + required: true + get: + description: get metadata on an array + tags: + - array + produces: + - application/json + - application/capnp + consumes: + - application/json + - application/capnp + operationId: getArrayMetadataCapnp + responses: + 200: + description: array metadata for an array + schema: + $ref: "#/definitions/ArrayMetadata" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + post: + description: update metadata on an array + tags: + - array + produces: + - application/json + - application/capnp + consumes: + - application/json + - application/capnp + operationId: updateArrayMetadataCapnp + parameters: + - name: arrayMetadataEntries + in: body + description: List of metadata entries + schema: + $ref: "#/definitions/ArrayMetadata" + required: true + responses: + 200: + description: array metadata updated successfully + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /arrays/{namespace}/{array}/fragment_info: + parameters: + - name: namespace + in: path + description: namespace array is in (an organization name or user's username) + type: string + required: true + - name: array + in: path + description: name/uri of array that is url-encoded + type: string + required: true + - name: Content-Type + in: header + description: Content Type of input and return mime + type: string + required: true + default: application/json + post: + description: fetch an array's fragment info + tags: + - array + operationId: fragmentInfo + parameters: + - name: fragmentInfoRequest + in: body + description: ArraySchema being created + schema: + $ref: "#/definitions/FragmentInfoRequest" + required: true + responses: + 200: + description: fragment info + schema: + $ref: "#/definitions/FragmentInfo" + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /arrays/{namespace}/{array}/metadata: + parameters: + - name: namespace + in: path + description: namespace array is in (an organization name or user's username) + type: string + required: true + - name: array + in: path + description: name/uri of array that is url-encoded + type: string + required: true + get: + description: get metadata on an array + tags: + - array + operationId: getArrayMetadata + responses: + 200: + description: array metadata for an array + schema: + $ref: "#/definitions/ArrayInfo" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + patch: + description: update metadata on an array + tags: + - array + operationId: updateArrayMetadata + parameters: + - name: array_metadata + in: body + description: array metadata to update + schema: + $ref: "#/definitions/ArrayInfoUpdate" + required: true + responses: + 204: + description: array metadata updated successfully + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /arrays/{namespace}/{array}/fragment_end_timestamp: + parameters: + - name: namespace + in: path + description: namespace array is in (an organization name or user's username) + type: string + required: true + - name: array + in: path + description: name/uri of array that is url-encoded + type: string + required: true + - name: end_timestamp + in: query + description: "Milliseconds since Unix epoch" + type: integer + format: uint64 + required: false + get: + description: Get fragment end_timestamp on an array, will search for the closest end_timestamp to the timestamp asked + tags: + - array + operationId: getFragmentEndTimestamp + responses: + 200: + description: fragment end_timestamp on an array + schema: + description: "Milliseconds since Unix epoch, end_timestamp of selected fragment or latest timestamp if input timestamp is omitted" + type: integer + format: uint64 + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /arrays/{namespace}/{array}/register: + parameters: + - name: namespace + in: path + description: namespace array is in (an organization name or user's username) + type: string + required: true + - name: array + in: path + description: name/uri of array that is url-encoded + type: string + required: true + post: + description: register an array at a specified URI registered to the given namespace + tags: + - array + operationId: registerArray + parameters: + - name: array_metadata + in: body + description: metadata associated with array + schema: + $ref: "#/definitions/ArrayInfoUpdate" + required: true + responses: + 200: + description: array registered successfully + schema: + $ref: "#/definitions/ArrayInfo" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /arrays/{namespace}/{array}/consolidate: + parameters: + - name: namespace + in: path + description: namespace array is in (an organization name or user's username) + type: string + required: true + - name: array + in: path + description: name/uri of array that is url-encoded + type: string + required: true + post: + description: consolidate an array at a specified URI + tags: + - array + operationId: consolidateArray + parameters: + - name: consolidate_request + in: body + description: Consolidate Request + schema: + $ref: "#/definitions/ArrayConsolidationRequest" + required: true + responses: + 204: + description: array consolidated successfully + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /arrays/{namespace}/{array}/vacuum: + parameters: + - name: namespace + in: path + description: namespace array is in (an organization name or user's username) + type: string + required: true + - name: array + in: path + description: name/uri of array that is url-encoded + type: string + required: true + post: + description: vacuum an array at a specified URI + tags: + - array + operationId: vacuumArray + parameters: + - name: vaccum_request + in: body + description: Vaccum Request + schema: + $ref: "#/definitions/ArrayVacuumRequest" + required: true + responses: + 204: + description: array vacuumed successfully + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /arrays/{namespace}/{array}/share: + parameters: + - name: namespace + in: path + description: namespace array is in (an organization name or user's username) + type: string + required: true + - name: array + in: path + description: name/uri of array that is url-encoded + type: string + required: true + get: + description: Get all sharing details of the array + tags: + - array + operationId: getArraySharingPolicies + responses: + 200: + description: List of all specific sharing policies + schema: + type: array + x-omitempty: true + items: + $ref: "#/definitions/ArraySharing" + 404: + description: Array does not exist or user does not have permissions to view array-sharing policies + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + patch: + description: Share an array with a user + tags: + - array + operationId: shareArray + parameters: + - name: array_sharing + in: body + description: 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. + schema: + $ref: "#/definitions/ArraySharing" + required: true + responses: + 204: + description: Array shared successfully + 404: + description: Array does not exist or user does not have permissions to share array + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /arrays/{namespace}/{array}/non_empty_domain: + parameters: + - name: namespace + in: path + description: namespace array is in (an organization name or user's username) + type: string + required: true + - name: array + in: path + description: name/uri of array that is url-encoded + type: string + required: true + - name: Content-Type + in: header + description: Content Type of input and return mime + type: string + required: true + default: application/json + - name: X-Payer + in: header + description: Name of organization or user who should be charged for this request + type: string + get: + description: get the non empty domain of an array + tags: + - array + operationId: getArrayNonEmptyDomain + responses: + 200: + description: get the non empty domain of an array + schema: + $ref: "#/definitions/NonEmptyDomain" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /arrays/{namespace}/{array}/max_buffer_sizes: + parameters: + - name: namespace + in: path + description: namespace array is in (an organization name or user's username) + type: string + required: true + - name: array + in: path + description: name/uri of array that is url-encoded + type: string + required: true + - name: subarray + in: query + description: CSV string of subarray to get max buffer sizes for + type: string + required: true + - name: Content-Type + in: header + description: Content Type of input and return mime + type: string + required: true + default: application/json + - name: X-Payer + in: header + description: Name of organization or user who should be charged for this request + type: string + get: + description: get the max buffer sizes of an array for a subarray + tags: + - array + operationId: getArrayMaxBufferSizes + responses: + 200: + description: get the max buffer sizes of an array for a subarray + schema: + $ref: "#/definitions/MaxBufferSizes" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /arrays/{namespace}/{array}/udf/submit: + parameters: + - name: namespace + in: path + description: namespace array is in (an organization name or user's username) + type: string + required: true + - name: array + in: path + description: name/uri of array that is url-encoded + type: string + required: true + - name: X-Payer + in: header + description: Name of organization or user who should be charged for this request + type: string + - name: Accept-Encoding + in: header + description: Encoding to use + type: string + - name: v2 + in: query + description: flag to indicate if v2 array UDFs should be used, currently in beta testing. Setting any value will enable v2 array UDFs. + type: string + required: false + + post: + description: send a UDF to run against a specified array/URI registered to a group/project + tags: + - udf + operationId: submitUDF + produces: + - application/octet-stream + consumes: + - application/json + parameters: + - name: udf + in: body + description: UDF to run + schema: + $ref: "#/definitions/MultiArrayUDF" + required: true + responses: + 200: + description: UDF completed and the UDF-type specific result is returned + headers: + X-TILEDB-CLOUD-TASK-ID: + type: string + description: Task ID for just completed request + schema: + type: string + format: binary + 502: + description: Bad Gateway + default: + description: error response + headers: + X-TILEDB-CLOUD-TASK-ID: + type: string + description: Task ID for just request if task was started + schema: + $ref: "#/definitions/Error" + + /arrays/{namespace}/{array}/query/submit: + parameters: + - name: namespace + in: path + description: namespace array is in (an organization name or user's username) + type: string + required: true + - name: array + in: path + description: name/uri of array that is url-encoded + type: string + required: true + - name: type + in: query + description: type of query + required: true + type: string + - name: Content-Type + in: header + description: Content Type of input and return mime + type: string + required: true + default: application/json + - name: X-Payer + in: header + description: Name of organization or user who should be charged for this request + type: string + - name: open_at + description: open_at for array in unix epoch + in: query + type: integer + format: uint64 + post: + description: send a query to run against a specified array/URI registered to a group/project + tags: + - query + produces: + - application/json + - application/capnp + consumes: + - application/json + - application/capnp + operationId: submitQuery + parameters: + - name: query + in: body + description: query to run + schema: + $ref: "#/definitions/Query" + required: true + responses: + 200: + description: query completed and results are returned in query object + headers: + X-TILEDB-CLOUD-TASK-ID: + type: string + description: Task ID for just completed query + schema: + $ref: "#/definitions/Query" + 204: + description: query completed successfully with no return + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /arrays/{namespace}/{array}/query/submit_query_json: + parameters: + - name: namespace + in: path + description: namespace array is in (an organization name or user's username) + type: string + required: true + - name: array + in: path + description: name/uri of array that is url-encoded + type: string + required: true + - name: Content-Type + in: header + description: Content Type of input and return mime + type: string + required: true + default: application/json + - name: X-Payer + in: header + description: Name of organization or user who should be charged for this request + type: string + post: + description: send a query to run against a specified array/URI registered to a group/project, returns JSON results + tags: + - query + produces: + - application/json + consumes: + - application/json + operationId: submitQueryJson + parameters: + - name: queryJson + in: body + description: query to run + schema: + $ref: "#/definitions/QueryJson" + required: true + responses: + 200: + description: query completed and results are returned in JSON format + headers: + X-TILEDB-CLOUD-TASK-ID: + type: string + description: Task ID for just completed query + schema: + type: object + examples: + application/json: + data: '{"a1":[0,1,2,3,0,1,2,3]}' + + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /arrays/{namespace}/{array}/query/get_file: + parameters: + - name: namespace + in: path + description: namespace array is in (an organization name or user's username) + type: string + required: true + - name: array + in: path + description: name/uri of array that is url-encoded + type: string + required: true + - name: Content-Type + in: header + description: Content Type of input and return mime + type: string + required: true + default: application/json + - name: X-Payer + in: header + description: Name of organization or user who should be charged for this request + type: string + get: + description: send a query to run against a specified array/URI registered to a group/project, returns file bytes + tags: + - query + produces: + - application/x-ipynb+json + operationId: getFile + responses: + 200: + description: query completed and result bytes are returned + headers: + X-TILEDB-CLOUD-TASK-ID: + type: string + description: Task ID for just completed query + schema: + type: string + format: binary + examples: + application/x-ipynb+json: + data: "abcd" + + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /arrays/{namespace}/{array}/query/finalize: + parameters: + - name: namespace + in: path + description: namespace array is in (an organization name or user's username) + type: string + required: true + - name: array + in: path + description: name/uri of array that is url-encoded + type: string + required: true + - name: type + in: query + description: type of query + required: true + type: string + - name: Content-Type + in: header + description: Content Type of input and return mime + type: string + required: true + default: application/json + - name: X-Payer + in: header + description: Name of organization or user who should be charged for this request + type: string + - name: open_at + description: open_at for array in unix epoch + in: query + type: integer + format: uint64 + post: + description: send a query to run against a specified array/URI registered to a group/project + tags: + - query + produces: + - application/json + - application/capnp + consumes: + - application/json + - application/capnp + operationId: finalizeQuery + parameters: + - name: query + in: body + description: query to run + schema: + $ref: "#/definitions/Query" + required: true + responses: + 200: + description: query completed and results are returned in query object + headers: + X-TILEDB-CLOUD-TASK-ID: + type: string + description: Task ID for just completed query + schema: + $ref: "#/definitions/Query" + 204: + description: query completed successfully with no return + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /arrays/{namespace}/{array}/query/est_result_sizes: + parameters: + - name: namespace + in: path + description: namespace array is in (an organization name or user's username) + type: string + required: true + - name: array + in: path + description: name/uri of array that is url-encoded + type: string + required: true + - name: type + in: query + description: type of query + required: true + type: string + - name: Content-Type + in: header + description: Content Type of input and return mime + type: string + required: true + default: application/json + - name: X-Payer + in: header + description: Name of organization or user who should be charged for this request + type: string + - name: open_at + description: open_at for array in unix epoch + in: query + type: integer + format: uint64 + post: + description: send a query to run against a specified array/URI registered to a group/project + tags: + - query + produces: + - application/json + - application/capnp + consumes: + - application/json + - application/capnp + operationId: getEstResultSizes + parameters: + - name: query + in: body + description: query to run + schema: + $ref: "#/definitions/Query" + required: true + responses: + 200: + description: query est result size computed and results are returned in query object + headers: + X-TILEDB-CLOUD-TASK-ID: + type: string + description: Task ID for just computed query result size + schema: + $ref: "#/definitions/Query" + 204: + description: query completed successfully with no return + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /arrays/{namespace}/{array}/sample: + parameters: + - name: namespace + in: path + description: namespace array is in (an organization name or user's username) + type: string + required: true + - name: array + in: path + description: name/uri of array that is url-encoded + type: string + required: true + - name: samples + in: query + description: Number of sample results to return + default: 5 + type: number + format: uint8 + get: + description: get an sample set of data from the array + tags: + - array + operationId: getArraySampleData + responses: + 200: + description: get array sample data + schema: + $ref: "#/definitions/ArraySample" + examples: + application/json: + dim1: + - 1 + - 2 + - 3 + - 1 + - 2 + dim2: + - 1 + - 1 + - 1 + - 2 + - 2 + attribute1: + - 1 + - 2 + - 3 + - 4 + - 5 + attribute2: + - "test1" + - "test2" + - "test3" + - "test4" + - "test5" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + examples: + application/json: + message: "Error try again" + code: 1 + + /arrays/{namespace}/{array}/metadata_json: + parameters: + - name: namespace + in: path + description: namespace array is in (an organization name or user's username) + type: string + required: true + - name: array + in: path + description: name/uri of array that is url-encoded + type: string + required: true + - name: length + in: query + description: (optional) limit character length of returned values + type: integer + required: false + - name: end_timestamp + in: query + description: "Milliseconds since Unix epoch, metadata will use open_at functionality to open array at the specific timestamp" + type: integer + format: uint64 + required: false + get: + description: get metadata from the array in JSON format + tags: + - array + operationId: getArrayMetaDataJson + responses: + 200: + description: get array metadata + schema: + $ref: "#/definitions/ArrayMetadataJson" + examples: + application/json: + key1: 25 + key2: + - 25 + - 26 + - 27 + - 28 + key3: 25.1 + key4: + - 25.1 + - 26.2 + - 27.3 + - 28.4 + key5: "This is TileDB array metadata" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + examples: + application/json: + message: "Error try again" + code: 1 + + /arrays/{namespace}/{array}/non_empty_domain_json: + parameters: + - name: namespace + in: path + description: namespace array is in (an organization name or user's username) + type: string + required: true + - name: array + in: path + description: name/uri of array that is url-encoded + type: string + required: true + get: + description: get non-empty domain from the array in json format + tags: + - array + operationId: getArrayNonEmptyDomainJson + responses: + 200: + description: get array non-empty domaim + schema: + $ref: "#/definitions/NonEmptyDomainJson" + examples: + application/json: + dim1: + - 1 + - 20 + dim2: + - a + - c + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + examples: + application/json: + message: "Error try again" + code: 1 + + /arrays/{namespace}/{array}/end_timestamps: + parameters: + - name: namespace + in: path + description: namespace array is in (an organization name or user's username) + type: string + required: true + - name: array + in: path + description: name/uri of array that is url-encoded + type: string + required: true + - name: page + in: query + description: pagination offset + type: integer + required: false + - name: per_page + in: query + description: pagination limit + type: integer + required: false + get: + description: retrieve a list of timestamps from the array fragment info listing in milliseconds, paginated + tags: + - array + produces: + - application/json + responses: + 200: + description: list of timestamps in milliseconds, paginated + schema: + $ref: "#/definitions/ArrayEndTimestampData" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /arrays/last_accessed: + get: + tags: + - array + operationId: getLastAccessedArrays + responses: + 200: + description: gets last accessed arrays + schema: + type: array + x-omitempty: true + items: + $ref: "#/definitions/LastAccessedArray" + examples: + application/json: + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + examples: + application/json: + message: "Error try again" + code: 1 + + /user: + get: + tags: + - user + description: get a user + operationId: getUser + responses: + 200: + description: user details + schema: + $ref: "#/definitions/User" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + post: + security: [] + tags: + - user + description: create a user + operationId: createUser + parameters: + - name: user + in: body + description: user to create + schema: + $ref: "#/definitions/User" + required: true + responses: + 204: + description: user created successfully + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /user/password_reset: + post: + tags: + - user + description: reset user password + operationId: resetUserPassword + parameters: + - name: user + in: body + description: password to update for user requesting update + schema: + description: Password to update + type: object + properties: + password: + type: string + minLength: 8 + description: password + example: "password" + required: true + responses: + 204: + description: User password updated successfully + 404: + description: User not found + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /user/confirm_email: + post: + tags: + - user + description: confirm user email + operationId: confirmEmail + responses: + 204: + description: User email confirmed successfully + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /users/{username}: + parameters: + - name: username + in: path + description: username or ID + required: true + type: string + get: + tags: + - user + description: get a user + operationId: getUserWithUsername + responses: + 200: + description: user details + schema: + $ref: "#/definitions/User" + 404: + description: User does not exist + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + delete: + tags: + - user + description: delete a user + operationId: deleteUser + responses: + 204: + description: user deleted + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + patch: + tags: + - user + description: update a user + operationId: updateUser + parameters: + - name: user + in: body + description: user details to update + schema: + $ref: "#/definitions/User" + required: true + responses: + 204: + description: user updated successfully + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /credentials/{namespace}/aws: + parameters: + - name: namespace + in: path + description: namespace + required: true + type: string + get: + tags: + - user + - organization + description: Check if aws keys are set + operationId: checkAWSAccessCredentials + responses: + 200: + description: AWS keys are set + schema: + type: array + items: + $ref: "#/definitions/AWSAccessCredentials" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + post: + tags: + - user + - organization + description: Add aws keys + operationId: addAWSAccessCredentials + parameters: + - name: awsAccessCredentials + in: body + description: aws access credentials to store for a namespace + schema: + $ref: "#/definitions/AWSAccessCredentials" + required: true + responses: + 204: + description: AWS keys added successfully + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /credentials/{namespace}/aws/{name}: + parameters: + - name: namespace + in: path + description: namespace + required: true + type: string + - name: name + in: path + description: name + required: true + type: string + get: + tags: + - user + - organization + description: Check if aws keys are set by name + operationId: checkAWSAccessCredentialsByName + responses: + 200: + description: AWS keys are set + schema: + $ref: "#/definitions/AWSAccessCredentials" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + patch: + tags: + - user + - organization + description: Update aws keys or associated buckets. This will update the key associations for each array in the namespace + operationId: updateAWSAccessCredentials + parameters: + - name: awsAccessCredentials + in: body + description: aws credentials to update + schema: + $ref: "#/definitions/AWSAccessCredentials" + required: true + responses: + 204: + description: AWS keys updated successfully + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + delete: + tags: + - user + - organization + description: delete a AWS Access credentials in a namespace. This will likely cause arrays to become unreachable + operationId: deleteAWSAccessCredentials + responses: + 204: + description: AWS credentials deleted + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /organization: + post: + tags: + - organization + description: create a organization, the user creating will be listed as owner + operationId: createOrganization + parameters: + - name: organization + in: body + description: organization to create + schema: + $ref: "#/definitions/Organization" + required: true + responses: + 204: + description: organization created successfully + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /organizations: + get: + tags: + - organization + description: get all organizations that the user is member of + operationId: getAllOrganizations + responses: + 200: + description: array of organizations the user is member of + schema: + type: array + x-omitempty: true + items: + $ref: "#/definitions/Organization" + 400: + description: Error finding organizations + 500: + description: Request user not found, or has empty context + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /organizations/{organization}: + parameters: + - name: organization + in: path + description: organization name or ID + required: true + type: string + get: + tags: + - organization + description: get a organization + operationId: getOrganization + responses: + 200: + description: organization details + schema: + $ref: "#/definitions/Organization" + 404: + description: Organization does not exist + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + delete: + tags: + - organization + description: delete a organization + operationId: deleteOrganization + responses: + 204: + description: organization deleted + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + patch: + tags: + - organization + description: update a organization + operationId: updateOrganization + parameters: + - name: organizationDetails + in: body + description: organization details to update + schema: + $ref: "#/definitions/Organization" + required: true + responses: + 204: + description: organization updated successfully + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /organizations/{organization}/user: + parameters: + - name: organization + in: path + description: organization name + required: true + type: string + post: + tags: + - user + - organization + description: add a user to an organization + operationId: addUserToOrganization + parameters: + - name: user + in: body + description: user to add + schema: + $ref: "#/definitions/OrganizationUser" + required: true + responses: + 204: + description: user added to organization successfully + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /organizations/{organization}/{username}: + parameters: + - name: organization + in: path + description: organization name + required: true + type: string + - name: username + in: path + description: username to manipulate + required: true + type: string + get: + tags: + - user + - organization + description: get a user from an organization + operationId: getOrganizationUser + responses: + 200: + description: user from organization + schema: + $ref: "#/definitions/OrganizationUser" + 404: + description: User is not in organization + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + delete: + tags: + - user + - organization + description: delete a user from an organization + operationId: deleteUserFromOrganization + responses: + 204: + description: user delete from organization successfully + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + patch: + tags: + - user + - organization + description: update a user in an organization + operationId: updateUserInOrganization + parameters: + - name: user + in: body + description: user details to update + schema: + $ref: "#/definitions/OrganizationUser" + required: true + responses: + 204: + description: user update in organization successfully + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /organizations/{organization}/sso_domain: + parameters: + - name: organization + in: path + description: organization name + required: true + type: string + post: + tags: + - organization + description: > + Create a new SSO connection that connects this organization to this + domain. + operationId: createSSODomain + parameters: + - name: config + in: body + description: The SSO connection to create. + schema: + $ref: '#/definitions/SSODomainConfig' + required: true + responses: + 200: + description: Claim created successfully. + schema: + $ref: '#/definitions/SSODomainConfig' + default: + description: error response + schema: + $ref: '#/definitions/Error' + + /organizations/{organization}/sso_domains: + parameters: + - name: organization + in: path + description: organization name + required: true + type: string + get: + tags: + - organization + description: > + Lists all the SSO connections associated with the given organization. + operationId: getSSODomains + responses: + 200: + description: The SSO domains associated with the org. + schema: + $ref: '#/definitions/SSODomainConfigResponse' + default: + description: error response + schema: + $ref: '#/definitions/Error' + + /organizations/{organization}/sso_domains/{uuid}: + parameters: + - name: organization + in: path + description: organization name + required: true + type: string + - name: uuid + in: path + description: configuration ID + required: true + type: string + get: + tags: + - organization + description: Gets details about the given SSO domain connection. + operationId: getSSODomain + responses: + 200: + description: The details about this domain connection. + schema: + $ref: '#/definitions/SSODomainConfig' + default: + description: error response + schema: + $ref: '#/definitions/Error' + patch: + tags: + - organization + description: Updates the configuration for the given SSO connection. + parameters: + - name: config + in: body + description: The changes to make to the configuration. + schema: + $ref: '#/definitions/SSODomainConfig' + required: true + operationId: updateSSODomain + responses: + 200: + description: The updated details about the SSO connection. + schema: + $ref: '#/definitions/SSODomainConfig' + default: + description: error response + schema: + $ref: '#/definitions/Error' + delete: + tags: + - organization + description: Deletes the configuration for the given SSO connection. + operationId: deleteSSODomain + responses: + 204: + description: Deletion successful. + default: + description: error response + schema: + $ref: '#/definitions/Error' + + /organizations/{organization}/sso_domains/{uuid}/run_check: + parameters: + - name: organization + in: path + description: organization name + required: true + type: string + - name: uuid + in: path + description: configuration ID + required: true + type: string + post: + tags: + - organization + description: > + Immediately verify ownership of the specified SSO domain ownership + claim. + operationId: checkSSODomain + responses: + 200: + description: > + The check executed. Detailed results are available in the response. + schema: + $ref: '#/definitions/DomainCheckResult' + default: + description: error response + schema: + $ref: '#/definitions/Error' + + /session: + parameters: + - name: remember_me + in: query + description: flag to create a token with expiration of 30 days, default is false + type: string + required: false + get: + tags: + - user + description: Get session token for user + operationId: getSession + responses: + 200: + description: Session token + schema: + $ref: "#/definitions/Token" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /tasks: + parameters: + - name: namespace + in: query + description: namespace to filter + type: string + required: false + - name: created_by + in: query + description: username to filter + type: string + required: false + - name: array + in: query + description: name/uri of array that is url-encoded to filter + type: string + required: false + - name: start + in: query + description: start time for tasks to filter by + type: integer + format: uint64 + required: false + - name: end + in: query + description: end time for tasks to filter by + type: integer + format: uint64 + required: false + - name: page + in: query + description: pagination offset + type: integer + required: false + - name: per_page + in: query + description: pagination limit + type: integer + required: false + - name: type + in: query + description: task type, "QUERY", "SQL", "UDF", "GENERIC_UDF" + required: false + type: string + - name: exclude_type + in: query + description: task_type to exclude matching array in results, more than one can be included + required: false + type: array + items: + type: string + - name: file_type + in: query + description: match file_type of task array, more than one can be included + required: false + collectionFormat: multi + type: array + items: + type: string + - name: exclude_file_type + in: query + description: exclude file_type of task arrays, more than one can be included + required: false + collectionFormat: multi + type: array + items: + type: string + - name: status + in: query + description: Filter to only return these statuses + type: string + required: false + - name: search + in: query + description: search string that will look at name, namespace or description fields + required: false + type: string + - name: orderby + in: query + description: sort by which field valid values include start_time, name + required: false + type: string + get: + tags: + - tasks + description: Fetch a list of all array tasks a user has access to + responses: + 200: + description: Array of all tasks user has access too + schema: + $ref: "#/definitions/ArrayTaskData" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /tasks/sidebar: + parameters: + - name: start + in: query + description: Fetch tasks created after this time, unix epoch in seconds, default 7 days ago + type: integer + format: uint64 + - name: end + in: query + description: Fetch tasks created before this time, unix epoch in seconds, default now + type: integer + format: uint64 + get: + tags: + - array_tasks + operationId: getArrayTasksSidebar + responses: + 200: + description: sidebar metadata for task definitions for all arrays user has access to + schema: + $ref: "#/definitions/ArrayTaskBrowserSidebar" + + examples: + application/json: + organizations: + - organization1 + - organization2 + - organization3 + result_count_for_all: 74 + result_count_by_namespace: + mockuser: 14 + organization1: 6 + organization2: 52 + organization3: 2 + 404: + description: array tasks not found + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + examples: + application/json: + message: "Error try again" + code: 1 + + /task/{id}: + parameters: + - name: id + in: path + description: task ID to fetch + type: string + required: true + get: + tags: + - tasks + description: Fetch an array task + responses: + 200: + description: Array task + schema: + $ref: "#/definitions/ArrayTask" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /task/{id}/result: + parameters: + - name: id + in: path + description: task ID to retrieve stored results + type: string + required: true + - name: Accept-Encoding + in: header + description: Encoding to use + type: string + get: + tags: + - tasks + description: Retrieve results of an array task + responses: + 200: + description: output and format of originating request + schema: + type: string + format: binary/json + headers: + Content-Type: + type: string + description: format results are delivered in + 202: + description: task is still executing + 404: + description: results were not saved, or results have expored + schema: + $ref: "#/definitions/Error" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /token: + post: + tags: + - user + description: Request an authorization token, optionally taken a TokenRequest object to set parameters on the token + operationId: requestToken + parameters: + - name: tokenRequest + in: body + description: token request object + schema: + $ref: "#/definitions/TokenRequest" + required: false + responses: + 200: + description: token + schema: + $ref: "#/definitions/Token" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /tokens: + get: + tags: + - user + description: Fetch a list of user tokens + responses: + 200: + description: Array of user created non-session tokens + schema: + type: array + x-omitempty: true + items: + $ref: "#/definitions/Token" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /tokens/session: + get: + tags: + - user + description: Fetch a list of user session tokens + responses: + 200: + description: Array of user created session tokens + schema: + type: array + x-omitempty: true + items: + $ref: "#/definitions/Token" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /tokens/{token}: + parameters: + - name: token + in: path + description: token name or token itself + required: true + type: string + delete: + tags: + - user + description: revoke an authorization token + operationId: revokeToken + responses: + 204: + description: revokation successfully + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /tokens/scopes: + get: + tags: + - user + description: retrieves available token scopes for a user + operationId: getTokenScopes + responses: + 200: + description: available token scopes + schema: + type: array + items: + $ref: "#/definitions/TokenScope" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /sql/{namespace}: + parameters: + - name: namespace + in: path + description: namespace to run task under is in (an organization name or user's username) + type: string + required: true + - name: Accept-Encoding + in: header + description: Encoding to use + type: string + post: + tags: + - sql + - tasks + description: Run a sql query + operationId: runSQL + parameters: + - name: sql + in: body + description: sql being submitted + schema: + $ref: "#/definitions/SQLParameters" + required: true + responses: + 200: + description: JSON results in array of objects form, if the query returns results + headers: + X-TILEDB-CLOUD-TASK-ID: + type: string + description: Task ID for just completed query + schema: + type: array + items: + type: object + additionalProperties: true + 204: + description: SQL executed successfully + headers: + X-TILEDB-CLOUD-TASK-ID: + type: string + description: Task ID for just completed query + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /udfs/generic/{namespace}: + parameters: + - name: namespace + in: path + description: namespace array is in (an organization name or user's username) + type: string + required: true + - name: Accept-Encoding + in: header + description: Encoding to use + type: string + + post: + description: submit a generic UDF in the given namespace + tags: + - udf + operationId: submitGenericUDF + produces: + - application/octet-stream + consumes: + - application/json + parameters: + - name: udf + in: body + description: UDF to run + schema: + $ref: "#/definitions/GenericUDF" + required: true + responses: + 200: + description: UDF completed and the UDF-type specific result is returned + headers: + X-TILEDB-CLOUD-TASK-ID: + type: string + description: Task ID for just completed request + schema: + type: string + format: binary + 502: + description: Bad Gateway + default: + description: error response + headers: + X-TILEDB-CLOUD-TASK-ID: + type: string + description: Task ID for just request if task was started + schema: + $ref: "#/definitions/Error" + + /udfs/arrays/{namespace}: + parameters: + - name: namespace + in: path + description: namespace array is in (an organization name or user's username) + type: string + required: true + - name: Accept-Encoding + in: header + description: Encoding to use + type: string + + post: + description: submit a multi-array UDF in the given namespace + tags: + - udf + operationId: submitMultiArrayUDF + produces: + - application/octet-stream + consumes: + - application/json + parameters: + - name: udf + in: body + description: UDF to run + schema: + $ref: "#/definitions/MultiArrayUDF" + required: true + responses: + 200: + description: UDF completed and the UDF-type specific result is returned + headers: + X-TILEDB-CLOUD-TASK-ID: + type: string + description: Task ID for just completed request + schema: + type: string + format: binary + 502: + description: Bad Gateway + default: + description: error response + headers: + X-TILEDB-CLOUD-TASK-ID: + type: string + description: Task ID for just request if task was started + schema: + $ref: "#/definitions/Error" + + /udf/{namespace}/{name}: + parameters: + - name: namespace + in: path + description: namespace array is in (an organization name or user's username) + type: string + required: true + - name: name + in: path + description: name to register UDF under + type: string + required: true + get: + description: get a specific UDF in the given namespace + tags: + - udf + operationId: getUDFInfo + responses: + 200: + description: UDFInfo was retrieved successfully + schema: + $ref: "#/definitions/UDFInfo" + 404: + description: UDF not found + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + post: + description: register a UDF in the given namespace + tags: + - udf + operationId: registerUDFInfo + parameters: + - name: udf + in: body + description: UDF to register + schema: + $ref: "#/definitions/UDFInfoUpdate" + required: true + responses: + 204: + description: UDF registered successfully + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + patch: + description: update an existing registered UDF in the given namespace + tags: + - udf + operationId: updateUDFInfo + parameters: + - name: udf + in: body + description: UDF to update + schema: + $ref: "#/definitions/UDFInfoUpdate" + required: true + responses: + 204: + description: UDF updated successfully + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + delete: + description: delete a registered UDF -- this will remove all sharing and can not be undone + tags: + - udf + operationId: deleteUDFInfo + responses: + 204: + description: UDF deleted successfully + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /udf/{namespace}/{name}/share: + parameters: + - name: namespace + in: path + description: namespace array is in (an organization name or user's username) + type: string + required: true + - name: name + in: path + description: name of UDFInfo + type: string + required: true + get: + description: Get all sharing details of the UDF + tags: + - udf + operationId: getUDFInfoSharingPolicies + responses: + 200: + description: List of all specific sharing policies + schema: + type: array + x-omitempty: true + items: + $ref: "#/definitions/UDFSharing" + 404: + description: UDF does not exist or user does not have permissions to view array-sharing policies + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + patch: + description: Share a UDF with a user + tags: + - udf + operationId: shareUDFInfo + parameters: + - name: udf_sharing + in: body + description: 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. + schema: + $ref: "#/definitions/UDFSharing" + required: true + responses: + 204: + description: UDF shared successfully + 404: + description: UDF does not exist or user does not have permissions to share UDF + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /udf/{namespace}/{name}/copy: + parameters: + - name: namespace + in: path + description: namespace array is in (an organization name or user's username) + type: string + required: true + - name: name + in: path + description: name of UDFInfo + type: string + required: true + post: + description: Copy a tiledb udf at the specified location + tags: + - udf + operationId: HandleCopyUDF + parameters: + - name: UDFCopy + in: body + description: Input/Output information to copy a UDF + schema: + $ref: "#/definitions/UDFCopy" + required: true + - name: X-TILEDB-CLOUD-ACCESS-CREDENTIALS-NAME + in: header + description: Optional registered access credentials to use for creation + type: string + required: false + - name: end_timestamp + in: query + description: "Milliseconds since Unix epoch" + type: integer + format: uint64 + required: false + responses: + 201: + description: UDF copied + schema: + $ref: "#/definitions/UDFCopied" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /udf/{namespace}/{array}/end_timestamps: + parameters: + - name: namespace + in: path + description: namespace array is in (an organization name or user's username) + type: string + required: true + - name: array + in: path + description: name/uri of array that is url-encoded + type: string + required: true + - name: page + in: query + description: pagination offset + type: integer + required: false + - name: per_page + in: query + description: pagination limit + type: integer + required: false + get: + description: retrieve a list of timestamps from the array fragment info listing in milliseconds, paginated + tags: + - udf + produces: + - application/json + responses: + 200: + description: list of timestamps in milliseconds, paginated + schema: + $ref: "#/definitions/ArrayEndTimestampData" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /notebooks/server/{namespace}/status: + parameters: + - name: namespace + in: path + description: namespace notebook is in (an organization name or user's username) + type: string + required: true + get: + description: Get status of the notebook server + tags: + - notebook + operationId: getNotebookServerStatus + responses: + 200: + description: status of running notebook + schema: + $ref: "#/definitions/NotebookStatus" + 202: + description: Notebook server is pending + 402: + description: Payment required + schema: + $ref: "#/definitions/Error" + 404: + description: Notebook is not running + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /notebooks/server/{namespace}: + parameters: + - name: namespace + in: path + description: namespace notebook is in (an organization name or user's username) + type: string + required: true + delete: + description: Shutdown a notebook server + tags: + - notebook + operationId: shutdownNotebookServer + responses: + 204: + description: Notebook shutdown successfully + 404: + description: Notebook is not running + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /notebooks/{namespace}/{array}/rename: + parameters: + - name: namespace + in: path + description: namespace array is in (an organization name or user's username) + type: string + required: true + - name: array + in: path + description: name/uri of notebook (array) that is url-encoded + type: string + required: true + patch: + description: update name on a notebok, moving related S3 object to new location + tags: + - notebook + operationId: updateNotebookName + parameters: + - name: notebook_metadata + in: body + description: notebook (array) metadata to update + schema: + $ref: "#/definitions/ArrayInfoUpdate" + required: true + responses: + 204: + description: notebook name updated successfully + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /notebooks/{namespace}/{array}/copy: + parameters: + - type: string + name: namespace + in: path + required: true + description: The namespace of the notebook + - type: string + name: array + in: path + required: true + description: The name of the notebook + - name: NotebookCopy + in: body + description: Input/Output information to create a new TileDB file + schema: + $ref: "#/definitions/NotebookCopy" + required: true + - name: X-TILEDB-CLOUD-ACCESS-CREDENTIALS-NAME + in: header + description: Optional registered access credentials to use for creation + type: string + required: false + - name: end_timestamp + in: query + description: "Milliseconds since Unix epoch, copy will use open_at functionality to copy notebook created at the specific timestamp" + type: integer + format: uint64 + required: false + post: + description: Copy a tiledb notebook at the specified location + tags: + - notebook + operationId: HandleCopyNotebook + responses: + 201: + description: Notebook copied + schema: + $ref: "#/definitions/NotebookCopied" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /notebooks/{namespace}/upload: + parameters: + - type: string + name: namespace + in: path + required: true + description: The namespace of the notebook + - name: X-TILEDB-CLOUD-ACCESS-CREDENTIALS-NAME + in: header + description: Optional registered access credentials to use for creation + type: string + required: false + post: + description: Upload a notebook at the specified location + consumes: + - multipart/form-data + tags: + - notebook + operationId: HandleUploadNotebook + parameters: + - in: formData + name: input_file + type: file + required: true + description: the notebook to upload + - in: formData + name: output_uri + type: string + description: output location of the TileDB File + - in: formData + name: name + type: string + description: name to set for registered file + responses: + 201: + description: File uploaded + schema: + $ref: "#/definitions/FileUploaded" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /notebooks/{namespace}/{array}/end_timestamps: + parameters: + - name: namespace + in: path + description: namespace array is in (an organization name or user's username) + type: string + required: true + - name: array + in: path + description: name/uri of array that is url-encoded + type: string + required: true + - name: page + in: query + description: pagination offset + type: integer + required: false + - name: per_page + in: query + description: pagination limit + type: integer + required: false + get: + description: retrieve a list of timestamps from the array fragment info listing in milliseconds, paginated + tags: + - notebooks + produces: + - application/json + responses: + 200: + description: list of timestamps in milliseconds, paginated + schema: + $ref: "#/definitions/ArrayEndTimestampData" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /notebooks/{namespace}/{array}/prune: + parameters: + - name: namespace + in: path + description: namespace array is in (an organization name or user's username) + type: string + required: true + - name: array + in: path + description: name/uri of array that is url-encoded + type: string + required: true + - name: keep_versions + in: query + description: "The number of most recents fragment to preserve" + type: integer + format: uint64 + required: false + post: + description: prune fragments of the notebook + tags: + - notebooks + responses: + 204: + description: notebook pruned + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /invitations: + parameters: + - name: organization + in: query + description: name or ID of organization to filter + type: string + required: false + - name: array + in: query + description: name/uri of array that is url-encoded to filter + type: string + required: false + - name: group + in: query + description: name or ID of group to filter + type: string + required: false + - name: start + in: query + description: start time for tasks to filter by + type: integer + format: uint64 + required: false + - name: end + in: query + description: end time for tasks to filter by + type: integer + format: uint64 + required: false + - name: page + in: query + description: pagination offset + type: integer + required: false + - name: per_page + in: query + description: pagination limit + type: integer + required: false + - name: type + in: query + description: invitation type, "ARRAY_SHARE", "JOIN_ORGANIZATION" + required: false + type: string + - name: status + in: query + description: Filter to only return "PENDING", "ACCEPTED" + type: string + required: false + - name: orderby + in: query + description: sort by which field valid values include timestamp, array_name, organization_name + required: false + type: string + get: + tags: + - invitation + description: Fetch a list of invitations + operationId: fetchInvitations + responses: + 200: + description: List of invitations and pagination metadata + schema: + $ref: "#/definitions/InvitationData" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /invitations/{invitation}: + parameters: + - name: invitation + in: path + description: the ID of invitation about to be accepted + type: string + required: true + post: + tags: + - invitation + description: Accepts invitation + operationId: acceptInvitation + responses: + 204: + description: Invitation was accepted successfully + 404: + description: Could not find invitation identifier + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /invitations/{invitation}/{namespace}/{array}/share: + parameters: + - name: namespace + in: path + description: namespace array is in (an organization name or user's username) + type: string + required: true + - name: invitation + in: path + description: the ID of invitation about to be cancelled + type: string + required: true + - name: array + in: path + description: name/uri of array that is url-encoded + type: string + required: true + delete: + description: Cancels array sharing invitation + tags: + - invitation + operationId: cancelShareArrayByInvite + responses: + 204: + description: Invitation cancelled successfully + 404: + description: No invitation was found to cancel + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /invitations/group/{invitation}/{namespace}/{group_name}/share: + parameters: + - name: namespace + in: path + description: namespace group is in (an organization name or user's username) + type: string + required: true + - name: invitation + in: path + description: the ID of invitation about to be cancelled + type: string + required: true + - name: group_name + in: path + description: name/uuid of group that is url-encoded + type: string + required: true + delete: + description: Cancels group sharing invitation + tags: + - invitation + operationId: cancelShareGroupByInvite + responses: + 204: + description: Invitation cancelled successfully + 404: + description: No invitation was found to cancel + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /invitations/{invitation}/{organization}/join: + parameters: + - name: invitation + in: path + description: the ID of invitation about to be cancelled + type: string + required: true + - name: organization + in: path + description: name or UUID of organization + type: string + required: true + delete: + description: Cancels join organization invitation + tags: + - invitation + operationId: cancelJoinOrganization + responses: + 204: + description: Invitation cancelled successfully + 404: + description: No invitation was found to cancel + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /invitations/{namespace}/{array}/share: + parameters: + - name: namespace + in: path + description: namespace array is in (an organization name or user's username) + type: string + required: true + - name: array + in: path + description: name/uri of array that is url-encoded + type: string + required: true + post: + tags: + - invitation + description: Sends email to multiple recipients with sharing information regarding an array + operationId: shareArrayByInvite + parameters: + - name: email_invite + in: body + description: list of email recipients + schema: + $ref: "#/definitions/InvitationArrayShareEmail" + required: true + responses: + 204: + description: Email sent successfully to user for email confirmation link + 207: + description: Only a portion of the invitations succeeded, some failed + schema: + $ref: "#/definitions/InvitationFailedRecipients" + 500: + description: Could not reach any recipients + schema: + $ref: "#/definitions/InvitationFailedRecipients" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /invitations/group/{namespace}/{group}/share: + parameters: + - name: namespace + in: path + description: namespace group is in (an organization name or user's username) + type: string + required: true + - name: group + in: path + description: name/uri of group that is url-encoded + type: string + required: true + post: + tags: + - invitation + description: Sends email to multiple recipients with sharing information regarding a group + operationId: shareGroupByInvite + parameters: + - name: email_invite + in: body + description: list of email/namespace recipients + schema: + $ref: "#/definitions/InvitationGroupShareEmail" + required: true + responses: + 204: + description: Email sent successfully to user with an email confirmation link + 207: + description: Only a portion of the invitations succeeded, some failed + schema: + $ref: "#/definitions/InvitationFailedRecipients" + 500: + description: Could not reach any recipients + schema: + $ref: "#/definitions/InvitationFailedRecipients" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /invitations/{organization}/join: + parameters: + - name: organization + in: path + description: name or UUID of organization + type: string + required: true + post: + tags: + - invitation + description: Sends email to multiple recipients with joining information regarding an organization + operationId: joinOrganization + parameters: + - name: email_invite + in: body + description: list of email recipients + schema: + $ref: "#/definitions/InvitationOrganizationJoinEmail" + required: true + responses: + 204: + description: Email sent successfully to user for email confirmation link + 207: + description: Only a portion of the invitations succeeded, some failed + schema: + $ref: "#/definitions/InvitationFailedRecipients" + 500: + description: Could not reach any recipients + schema: + $ref: "#/definitions/InvitationFailedRecipients" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /arrays/browser/shared: + parameters: + - name: page + in: query + description: pagination offset + type: integer + required: false + - name: per_page + in: query + description: pagination limit + type: integer + required: false + - name: search + in: query + description: search string that will look at name, namespace or description fields + required: false + type: string + - name: namespace + in: query + description: namespace + required: false + type: string + - name: orderby + in: query + description: sort by which field valid values include last_accessed, size, name + required: false + type: string + - name: permissions + in: query + description: permissions valid values include read, read_write, write, admin + required: false + type: string + - name: tag + in: query + description: tag to search for, more than one can be included + required: false + type: array + collectionFormat: multi + items: + type: string + - name: exclude_tag + in: query + description: tags to exclude matching array in results, more than one can be included + required: false + type: array + collectionFormat: multi + items: + type: string + - name: file_type + in: query + description: file_type to search for, more than one can be included + required: false + type: array + collectionFormat: multi + items: + type: string + - name: exclude_file_type + in: query + description: file_type to exclude matching array in results, more than one can be included + required: false + type: array + collectionFormat: multi + items: + type: string + - name: file_property + in: query + description: file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included + required: false + type: array + collectionFormat: multi + items: + type: string + - name: shared_to + in: query + description: namespaces to filter results of where there arrays were shared to + required: false + type: array + collectionFormat: multi + items: + type: string + get: + tags: + - array + description: Fetch a list of all arrays that have been shared with the user + responses: + 200: + description: Array of array info that has been shared with the user + schema: + $ref: "#/definitions/ArrayBrowserData" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /arrays/browser/shared/sidebar: + parameters: + - name: file_type + in: query + description: file_type to search for, more than one can be included + required: false + type: array + collectionFormat: multi + items: + type: string + - name: exclude_file_type + in: query + description: file_type to exclude matching array in results, more than one can be included + required: false + type: array + collectionFormat: multi + items: + type: string + - name: file_property + in: query + description: file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included + required: false + type: array + collectionFormat: multi + items: + type: string + - name: shared_to + in: query + description: namespaces to filter results of where there groups were shared to + required: false + type: array + collectionFormat: multi + items: + type: string + get: + tags: + - array + description: Fetch a list of all arrays that have been shared with the user + responses: + 200: + description: Array of array info that has been shared with the user + schema: + $ref: "#/definitions/ArrayBrowserSidebar" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /arrays/browser/public: + parameters: + - name: page + in: query + description: pagination offset + type: integer + required: false + - name: per_page + in: query + description: pagination limit + type: integer + required: false + - name: search + in: query + description: search string that will look at name, namespace or description fields + required: false + type: string + - name: namespace + in: query + description: namespace + required: false + type: string + - name: orderby + in: query + description: sort by which field valid values include last_accessed, size, name + required: false + type: string + - name: permissions + in: query + description: permissions valid values include read, read_write, write, admin + required: false + type: string + - name: tag + in: query + description: tag to search for, more than one can be included + required: false + type: array + collectionFormat: multi + items: + type: string + - name: exclude_tag + in: query + description: tags to exclude matching array in results, more than one can be included + required: false + type: array + collectionFormat: multi + items: + type: string + - name: file_type + in: query + description: file_type to search for, more than one can be included + required: false + type: array + collectionFormat: multi + items: + type: string + - name: exclude_file_type + in: query + description: file_type to exclude matching array in results, more than one can be included + required: false + type: array + collectionFormat: multi + items: + type: string + - name: file_property + in: query + description: file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included + required: false + type: array + collectionFormat: multi + items: + type: string + get: + tags: + - array + description: Fetch a list of all arrays that have been shared publically + responses: + 200: + description: Array of array info that has been shared publically + schema: + $ref: "#/definitions/ArrayBrowserData" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /arrays/browser/public/sidebar: + parameters: + - name: file_type + in: query + description: file_type to search for, more than one can be included + required: false + type: array + collectionFormat: multi + items: + type: string + - name: exclude_file_type + in: query + description: file_type to exclude matching array in results, more than one can be included + required: false + type: array + collectionFormat: multi + items: + type: string + - name: file_property + in: query + description: file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included + required: false + type: array + collectionFormat: multi + items: + type: string + get: + tags: + - array + description: Fetch a sidebar of all arrays that have been shared publically + responses: + 200: + description: Array of array info that has been shared publically + schema: + $ref: "#/definitions/ArrayBrowserSidebar" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /arrays/browser/owned: + parameters: + - name: page + in: query + description: pagination offset + type: integer + required: false + - name: per_page + in: query + description: pagination limit + type: integer + required: false + - name: search + in: query + description: search string that will look at name, namespace or description fields + required: false + type: string + - name: namespace + in: query + description: namespace + required: false + type: string + - name: orderby + in: query + description: sort by which field valid values include last_accessed, size, name + required: false + type: string + - name: permissions + in: query + description: permissions valid values include read, read_write, write, admin + required: false + type: string + - name: tag + in: query + description: tag to search for, more than one can be included + required: false + type: array + collectionFormat: multi + items: + type: string + - name: exclude_tag + in: query + description: tags to exclude matching array in results, more than one can be included + required: false + type: array + collectionFormat: multi + items: + type: string + - name: file_type + in: query + description: file_type to search for, more than one can be included + required: false + type: array + collectionFormat: multi + items: + type: string + - name: exclude_file_type + in: query + description: file_type to exclude matching array in results, more than one can be included + required: false + type: array + collectionFormat: multi + items: + type: string + - name: file_property + in: query + description: file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included + required: false + type: array + collectionFormat: multi + items: + type: string + get: + tags: + - array + description: Fetch a list of all arrays that are owned directly by user or user's organizations + responses: + 200: + description: Array of array info that are owned directly by user or user's organizations + schema: + $ref: "#/definitions/ArrayBrowserData" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /arrays/browser/owned/sidebar: + parameters: + - name: file_type + in: query + description: file_type to search for, more than one can be included + required: false + type: array + collectionFormat: multi + items: + type: string + - name: exclude_file_type + in: query + description: file_type to exclude matching array in results, more than one can be included + required: false + type: array + collectionFormat: multi + items: + type: string + - name: file_property + in: query + description: file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included + required: false + type: array + collectionFormat: multi + items: + type: string + get: + tags: + - array + description: Fetch a sidebar for arrays that are owned directly by user or user's organizations + responses: + 200: + description: Array of array info that are owned directly by user or user's organizations + schema: + $ref: "#/definitions/ArrayBrowserSidebar" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /arrays/favorites: + get: + parameters: + - name: page + in: query + description: pagination offset + type: integer + required: false + - name: per_page + in: query + description: pagination limit + type: integer + required: false + tags: + - favorites + description: Fetch a page of array favorites of connected user + operationId: listArrayFavorites + responses: + 200: + description: Available array favorites are returned + schema: + $ref: "#/definitions/ArrayFavoritesData" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /arrays/favorites/uuids: + get: + tags: + - favorites + description: Fetch all favorite array uuids of connected user + operationId: listArrayFavoritesUUIDs + responses: + 200: + description: Available favorites array uuids are returned + schema: + type: array + x-omitempty: false + items: + $ref: "#/definitions/ArrayFavorite" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /arrays/favorites/{namespace}/{name}: + parameters: + - type: string + name: namespace + in: path + required: true + description: The namespace of the array + - type: string + name: name + in: path + required: true + description: The name of the array + get: + tags: + - favorites + description: Fetch array favorite of a specific array + operationId: getArrayFavorite + responses: + 200: + description: OK + schema: + $ref: "#/definitions/ArrayFavorite" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + post: + tags: + - favorites + description: Add a new array favorite + operationId: addArrayFavorite + responses: + 204: + description: Item added to favorites successfully + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + delete: + tags: + - favorites + description: Delete specific array favorite + operationId: deleteArrayFavorite + responses: + 204: + description: array favorite item deleted successfully + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /notebooks/favorites: + get: + parameters: + - name: is_dashboard + in: query + description: return only dashboards + type: boolean + required: false + - name: page + in: query + description: pagination offset + type: integer + required: false + - name: per_page + in: query + description: pagination limit + type: integer + required: false + tags: + - favorites + description: Fetch a page of notebook favorites of connected user + operationId: listNotebookFavorites + responses: + 200: + description: Available notebook favorites are returned + schema: + $ref: "#/definitions/NotebookFavoritesData" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /notebooks/favorites/uuids: + get: + tags: + - favorites + description: Fetch all favorite notebook uuids of connected user + operationId: listNotebookFavoritesUUIDs + responses: + 200: + description: Available favorites notebook uuids are returned + schema: + type: array + x-omitempty: false + items: + $ref: "#/definitions/NotebookFavorite" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /notebooks/favorites/{namespace}/{name}: + parameters: + - type: string + name: namespace + in: path + required: true + description: The namespace of the notebook + - type: string + name: name + in: path + required: true + description: The name of the notebook + get: + tags: + - favorites + description: Fetch notebook favorite of a specific notebook + operationId: getNotebookFavorite + responses: + 200: + description: OK + schema: + $ref: "#/definitions/NotebookFavorite" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + post: + tags: + - favorites + description: Add a new notebook favorite + operationId: addNotebookFavorite + responses: + 204: + description: Item added to favorites successfully + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + delete: + tags: + - favorites + description: Delete specific notebook favorite + operationId: deleteNotebookFavorite + responses: + 204: + description: notebook favorite item deleted successfully + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /ml_models/favorites: + get: + parameters: + - name: page + in: query + description: pagination offset + type: integer + required: false + - name: per_page + in: query + description: pagination limit + type: integer + required: false + tags: + - favorites + description: Fetch a page of ML models favorites of connected user + operationId: listMLModelFavorites + responses: + 200: + description: Available ML models favorites are returned + schema: + $ref: "#/definitions/MLModelFavoritesData" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /ml_models/favorites/uuids: + get: + tags: + - favorites + description: Fetch all favorite ML models uuids of connected user + operationId: listMLModelFavoritesUUIDs + responses: + 200: + description: Available favorites ML model uuids are returned + schema: + type: array + x-omitempty: false + items: + $ref: "#/definitions/MLModelFavorite" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /ml_models/favorites/{namespace}/{name}: + parameters: + - type: string + name: namespace + in: path + required: true + description: The namespace of the ML model + - type: string + name: name + in: path + required: true + description: The name of the ML model + get: + tags: + - favorites + description: Fetch ML model favorite of a specific ML model + operationId: getMLModelFavorite + responses: + 200: + description: OK + schema: + $ref: "#/definitions/MLModelFavorite" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + post: + tags: + - favorites + description: Add a new ML model favorite + operationId: addMLModelFavorite + responses: + 204: + description: Item added to favorites successfully + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + delete: + tags: + - favorites + description: Delete specific ML model favorite + operationId: deleteMLModelFavorite + responses: + 204: + description: ML model favorite item deleted successfully + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /udfs/favorites: + get: + parameters: + - name: page + in: query + description: pagination offset + type: integer + required: false + - name: per_page + in: query + description: pagination limit + type: integer + required: false + tags: + - favorites + description: Fetch a page of UDF favorites of connected user + operationId: listUDFFavorites + responses: + 200: + description: Available UDF favorites are returned + schema: + $ref: "#/definitions/UDFFavoritesData" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /udfs/favorites/uuids: + get: + tags: + - favorites + description: Fetch all favorite UDF uuids of connected user + operationId: listUDFFavoritesUUIDs + responses: + 200: + description: Available favorites UDF uuids are returned + schema: + type: array + x-omitempty: false + items: + $ref: "#/definitions/UDFFavorite" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /udfs/favorites/{namespace}/{name}: + parameters: + - type: string + name: namespace + in: path + required: true + description: The namespace of the UDF + - type: string + name: name + in: path + required: true + description: The name of the UDF + get: + tags: + - favorites + description: Fetch UDF favorite of a specific UDF + operationId: getUDFFavorite + responses: + 200: + description: OK + schema: + $ref: "#/definitions/UDFFavorite" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + post: + tags: + - favorites + description: Add a new UDF favorite + operationId: addUDFFavorite + responses: + 204: + description: Item added to favorites successfully + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + delete: + tags: + - favorites + description: Delete specific UDF favorite + operationId: deleteUDFFavorite + responses: + 204: + description: UDF favorite item deleted successfully + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /files/{namespace}: + parameters: + - type: string + name: namespace + in: path + required: true + description: The namespace of the file + - name: FileCreate + in: body + description: Input/Output information to create a new TileDB file + schema: + $ref: "#/definitions/FileCreate" + required: true + - name: X-TILEDB-CLOUD-ACCESS-CREDENTIALS-NAME + in: header + description: Optional registered access credentials to use for creation + type: string + required: false + post: + description: Create a tiledb file at the specified location + tags: + - files + operationId: HandleCreateFile + responses: + 201: + description: File created + schema: + $ref: "#/definitions/FileCreated" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /files/{namespace}/upload: + parameters: + - type: string + name: namespace + in: path + required: true + description: The namespace of the file + - name: X-TILEDB-CLOUD-ACCESS-CREDENTIALS-NAME + in: header + description: Optional registered access credentials to use for creation + type: string + required: false + post: + description: Upload a tiledb file at the specified location + consumes: + - multipart/form-data + tags: + - files + operationId: HandleUploadFile + parameters: + - in: formData + name: input_file + type: file + required: true + description: the file to upload + - in: formData + name: output_uri + type: string + description: output location of the TileDB File + - in: formData + name: name + type: string + description: name to set for registered file + responses: + 201: + description: File uploaded + schema: + $ref: "#/definitions/FileUploaded" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /files/{namespace}/{file}/export: + parameters: + - type: string + name: namespace + in: path + required: true + description: The namespace of the file + - type: string + name: file + in: path + required: true + description: The file identifier + - name: FileExport + in: body + description: Export configuration information + schema: + $ref: "#/definitions/FileExport" + required: true + post: + description: Export a TileDB File back to its original file format + tags: + - files + operationId: HandleExportFile + responses: + 201: + description: File exported + schema: + $ref: "#/definitions/FileExported" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /groups/browser/owned/filters: + get: + tags: + - groups + description: Fetch data to initialize filters for the groups browser + parameters: + - name: namespace + in: query + description: namespace + required: false + type: string + responses: + 200: + description: Filter data + schema: + $ref: "#/definitions/GroupBrowserFilterData" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /groups/browser/owned: + get: + description: Returns one page of owned groups. + operationId: listOwnedGroups + tags: + - groups + parameters: + - name: page + in: query + description: pagination offset + type: integer + required: false + - name: per_page + in: query + description: pagination limit + type: integer + required: false + - name: group_type + in: query + description: filter by a specific group type + required: false + type: string + - name: search + in: query + description: search string that will look at name, namespace or description fields + required: false + type: string + - name: namespace + in: query + description: namespace + required: false + type: string + - name: orderby + in: query + description: sort by which field valid values include last_accessed, size, name + required: false + type: string + - name: permissions + in: query + description: permissions valid values include read, read_write, write, admin + required: false + type: string + - name: tag + in: query + description: tag to search for, more than one can be included + required: false + type: array + collectionFormat: multi + items: + type: string + - name: exclude_tag + in: query + description: tags to exclude matching array in results, more than one can be included + required: false + type: array + collectionFormat: multi + items: + type: string + - name: flat + in: query + description: if true, ignores the nesting of groups and searches all of them + type: boolean + - name: parent + in: query + description: search only the children of the groups with this uuid + type: string + required: false + responses: + 200: + description: the group contents + schema: + $ref: "#/definitions/GroupBrowserData" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /groups/browser/shared/filters: + get: + tags: + - groups + description: Fetch data to initialize filters for the groups browser + parameters: + - name: namespace + in: query + description: namespace + required: false + type: string + responses: + 200: + description: Filter data + schema: + $ref: "#/definitions/GroupBrowserFilterData" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /groups/browser/shared: + get: + description: Returns one page of shared groups. + operationId: listSharedGroups + tags: + - groups + parameters: + - name: page + in: query + description: pagination offset + type: integer + required: false + - name: per_page + in: query + description: pagination limit + type: integer + required: false + - name: group_type + in: query + description: filter by a specific group type + required: false + type: string + - name: search + in: query + description: search string that will look at name, namespace or description fields + required: false + type: string + - name: namespace + in: query + description: namespace + required: false + type: string + - name: orderby + in: query + description: sort by which field valid values include last_accessed, size, name + required: false + type: string + - name: permissions + in: query + description: permissions valid values include read, read_write, write, admin + required: false + type: string + - name: tag + in: query + description: tag to search for, more than one can be included + required: false + type: array + collectionFormat: multi + items: + type: string + - name: exclude_tag + in: query + description: tags to exclude matching array in results, more than one can be included + required: false + type: array + collectionFormat: multi + items: + type: string + - name: flat + in: query + description: if true, ignores the nesting of groups and searches all of them + type: boolean + - name: parent + in: query + description: search only the children of the groups with this uuid + type: string + required: false + - name: shared_to + in: query + description: namespaces to filter results of where there groups were shared to + required: false + type: array + collectionFormat: multi + items: + type: string + responses: + 200: + description: the group contents + schema: + $ref: "#/definitions/GroupBrowserData" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /groups/browser/public/filters: + get: + tags: + - groups + description: Fetch data to initialize filters for the groups browser + responses: + 200: + description: Filter data + schema: + $ref: "#/definitions/GroupBrowserFilterData" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /groups/browser/public: + get: + description: Returns one page of public groups. + operationId: listPublicGroups + tags: + - groups + parameters: + - name: page + in: query + description: pagination offset + type: integer + required: false + - name: per_page + in: query + description: pagination limit + type: integer + required: false + - name: group_type + in: query + description: filter by a specific group type + required: false + type: string + - name: search + in: query + description: search string that will look at name, namespace or description fields + required: false + type: string + - name: namespace + in: query + description: namespace + required: false + type: string + - name: orderby + in: query + description: sort by which field valid values include last_accessed, size, name + required: false + type: string + - name: permissions + in: query + description: permissions valid values include read, read_write, write, admin + required: false + type: string + - name: tag + in: query + description: tag to search for, more than one can be included + required: false + type: array + collectionFormat: multi + items: + type: string + - name: exclude_tag + in: query + description: tags to exclude matching array in results, more than one can be included + required: false + type: array + collectionFormat: multi + items: + type: string + - name: flat + in: query + description: if true, ignores the nesting of groups and searches all of them + type: boolean + - name: parent + in: query + description: search only the children of the groups with this uuid + type: string + required: false + responses: + 200: + description: the group contents + schema: + $ref: "#/definitions/GroupBrowserData" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /groups/{group_namespace}/{group_name}/contents/filters: + parameters: + - name: group_namespace + type: string + in: path + required: true + description: The namespace of the group + - name: group_name + type: string + in: path + required: true + description: The unique name or id of the group + get: + tags: + - groups + description: Fetch data to initialize filters for the group contents + responses: + 200: + description: Filter data + schema: + $ref: "#/definitions/GroupContentsFilterData" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /groups/{group_namespace}/{group_name}/contents: + parameters: + - name: group_namespace + type: string + in: path + required: true + description: The namespace of the group + - name: group_name + type: string + in: path + required: true + description: The unique name or id of the group + post: + description: Changes the contents of the group by adding/removing members. + operationId: changeGroupContents + tags: + - groups + parameters: + - in: body + name: GroupChanges + schema: + $ref: "#/definitions/GroupChanges" + responses: + 204: + description: all changes applied successfully + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + get: + description: Returns the contents of the group + operationId: getGroupContents + tags: + - groups + parameters: + - name: page + in: query + description: pagination offset for assets + type: integer + required: false + - name: per_page + in: query + description: pagination limit for assets + type: integer + required: false + - name: namespace + in: query + description: namespace to search for + required: false + type: string + - name: search + in: query + description: search string that will look at name, namespace or description fields + required: false + type: string + - name: orderby + in: query + description: sort by which field valid values include last_accessed, size, name + required: false + type: string + - name: tag + in: query + description: tag to search for, more than one can be included + required: false + type: array + collectionFormat: multi + items: + type: string + - name: exclude_tag + in: query + description: tags to exclude matching array in results, more than one can be included + required: false + type: array + collectionFormat: multi + items: + type: string + - name: member_type + in: query + description: member type to search for, more than one can be included + required: false + type: array + collectionFormat: multi + items: + type: string + - name: exclude_member_type + in: query + description: member type to exclude matching groups in results, more than one can be included + required: false + type: array + collectionFormat: multi + items: + type: string + responses: + 200: + description: the group contents + schema: + $ref: "#/definitions/GroupContents" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /groups/{namespace}/{array}/register: + parameters: + - name: namespace + type: string + in: path + required: true + description: The namespace of the group + - name: array + type: string + in: path + required: true + description: The unique name or id of the group + post: + description: Registers an existing group in the namespace. + operationId: registerGroup + tags: + - groups + parameters: + - in: body + name: GroupRegister + schema: + $ref: "#/definitions/GroupRegister" + responses: + 204: + description: group created successfully + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /groups/{namespace}/create: + parameters: + - name: namespace + type: string + in: path + required: true + description: The namespace of the group + post: + description: Creates a new group in the namespace. + operationId: createGroup + tags: + - groups + parameters: + - in: body + name: GroupCreate + schema: + $ref: "#/definitions/GroupCreate" + responses: + 204: + description: group created successfully + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /groups/{group_namespace}/{group_name}/share: + parameters: + - name: group_namespace + type: string + in: path + required: true + description: The namespace of the group + - name: group_name + type: string + in: path + required: true + description: The unique name or id of the group + get: + description: Get all sharing details of the group + tags: + - groups + operationId: getGroupSharingPolicies + responses: + 200: + description: List of all specific sharing policies + schema: + type: array + x-omitempty: true + items: + $ref: "#/definitions/GroupSharing" + 404: + description: Group does not exist or user does not have permissions to view group-sharing policies + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + patch: + description: Share a group with a namespace + tags: + - groups + operationId: shareGroup + parameters: + - name: group_sharing_request + in: body + description: 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. + schema: + $ref: "#/definitions/GroupSharingRequest" + required: true + responses: + 204: + description: Group shared successfully + 404: + description: Group does not exist or user does not have permissions to share group + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /groups/{group_namespace}/{group_name}: + parameters: + - name: group_namespace + type: string + in: path + required: true + description: The namespace of the group + - name: group_name + type: string + in: path + required: true + description: The unique name or id of the group + get: + description: Returns the the group + operationId: getGroup + tags: + - groups + responses: + 200: + description: the group metadata + schema: + $ref: "#/definitions/GroupInfo" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + patch: + description: Changes attributes of the group + operationId: updateGroup + tags: + - groups + parameters: + - in: body + name: GroupUpdate + schema: + $ref: "#/definitions/GroupUpdate" + responses: + 204: + description: attributes changed successfully + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + delete: + description: Deletes the group. The assets are not deleted nor are not relocated to any other group + operationId: deleteGroup + tags: + - groups + responses: + 204: + description: group deleted successfully + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /groups/{group_namespace}/{group_name}/content_activity: + parameters: + - name: group_namespace + type: string + in: path + required: true + description: The namespace of the group + - name: group_name + type: string + in: path + required: true + description: The unique name or id of the group + - name: page + in: query + description: pagination offset + type: integer + required: false + - name: per_page + in: query + description: pagination limit + type: integer + required: false + get: + description: Returns the activity of group content + operationId: getGroupActivity + tags: + - groups + responses: + 200: + description: Activity logs of group contents along with the pagination metadata + schema: + $ref: "#/definitions/GroupActivityResponse" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /taskgraphs/{namespace}/log: + post: + description: Create a task graph log. + operationId: createTaskGraphLog + tags: + - task_graph_logs + parameters: + - name: namespace + in: path + description: The namespace that will own this task graph log. + type: string + required: true + - name: log + in: body + required: true + schema: + $ref: "#/definitions/TaskGraphLog" + responses: + 201: + description: > + The task graph was created. The returned TaskGraphLog will include + the data the client sent, with the server-defined fields added in. + schema: + $ref: "#/definitions/TaskGraphLog" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + # Task graphs: Logs + + /taskgraphs/logs: + parameters: + - name: namespace + in: query + description: Include logs for this namespace. + type: string + required: false + - name: created_by + in: query + description: Include logs from only this user. + type: string + required: false + - name: search + in: query + description: search string that will look at name. + required: false + type: string + - name: start_time + in: query + description: Include logs created after this time. + type: string + format: date-time + required: false + - name: end_time + in: query + description: Include logs created before this time. + type: string + format: date-time + required: false + - name: page + in: query + description: pagination offset + type: integer + required: false + - name: per_page + in: query + description: pagination limit + type: integer + required: false + get: + description: > + 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. + + operationId: listTaskGraphLogs + tags: + - task_graph_logs + responses: + 200: + description: The task graph logs that matched the user's query. + schema: + $ref: "#/definitions/TaskGraphLogsData" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /taskgraphs/{namespace}/logs/{id}: + parameters: + - name: namespace + in: path + description: The namespace that owns this task graph log. + type: string + required: true + - name: id + in: path + description: The UUID of the task graph log entry. + type: string + required: true + get: + description: > + Fetch information about a single task graph execution. + operationId: getTaskGraphLog + tags: + - task_graph_logs + responses: + 200: + description: Information about the execution of a single task graph. + schema: + $ref: "#/definitions/TaskGraphLog" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + patch: + description: > + Update information about a single task graph execution. + operationId: updateTaskGraphLog + tags: + - task_graph_logs + parameters: + - name: log + in: body + description: > + 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`. + schema: + $ref: "#/definitions/TaskGraphLog" + required: true + responses: + 204: + description: Log entry updated successfully. + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /taskgraphs/{namespace}/logs/{id}/report_client_node: + parameters: + - name: namespace + in: path + description: The namespace that owns this task graph log. + type: string + required: true + - name: id + in: path + description: The UUID of the task graph log entry. + type: string + required: true + post: + operationId: reportClientNode + tags: + - task_graph_logs + parameters: + - name: report + in: body + description: The node status to report. + required: true + schema: + $ref: "#/definitions/TaskGraphClientNodeStatus" + responses: + 204: + description: Status reported successfully. + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /taskgraphs/{namespace}/executions/{id}/resubmit: + parameters: + - name: namespace + in: path + description: The namespace that owns this task graph execution. + type: string + required: true + - name: id + in: path + description: The UUID of the task graph execution (TaskGraphLog). + type: string + required: true + post: + description: Resubmits a task graph in the given namespace using the associated execution id. + operationId: resubmitTaskGraphExecution + tags: + - task_graph_logs + responses: + 202: + description: Information about the task graph execution. + schema: + $ref: "#/definitions/TaskGraphLog" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: '#/definitions/Error' + + /taskgraphs/{namespace}/executions/{id}/retry: + parameters: + - name: namespace + in: path + description: The namespace that owns this task graph execution. + type: string + required: true + - name: id + in: path + description: The UUID of the task graph execution (TaskGraphLog). + type: string + required: true + post: + description: Retries failed tasks of a task graph in the given namespace using the associated execution id. + operationId: retryTaskGraphExecution + tags: + - task_graph_logs + responses: + 202: + description: Information about the task graph execution. + schema: + $ref: "#/definitions/TaskGraphLog" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: '#/definitions/Error' + + /taskgraphs/{namespace}/executions/{id}/stop: + parameters: + - name: namespace + in: path + description: The namespace that owns this task graph execution. + type: string + required: true + - name: id + in: path + description: The UUID of the task graph execution (TaskGraphLog). + type: string + required: true + post: + description: Stops a task graph execution in the given namespace using the associated associated execution id. + operationId: stopTaskGraphExecution + tags: + - task_graph_logs + responses: + 202: + description: Information about the task graph execution. + schema: + $ref: "#/definitions/TaskGraphLog" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: '#/definitions/Error' + + # Task graphs + /taskgraphs/{namespace}/graphs: + get: + description: > + 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. + operationId: listTaskGraphs + parameters: + - name: namespace + in: path + description: Namespace for graphs + type: string + required: true + tags: + - task_graphs + responses: + 200: + description: The task graphs that matched the user's query. + schema: + $ref: "#/definitions/TaskGraphs" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + post: + description: > + Create a single task graph for execution. + operationId: createTaskGraph + tags: + - task_graphs + parameters: + - name: namespace + in: path + description: Include graphs for this namespace. + type: string + required: true + - name: graph + in: body + description: Create the task graph. + schema: + $ref: "#/definitions/TaskGraph" + required: true + responses: + 201: + description: Task graph created successfully. + schema: + $ref: "#/definitions/TaskGraph" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /taskgraphs/{namespace}/graphs/{id}: + parameters: + - name: namespace + in: path + description: The namespace that owns this task graph. + type: string + required: true + - name: id + in: path + description: The UUID of the task graph entry. + type: string + required: true + get: + description: > + Fetch information about a single task graph. + operationId: getTaskGraph + tags: + - task_graphs + responses: + 200: + description: Information about the single task graph. + schema: + $ref: "#/definitions/TaskGraph" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + patch: + description: > + Update information about a single task graph execution. + operationId: updateTaskGraph + tags: + - task_graphs + parameters: + - name: graph + in: body + description: Updates to make to the task graph. + schema: + $ref: "#/definitions/TaskGraph" + required: true + responses: + 204: + description: Task graph created successfully. + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /taskgraphs/{namespace}/graphs/{id}/submit: + parameters: + - name: namespace + in: path + description: The namespace that owns this task graph. + type: string + required: true + - name: id + in: path + description: The UUID of the task graph entry. + type: string + required: true + post: + description: > + Submit a single task graph for execution. + operationId: submitTaskGraph + tags: + - task_graphs + - task_graph_logs + responses: + 202: + description: Information about the execution of a single task graph. + schema: + $ref: "#/definitions/TaskGraphLog" + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + # Task graphs: Registration + + /taskgraphs/{namespace}/registered/{name}: + parameters: + - name: namespace + in: path + description: The namespace that owns this registered UDF. + type: string + required: true + - name: name + in: path + description: The name of the registered task graph. + type: string + required: true + get: + description: > + Fetch the contents of this registered task graph. + operationId: getRegisteredTaskGraph + tags: + - registered_task_graphs + responses: + 200: + description: The contents of the registered task graph. + schema: + $ref: '#/definitions/RegisteredTaskGraph' + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + post: + description: > + Register a task graph in the given namespace, with the given name. + operationId: registerRegisteredTaskGraph + tags: + - registered_task_graphs + parameters: + - name: graph + in: body + description: Task graph to register. + schema: + $ref: "#/definitions/RegisteredTaskGraph" + responses: + 204: + description: Task graph registered successfully. + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + patch: + description: > + Update the contents of an existing registered task graph. + operationId: updateRegisteredTaskGraph + tags: + - registered_task_graphs + parameters: + - name: graph + in: body + description: The new contents of the task graph. + schema: + $ref: "#/definitions/RegisteredTaskGraph" + responses: + 204: + description: Task graph updated successfully. + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + delete: + description: > + Delete the given registered task graph. + operationId: deleteRegisteredTaskGraph + tags: + - registered_task_graphs + responses: + 204: + description: Task graph successfully deleted. + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + + /taskgraphs/{namespace}/registered/{name}/share: + parameters: + - name: namespace + in: path + description: The namespace that owns the registered task graph. + type: string + required: true + - name: name + in: path + description: The name of the task graph. + type: string + required: true + get: + description: Get sharing policies for the task graph. + tags: + - registered_task_graphs + operationId: getRegisteredTaskGraphSharingPolicies + responses: + 200: + description: List of all specific sharing policies + schema: + type: array + x-omitempty: true + items: + $ref: "#/definitions/TaskGraphSharing" + 404: + description: > + The task graph does not exist (or the user does not have permission + to view policies) + schema: + $ref: '#/definitions/Error' + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" + patch: + description: Share a task graph. + tags: + - registered_task_graphs + operationId: shareRegisteredTaskGraph + parameters: + - name: task_graph_sharing + in: body + description: > + 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. + schema: + $ref: "#/definitions/TaskGraphSharing" + required: true + responses: + 204: + description: UDF shared successfully + 404: + description: UDF does not exist or user does not have permissions to share UDF + schema: + $ref: '#/definitions/Error' + 502: + description: Bad Gateway + default: + description: error response + schema: + $ref: "#/definitions/Error" diff --git a/src/main/AndroidManifest.xml b/src/main/AndroidManifest.xml index 54fbcb3..5648d96 100644 --- a/src/main/AndroidManifest.xml +++ b/src/main/AndroidManifest.xml @@ -1,3 +1,3 @@ - + diff --git a/src/main/java/examples/Examples.java b/src/main/java/examples/Examples.java index 0e211a0..a89d944 100644 --- a/src/main/java/examples/Examples.java +++ b/src/main/java/examples/Examples.java @@ -6,7 +6,6 @@ import io.tiledb.cloud.rest_api.api.GroupsApi; import io.tiledb.cloud.rest_api.api.ArrayApi; import io.tiledb.cloud.rest_api.model.*; -import jdk.swing.interop.SwingInterOpUtils; import org.apache.arrow.vector.ValueVector; import java.math.BigDecimal; @@ -39,7 +38,7 @@ public static void main(String[] args) { runGenericUDF(tileDBClient); runArrayUDF(tileDBClient); runMultiArrayUDF(tileDBClient); - getArraySchema(tileDBClient); + getArray(tileDBClient); // createArray(tileDBClient); // registerArray(tileDBClient); listArrays(tileDBClient); @@ -209,12 +208,13 @@ private static void listGroups(TileDBClient tileDBClient) String namespace = "TileDB-Inc"; // 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 List tag = null; // List | tag to search for, more than one can be included 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 try { - GroupBrowserData result = apiInstance.listPublicGroups(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, flat, parent); + 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) { @@ -244,8 +244,7 @@ private static void listArrays(TileDBClient tileDBClient) } } - - private static void getArraySchema(TileDBClient tileDBClient){ + private static void getArray(TileDBClient tileDBClient){ String namespace = "TileDB-Inc"; // String | namespace array is in (an organization name or user's username) String array = "quickstart_sparse"; // String | name/uri of array that is url-encoded String contentType = "application/json"; // String | Content Type of input and return mime diff --git a/src/main/java/io/tiledb/cloud/CustomCode.txt b/src/main/java/io/tiledb/cloud/CustomCode.txt index 83e109a..bb670c0 100644 --- a/src/main/java/io/tiledb/cloud/CustomCode.txt +++ b/src/main/java/io/tiledb/cloud/CustomCode.txt @@ -49,123 +49,219 @@ public byte[] runSQLBytes(String namespace, SQLParameters sql, String acceptEnco UdfApi.java /** - * - * 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
- */ +* +* 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); + 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
- */ +* +* 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(); + 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(); +} /** - * - * 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 +* +* 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 String submitUDF(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 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); } /** - * - * 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 +* +* 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 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(); +*/ +public Object submitGenericUDFObj(String namespace, GenericUDF udf, String acceptEncoding) throws ApiException { + ApiResponse localVarResp = submitGenericUDFWithHttpInfoObj(namespace, udf, acceptEncoding); + 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 +* +* 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 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); +*/ +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); } /** * - * submit a multi-array UDF in the given namespace + * 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 @@ -175,17 +271,20 @@ public ApiResponse submitUDFWithHttpInfoBytes(String namespace, String a 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); +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(); } /** * - * submit a multi-array UDF in the given namespace + * 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 @@ -195,18 +294,21 @@ public String submitMultiArrayUDFString(String namespace, MultiArrayUDF udf, Str 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); +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); } /** * - * submit a multi-array UDF in the given namespace + * 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 @@ -216,17 +318,20 @@ public ApiResponse submitMultiArrayUDFWithHttpInfoString(String namespac 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); +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(); } /** * - * submit a multi-array UDF in the given namespace + * 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 @@ -236,13 +341,8 @@ public byte[] submitMultiArrayUDFBytes(String namespace, MultiArrayUDF udf, Stri 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); +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); -} - - - - - +} \ No newline at end of file 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 1bbcfc2..467ac42 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/ApiClient.java +++ b/src/main/java/io/tiledb/cloud/rest_api/ApiClient.java @@ -3,7 +3,7 @@ * TileDB Storage Platform REST API * * The version of the OpenAPI document: 2.2.19 - * + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -165,8 +165,8 @@ public ApiClient(String basePath, String clientId, String clientSecret, Map formParams) { for (Object item: list) { if (item instanceof File) { addPartToMultiPartBuilder(mpBuilder, param.getKey(), (File) item); + } else { + addPartToMultiPartBuilder(mpBuilder, param.getKey(), param.getValue()); } } } else { - Headers partHeaders = Headers.of("Content-Disposition", "form-data; name=\"" + param.getKey() + "\""); - mpBuilder.addPart(partHeaders, RequestBody.create(parameterToString(param.getValue()), null)); + addPartToMultiPartBuilder(mpBuilder, param.getKey(), param.getValue()); } } return mpBuilder.build(); @@ -1424,16 +1427,41 @@ public String guessContentTypeFromFile(File file) { /** * Add a Content-Disposition Header for the given key and file to the MultipartBody Builder. * - * @param mpBuilder MultipartBody.Builder + * @param mpBuilder MultipartBody.Builder * @param key The key of the Header element * @param file The file to add to the Header - */ + */ private void addPartToMultiPartBuilder(MultipartBody.Builder mpBuilder, String key, File file) { Headers partHeaders = Headers.of("Content-Disposition", "form-data; name=\"" + key + "\"; filename=\"" + file.getName() + "\""); MediaType mediaType = MediaType.parse(guessContentTypeFromFile(file)); mpBuilder.addPart(partHeaders, RequestBody.create(file, mediaType)); } + /** + * Add a Content-Disposition Header for the given key and complex object to the MultipartBody Builder. + * + * @param mpBuilder MultipartBody.Builder + * @param key The key of the Header element + * @param obj The complex object to add to the Header + */ + private void addPartToMultiPartBuilder(MultipartBody.Builder mpBuilder, String key, Object obj) { + RequestBody requestBody; + if (obj instanceof String) { + requestBody = RequestBody.create((String) obj, MediaType.parse("text/plain")); + } else { + String content; + if (obj != null) { + content = json.serialize(obj); + } else { + content = null; + } + requestBody = RequestBody.create(content, MediaType.parse("application/json")); + } + + Headers partHeaders = Headers.of("Content-Disposition", "form-data; name=\"" + key + "\""); + mpBuilder.addPart(partHeaders, requestBody); + } + /** * Get network interceptor to add it to the httpClient to track download progress for * async requests. @@ -1447,8 +1475,8 @@ public Response intercept(Interceptor.Chain chain) throws IOException { if (request.tag() instanceof ApiCallback) { final ApiCallback callback = (ApiCallback) request.tag(); return originalResponse.newBuilder() - .body(new ProgressResponseBody(originalResponse.body(), callback)) - .build(); + .body(new ProgressResponseBody(originalResponse.body(), callback)) + .build(); } return originalResponse; } @@ -1513,9 +1541,9 @@ public boolean verify(String hostname, SSLSession session) { SSLContext sslContext = SSLContext.getInstance("TLS"); sslContext.init(keyManagers, trustManagers, new SecureRandom()); httpClient = httpClient.newBuilder() - .sslSocketFactory(sslContext.getSocketFactory(), (X509TrustManager) trustManagers[0]) - .hostnameVerifier(hostnameVerifier) - .build(); + .sslSocketFactory(sslContext.getSocketFactory(), (X509TrustManager) trustManagers[0]) + .hostnameVerifier(hostnameVerifier) + .build(); } catch (GeneralSecurityException e) { throw new RuntimeException(e); } @@ -1534,7 +1562,7 @@ private KeyStore newEmptyKeyStore(char[] password) throws GeneralSecurityExcepti /** * Convert the HTTP request body to a string. * - * @param request The HTTP request object + * @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 */ @@ -1552,4 +1580,4 @@ private String requestBodyToString(RequestBody requestBody) throws ApiException // empty http request body return ""; } -} \ No newline at end of file +} 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 4938f43..c43e9e4 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/ApiException.java +++ b/src/main/java/io/tiledb/cloud/rest_api/ApiException.java @@ -22,7 +22,7 @@ *

ApiException class.

*/ @SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; 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 7b346a8..fd82662 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/Configuration.java +++ b/src/main/java/io/tiledb/cloud/rest_api/Configuration.java @@ -13,7 +13,7 @@ package io.tiledb.cloud.rest_api; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class Configuration { private static ApiClient defaultApiClient = new ApiClient(); 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 fee72db..aedaa48 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/JSON.java +++ b/src/main/java/io/tiledb/cloud/rest_api/JSON.java @@ -97,9 +97,10 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri 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 io.tiledb.cloud.rest_api.model.ArrayFavoritesData.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new ArrayInfo.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new ArrayInfoUpdate.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new ArrayMetadata.CustomTypeAdapterFactory()); @@ -110,26 +111,36 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new ArrayTask.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new ArrayTaskBrowserSidebar.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new ArrayTaskData.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new ArrayTaskLog.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.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 io.tiledb.cloud.rest_api.model.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 io.tiledb.cloud.rest_api.model.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()); @@ -146,12 +157,14 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri 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 io.tiledb.cloud.rest_api.model.MultiArrayUDF.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new NonEmptyDomain.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new NotebookCopied.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new NotebookCopy.CustomTypeAdapterFactory()); @@ -168,26 +181,38 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new QueryReader.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new ReadState.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new RegisteredTaskGraph.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new RegisteredTaskGraphNode.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 TGUDFNodeData.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new TGUDFEnvironmentResources.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new io.tiledb.cloud.rest_api.model.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 io.tiledb.cloud.rest_api.model.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()); 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 3b7046f..b71d75a 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/Pair.java +++ b/src/main/java/io/tiledb/cloud/rest_api/Pair.java @@ -13,7 +13,7 @@ package io.tiledb.cloud.rest_api; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class Pair { private String name = ""; private String value = ""; 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 348b732..6c5731f 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/StringUtil.java +++ b/src/main/java/io/tiledb/cloud/rest_api/StringUtil.java @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") 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 0ac16aa..6b74622 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 @@ -13,12 +13,12 @@ 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.Pair; -import io.tiledb.cloud.rest_api.ApiCallback; import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.Pair; import com.google.gson.reflect.TypeToken; @@ -26,6 +26,7 @@ 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; @@ -33,12 +34,14 @@ import io.tiledb.cloud.rest_api.model.ArraySample; import io.tiledb.cloud.rest_api.model.ArraySchema; import io.tiledb.cloud.rest_api.model.ArraySharing; +import io.tiledb.cloud.rest_api.model.ArrayVacuumRequest; import java.math.BigDecimal; +import io.tiledb.cloud.rest_api.model.FragmentInfo; +import io.tiledb.cloud.rest_api.model.FragmentInfoRequest; import io.tiledb.cloud.rest_api.model.LastAccessedArray; import io.tiledb.cloud.rest_api.model.MaxBufferSizes; import io.tiledb.cloud.rest_api.model.NonEmptyDomain; -import io.tiledb.cloud.rest_api.model.TileDBConfig; import java.lang.reflect.Type; import java.util.ArrayList; @@ -89,7 +92,7 @@ public void setCustomBaseUrl(String customBaseUrl) { * @param array name/uri of array that is url-encoded (required) * @param start Start time of window of fetch logs, unix epoch in seconds (default: seven days ago) (optional) * @param end End time of window of fetch logs, unix epoch in seconds (default: current utc timestamp) (optional) - * @param eventTypes Event values can be one or more of the following read, write, create, delete, register, deregister, comma separated (optional) + * @param eventTypes Refer to ActivityEventType for possible values (optional) * @param taskId Array task ID To filter activity to (optional) * @param hasTaskId Excludes activity log results that do not contain an array task UUID (optional) * @param _callback Callback for upload/download progress @@ -99,6 +102,7 @@ public void setCustomBaseUrl(String customBaseUrl) { +
Status Code Description Response Headers
200 log of array activity -
502 Bad Gateway -
0 error response -
*/ @@ -195,7 +199,7 @@ private okhttp3.Call arrayActivityLogValidateBeforeCall(String namespace, String * @param array name/uri of array that is url-encoded (required) * @param start Start time of window of fetch logs, unix epoch in seconds (default: seven days ago) (optional) * @param end End time of window of fetch logs, unix epoch in seconds (default: current utc timestamp) (optional) - * @param eventTypes Event values can be one or more of the following read, write, create, delete, register, deregister, comma separated (optional) + * @param eventTypes Refer to ActivityEventType for possible values (optional) * @param taskId Array task ID To filter activity to (optional) * @param hasTaskId Excludes activity log results that do not contain an array task UUID (optional) * @return List<ArrayActivityLog> @@ -204,6 +208,7 @@ private okhttp3.Call arrayActivityLogValidateBeforeCall(String namespace, String +
Status Code Description Response Headers
200 log of array activity -
502 Bad Gateway -
0 error response -
*/ @@ -219,7 +224,7 @@ public List arrayActivityLog(String namespace, String array, I * @param array name/uri of array that is url-encoded (required) * @param start Start time of window of fetch logs, unix epoch in seconds (default: seven days ago) (optional) * @param end End time of window of fetch logs, unix epoch in seconds (default: current utc timestamp) (optional) - * @param eventTypes Event values can be one or more of the following read, write, create, delete, register, deregister, comma separated (optional) + * @param eventTypes Refer to ActivityEventType for possible values (optional) * @param taskId Array task ID To filter activity to (optional) * @param hasTaskId Excludes activity log results that do not contain an array task UUID (optional) * @return ApiResponse<List<ArrayActivityLog>> @@ -228,6 +233,7 @@ public List arrayActivityLog(String namespace, String array, I +
Status Code Description Response Headers
200 log of array activity -
502 Bad Gateway -
0 error response -
*/ @@ -244,7 +250,7 @@ public ApiResponse> arrayActivityLogWithHttpInfo(String n * @param array name/uri of array that is url-encoded (required) * @param start Start time of window of fetch logs, unix epoch in seconds (default: seven days ago) (optional) * @param end End time of window of fetch logs, unix epoch in seconds (default: current utc timestamp) (optional) - * @param eventTypes Event values can be one or more of the following read, write, create, delete, register, deregister, comma separated (optional) + * @param eventTypes Refer to ActivityEventType for possible values (optional) * @param taskId Array task ID To filter activity to (optional) * @param hasTaskId Excludes activity log results that do not contain an array task UUID (optional) * @param _callback The callback to be executed when the API call finishes @@ -254,6 +260,7 @@ public ApiResponse> arrayActivityLogWithHttpInfo(String n +
Status Code Description Response Headers
200 log of array activity -
502 Bad Gateway -
0 error response -
*/ @@ -284,6 +291,7 @@ public okhttp3.Call arrayActivityLogAsync(String namespace, String array, Intege +
Status Code Description Response Headers
200 Array of array info that are owned directly by user or user's organizations -
502 Bad Gateway -
0 error response -
*/ @@ -405,6 +413,7 @@ private okhttp3.Call arraysBrowserOwnedGetValidateBeforeCall(Integer page, Integ +
Status Code Description Response Headers
200 Array of array info that are owned directly by user or user's organizations -
502 Bad Gateway -
0 error response -
*/ @@ -433,6 +442,7 @@ public ArrayBrowserData arraysBrowserOwnedGet(Integer page, Integer perPage, Str +
Status Code Description Response Headers
200 Array of array info that are owned directly by user or user's organizations -
502 Bad Gateway -
0 error response -
*/ @@ -463,6 +473,7 @@ public ApiResponse arraysBrowserOwnedGetWithHttpInfo(Integer p +
Status Code Description Response Headers
200 Array of array info that are owned directly by user or user's organizations -
502 Bad Gateway -
0 error response -
*/ @@ -475,6 +486,9 @@ public okhttp3.Call arraysBrowserOwnedGetAsync(Integer page, Integer perPage, St } /** * Build call for arraysBrowserOwnedSidebarGet + * @param fileType file_type to search for, more than one can be included (optional) + * @param excludeFileType file_type to exclude matching array in results, more than one can be included (optional) + * @param fileProperty file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -482,10 +496,11 @@ public okhttp3.Call arraysBrowserOwnedGetAsync(Integer page, Integer perPage, St +
Status Code Description Response Headers
200 Array of array info that are owned directly by user or user's organizations -
502 Bad Gateway -
0 error response -
*/ - public okhttp3.Call arraysBrowserOwnedSidebarGetCall(final ApiCallback _callback) throws ApiException { + public okhttp3.Call arraysBrowserOwnedSidebarGetCall(List fileType, List excludeFileType, List fileProperty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -510,6 +525,18 @@ public okhttp3.Call arraysBrowserOwnedSidebarGetCall(final ApiCallback _callback Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (fileType != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "file_type", fileType)); + } + + if (excludeFileType != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "exclude_file_type", excludeFileType)); + } + + if (fileProperty != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "file_property", fileProperty)); + } + final String[] localVarAccepts = { "application/json" }; @@ -531,10 +558,10 @@ public okhttp3.Call arraysBrowserOwnedSidebarGetCall(final ApiCallback _callback } @SuppressWarnings("rawtypes") - private okhttp3.Call arraysBrowserOwnedSidebarGetValidateBeforeCall(final ApiCallback _callback) throws ApiException { + private okhttp3.Call arraysBrowserOwnedSidebarGetValidateBeforeCall(List fileType, List excludeFileType, List fileProperty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = arraysBrowserOwnedSidebarGetCall(_callback); + okhttp3.Call localVarCall = arraysBrowserOwnedSidebarGetCall(fileType, excludeFileType, fileProperty, _callback); return localVarCall; } @@ -542,34 +569,42 @@ private okhttp3.Call arraysBrowserOwnedSidebarGetValidateBeforeCall(final ApiCal /** * * Fetch a sidebar for arrays that are owned directly by user or user's organizations + * @param fileType file_type to search for, more than one can be included (optional) + * @param excludeFileType file_type to exclude matching array in results, more than one can be included (optional) + * @param fileProperty file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included (optional) * @return ArrayBrowserSidebar * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Status Code Description Response Headers
200 Array of array info that are owned directly by user or user's organizations -
502 Bad Gateway -
0 error response -
*/ - public ArrayBrowserSidebar arraysBrowserOwnedSidebarGet() throws ApiException { - ApiResponse localVarResp = arraysBrowserOwnedSidebarGetWithHttpInfo(); + public ArrayBrowserSidebar arraysBrowserOwnedSidebarGet(List fileType, List excludeFileType, List fileProperty) throws ApiException { + ApiResponse localVarResp = arraysBrowserOwnedSidebarGetWithHttpInfo(fileType, excludeFileType, fileProperty); return localVarResp.getData(); } /** * * Fetch a sidebar for arrays that are owned directly by user or user's organizations + * @param fileType file_type to search for, more than one can be included (optional) + * @param excludeFileType file_type to exclude matching array in results, more than one can be included (optional) + * @param fileProperty file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included (optional) * @return ApiResponse<ArrayBrowserSidebar> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Status Code Description Response Headers
200 Array of array info that are owned directly by user or user's organizations -
502 Bad Gateway -
0 error response -
*/ - public ApiResponse arraysBrowserOwnedSidebarGetWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = arraysBrowserOwnedSidebarGetValidateBeforeCall(null); + public ApiResponse arraysBrowserOwnedSidebarGetWithHttpInfo(List fileType, List excludeFileType, List fileProperty) throws ApiException { + okhttp3.Call localVarCall = arraysBrowserOwnedSidebarGetValidateBeforeCall(fileType, excludeFileType, fileProperty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -577,6 +612,9 @@ public ApiResponse arraysBrowserOwnedSidebarGetWithHttpInfo /** * (asynchronously) * Fetch a sidebar for arrays that are owned directly by user or user's organizations + * @param fileType file_type to search for, more than one can be included (optional) + * @param excludeFileType file_type to exclude matching array in results, more than one can be included (optional) + * @param fileProperty file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -584,12 +622,13 @@ public ApiResponse arraysBrowserOwnedSidebarGetWithHttpInfo +
Status Code Description Response Headers
200 Array of array info that are owned directly by user or user's organizations -
502 Bad Gateway -
0 error response -
*/ - public okhttp3.Call arraysBrowserOwnedSidebarGetAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call arraysBrowserOwnedSidebarGetAsync(List fileType, List excludeFileType, List fileProperty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = arraysBrowserOwnedSidebarGetValidateBeforeCall(_callback); + okhttp3.Call localVarCall = arraysBrowserOwnedSidebarGetValidateBeforeCall(fileType, excludeFileType, fileProperty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -614,6 +653,7 @@ public okhttp3.Call arraysBrowserOwnedSidebarGetAsync(final ApiCallback Status Code Description Response Headers 200 Array of array info that has been shared publically - + 502 Bad Gateway - 0 error response - */ @@ -735,6 +775,7 @@ private okhttp3.Call arraysBrowserPublicGetValidateBeforeCall(Integer page, Inte +
Status Code Description Response Headers
200 Array of array info that has been shared publically -
502 Bad Gateway -
0 error response -
*/ @@ -763,6 +804,7 @@ public ArrayBrowserData arraysBrowserPublicGet(Integer page, Integer perPage, St +
Status Code Description Response Headers
200 Array of array info that has been shared publically -
502 Bad Gateway -
0 error response -
*/ @@ -793,6 +835,7 @@ public ApiResponse arraysBrowserPublicGetWithHttpInfo(Integer +
Status Code Description Response Headers
200 Array of array info that has been shared publically -
502 Bad Gateway -
0 error response -
*/ @@ -805,6 +848,9 @@ public okhttp3.Call arraysBrowserPublicGetAsync(Integer page, Integer perPage, S } /** * Build call for arraysBrowserPublicSidebarGet + * @param fileType file_type to search for, more than one can be included (optional) + * @param excludeFileType file_type to exclude matching array in results, more than one can be included (optional) + * @param fileProperty file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -812,10 +858,11 @@ public okhttp3.Call arraysBrowserPublicGetAsync(Integer page, Integer perPage, S +
Status Code Description Response Headers
200 Array of array info that has been shared publically -
502 Bad Gateway -
0 error response -
*/ - public okhttp3.Call arraysBrowserPublicSidebarGetCall(final ApiCallback _callback) throws ApiException { + public okhttp3.Call arraysBrowserPublicSidebarGetCall(List fileType, List excludeFileType, List fileProperty, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -840,6 +887,18 @@ public okhttp3.Call arraysBrowserPublicSidebarGetCall(final ApiCallback _callbac Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (fileType != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "file_type", fileType)); + } + + if (excludeFileType != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "exclude_file_type", excludeFileType)); + } + + if (fileProperty != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "file_property", fileProperty)); + } + final String[] localVarAccepts = { "application/json" }; @@ -861,10 +920,10 @@ public okhttp3.Call arraysBrowserPublicSidebarGetCall(final ApiCallback _callbac } @SuppressWarnings("rawtypes") - private okhttp3.Call arraysBrowserPublicSidebarGetValidateBeforeCall(final ApiCallback _callback) throws ApiException { + private okhttp3.Call arraysBrowserPublicSidebarGetValidateBeforeCall(List fileType, List excludeFileType, List fileProperty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = arraysBrowserPublicSidebarGetCall(_callback); + okhttp3.Call localVarCall = arraysBrowserPublicSidebarGetCall(fileType, excludeFileType, fileProperty, _callback); return localVarCall; } @@ -872,34 +931,42 @@ private okhttp3.Call arraysBrowserPublicSidebarGetValidateBeforeCall(final ApiCa /** * * Fetch a sidebar of all arrays that have been shared publically + * @param fileType file_type to search for, more than one can be included (optional) + * @param excludeFileType file_type to exclude matching array in results, more than one can be included (optional) + * @param fileProperty file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included (optional) * @return ArrayBrowserSidebar * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Status Code Description Response Headers
200 Array of array info that has been shared publically -
502 Bad Gateway -
0 error response -
*/ - public ArrayBrowserSidebar arraysBrowserPublicSidebarGet() throws ApiException { - ApiResponse localVarResp = arraysBrowserPublicSidebarGetWithHttpInfo(); + public ArrayBrowserSidebar arraysBrowserPublicSidebarGet(List fileType, List excludeFileType, List fileProperty) throws ApiException { + ApiResponse localVarResp = arraysBrowserPublicSidebarGetWithHttpInfo(fileType, excludeFileType, fileProperty); return localVarResp.getData(); } /** * * Fetch a sidebar of all arrays that have been shared publically + * @param fileType file_type to search for, more than one can be included (optional) + * @param excludeFileType file_type to exclude matching array in results, more than one can be included (optional) + * @param fileProperty file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included (optional) * @return ApiResponse<ArrayBrowserSidebar> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Status Code Description Response Headers
200 Array of array info that has been shared publically -
502 Bad Gateway -
0 error response -
*/ - public ApiResponse arraysBrowserPublicSidebarGetWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = arraysBrowserPublicSidebarGetValidateBeforeCall(null); + public ApiResponse arraysBrowserPublicSidebarGetWithHttpInfo(List fileType, List excludeFileType, List fileProperty) throws ApiException { + okhttp3.Call localVarCall = arraysBrowserPublicSidebarGetValidateBeforeCall(fileType, excludeFileType, fileProperty, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -907,6 +974,9 @@ public ApiResponse arraysBrowserPublicSidebarGetWithHttpInf /** * (asynchronously) * Fetch a sidebar of all arrays that have been shared publically + * @param fileType file_type to search for, more than one can be included (optional) + * @param excludeFileType file_type to exclude matching array in results, more than one can be included (optional) + * @param fileProperty file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -914,12 +984,13 @@ public ApiResponse arraysBrowserPublicSidebarGetWithHttpInf +
Status Code Description Response Headers
200 Array of array info that has been shared publically -
502 Bad Gateway -
0 error response -
*/ - public okhttp3.Call arraysBrowserPublicSidebarGetAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call arraysBrowserPublicSidebarGetAsync(List fileType, List excludeFileType, List fileProperty, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = arraysBrowserPublicSidebarGetValidateBeforeCall(_callback); + okhttp3.Call localVarCall = arraysBrowserPublicSidebarGetValidateBeforeCall(fileType, excludeFileType, fileProperty, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -945,6 +1016,7 @@ public okhttp3.Call arraysBrowserPublicSidebarGetAsync(final ApiCallback Status Code Description Response Headers 200 Array of array info that has been shared with the user - + 502 Bad Gateway - 0 error response - */ @@ -1071,6 +1143,7 @@ private okhttp3.Call arraysBrowserSharedGetValidateBeforeCall(Integer page, Inte +
Status Code Description Response Headers
200 Array of array info that has been shared with the user -
502 Bad Gateway -
0 error response -
*/ @@ -1100,6 +1173,7 @@ public ArrayBrowserData arraysBrowserSharedGet(Integer page, Integer perPage, St +
Status Code Description Response Headers
200 Array of array info that has been shared with the user -
502 Bad Gateway -
0 error response -
*/ @@ -1131,6 +1205,7 @@ public ApiResponse arraysBrowserSharedGetWithHttpInfo(Integer +
Status Code Description Response Headers
200 Array of array info that has been shared with the user -
502 Bad Gateway -
0 error response -
*/ @@ -1143,6 +1218,10 @@ public okhttp3.Call arraysBrowserSharedGetAsync(Integer page, Integer perPage, S } /** * Build call for arraysBrowserSharedSidebarGet + * @param fileType file_type to search for, more than one can be included (optional) + * @param excludeFileType file_type to exclude matching array in results, more than one can be included (optional) + * @param fileProperty file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included (optional) + * @param sharedTo namespaces to filter results of where there groups were shared to (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1150,10 +1229,11 @@ public okhttp3.Call arraysBrowserSharedGetAsync(Integer page, Integer perPage, S +
Status Code Description Response Headers
200 Array of array info that has been shared with the user -
502 Bad Gateway -
0 error response -
*/ - public okhttp3.Call arraysBrowserSharedSidebarGetCall(final ApiCallback _callback) throws ApiException { + public okhttp3.Call arraysBrowserSharedSidebarGetCall(List fileType, List excludeFileType, List fileProperty, List sharedTo, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1178,6 +1258,22 @@ public okhttp3.Call arraysBrowserSharedSidebarGetCall(final ApiCallback _callbac Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (fileType != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "file_type", fileType)); + } + + if (excludeFileType != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "exclude_file_type", excludeFileType)); + } + + if (fileProperty != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "file_property", fileProperty)); + } + + if (sharedTo != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "shared_to", sharedTo)); + } + final String[] localVarAccepts = { "application/json" }; @@ -1199,10 +1295,10 @@ public okhttp3.Call arraysBrowserSharedSidebarGetCall(final ApiCallback _callbac } @SuppressWarnings("rawtypes") - private okhttp3.Call arraysBrowserSharedSidebarGetValidateBeforeCall(final ApiCallback _callback) throws ApiException { + private okhttp3.Call arraysBrowserSharedSidebarGetValidateBeforeCall(List fileType, List excludeFileType, List fileProperty, List sharedTo, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = arraysBrowserSharedSidebarGetCall(_callback); + okhttp3.Call localVarCall = arraysBrowserSharedSidebarGetCall(fileType, excludeFileType, fileProperty, sharedTo, _callback); return localVarCall; } @@ -1210,34 +1306,44 @@ private okhttp3.Call arraysBrowserSharedSidebarGetValidateBeforeCall(final ApiCa /** * * Fetch a list of all arrays that have been shared with the user + * @param fileType file_type to search for, more than one can be included (optional) + * @param excludeFileType file_type to exclude matching array in results, more than one can be included (optional) + * @param fileProperty file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included (optional) + * @param sharedTo namespaces to filter results of where there groups were shared to (optional) * @return ArrayBrowserSidebar * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Status Code Description Response Headers
200 Array of array info that has been shared with the user -
502 Bad Gateway -
0 error response -
*/ - public ArrayBrowserSidebar arraysBrowserSharedSidebarGet() throws ApiException { - ApiResponse localVarResp = arraysBrowserSharedSidebarGetWithHttpInfo(); + public ArrayBrowserSidebar arraysBrowserSharedSidebarGet(List fileType, List excludeFileType, List fileProperty, List sharedTo) throws ApiException { + ApiResponse localVarResp = arraysBrowserSharedSidebarGetWithHttpInfo(fileType, excludeFileType, fileProperty, sharedTo); return localVarResp.getData(); } /** * * Fetch a list of all arrays that have been shared with the user + * @param fileType file_type to search for, more than one can be included (optional) + * @param excludeFileType file_type to exclude matching array in results, more than one can be included (optional) + * @param fileProperty file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included (optional) + * @param sharedTo namespaces to filter results of where there groups were shared to (optional) * @return ApiResponse<ArrayBrowserSidebar> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Status Code Description Response Headers
200 Array of array info that has been shared with the user -
502 Bad Gateway -
0 error response -
*/ - public ApiResponse arraysBrowserSharedSidebarGetWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = arraysBrowserSharedSidebarGetValidateBeforeCall(null); + public ApiResponse arraysBrowserSharedSidebarGetWithHttpInfo(List fileType, List excludeFileType, List fileProperty, List sharedTo) throws ApiException { + okhttp3.Call localVarCall = arraysBrowserSharedSidebarGetValidateBeforeCall(fileType, excludeFileType, fileProperty, sharedTo, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1245,6 +1351,10 @@ public ApiResponse arraysBrowserSharedSidebarGetWithHttpInf /** * (asynchronously) * Fetch a list of all arrays that have been shared with the user + * @param fileType file_type to search for, more than one can be included (optional) + * @param excludeFileType file_type to exclude matching array in results, more than one can be included (optional) + * @param fileProperty file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included (optional) + * @param sharedTo namespaces to filter results of where there groups were shared to (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1252,12 +1362,13 @@ public ApiResponse arraysBrowserSharedSidebarGetWithHttpInf +
Status Code Description Response Headers
200 Array of array info that has been shared with the user -
502 Bad Gateway -
0 error response -
*/ - public okhttp3.Call arraysBrowserSharedSidebarGetAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call arraysBrowserSharedSidebarGetAsync(List fileType, List excludeFileType, List fileProperty, List sharedTo, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = arraysBrowserSharedSidebarGetValidateBeforeCall(_callback); + okhttp3.Call localVarCall = arraysBrowserSharedSidebarGetValidateBeforeCall(fileType, excludeFileType, fileProperty, sharedTo, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1275,6 +1386,7 @@ public okhttp3.Call arraysBrowserSharedSidebarGetAsync(final ApiCallback Status Code Description Response Headers 200 list of timestamps in milliseconds, paginated - + 502 Bad Gateway - 0 error response - */ @@ -1365,6 +1477,7 @@ private okhttp3.Call arraysNamespaceArrayEndTimestampsGetValidateBeforeCall(Stri +
Status Code Description Response Headers
200 list of timestamps in milliseconds, paginated -
502 Bad Gateway -
0 error response -
*/ @@ -1386,6 +1499,7 @@ public ArrayEndTimestampData arraysNamespaceArrayEndTimestampsGet(String namespa +
Status Code Description Response Headers
200 list of timestamps in milliseconds, paginated -
502 Bad Gateway -
0 error response -
*/ @@ -1409,6 +1523,7 @@ public ApiResponse arraysNamespaceArrayEndTimestampsGetWi +
Status Code Description Response Headers
200 list of timestamps in milliseconds, paginated -
502 Bad Gateway -
0 error response -
*/ @@ -1423,7 +1538,7 @@ public okhttp3.Call arraysNamespaceArrayEndTimestampsGetAsync(String namespace, * Build call for consolidateArray * @param namespace namespace array is in (an organization name or user's username) (required) * @param array name/uri of array that is url-encoded (required) - * @param tiledbConfig tiledb configuration (required) + * @param consolidateRequest Consolidate Request (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1431,10 +1546,11 @@ public okhttp3.Call arraysNamespaceArrayEndTimestampsGetAsync(String namespace, +
Status Code Description Response Headers
204 array consolidated successfully -
502 Bad Gateway -
0 error response -
*/ - public okhttp3.Call consolidateArrayCall(String namespace, String array, TileDBConfig tiledbConfig, final ApiCallback _callback) throws ApiException { + public okhttp3.Call consolidateArrayCall(String namespace, String array, ArrayConsolidationRequest consolidateRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1448,7 +1564,7 @@ public okhttp3.Call consolidateArrayCall(String namespace, String array, TileDBC basePath = null; } - Object localVarPostBody = tiledbConfig; + Object localVarPostBody = consolidateRequest; // create path and map variables String localVarPath = "/arrays/{namespace}/{array}/consolidate" @@ -1482,7 +1598,7 @@ public okhttp3.Call consolidateArrayCall(String namespace, String array, TileDBC } @SuppressWarnings("rawtypes") - private okhttp3.Call consolidateArrayValidateBeforeCall(String namespace, String array, TileDBConfig tiledbConfig, final ApiCallback _callback) throws ApiException { + 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) { @@ -1494,13 +1610,13 @@ private okhttp3.Call consolidateArrayValidateBeforeCall(String namespace, String throw new ApiException("Missing the required parameter 'array' when calling consolidateArray(Async)"); } - // verify the required parameter 'tiledbConfig' is set - if (tiledbConfig == null) { - throw new ApiException("Missing the required parameter 'tiledbConfig' 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, tiledbConfig, _callback); + okhttp3.Call localVarCall = consolidateArrayCall(namespace, array, consolidateRequest, _callback); return localVarCall; } @@ -1510,17 +1626,18 @@ private okhttp3.Call consolidateArrayValidateBeforeCall(String namespace, String * consolidate an array at a specified URI * @param namespace namespace array is in (an organization name or user's username) (required) * @param array name/uri of array that is url-encoded (required) - * @param tiledbConfig tiledb configuration (required) + * @param consolidateRequest Consolidate Request (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 array consolidated successfully -
502 Bad Gateway -
0 error response -
*/ - public void consolidateArray(String namespace, String array, TileDBConfig tiledbConfig) throws ApiException { - consolidateArrayWithHttpInfo(namespace, array, tiledbConfig); + public void consolidateArray(String namespace, String array, ArrayConsolidationRequest consolidateRequest) throws ApiException { + consolidateArrayWithHttpInfo(namespace, array, consolidateRequest); } /** @@ -1528,18 +1645,19 @@ public void consolidateArray(String namespace, String array, TileDBConfig tiledb * consolidate an array at a specified URI * @param namespace namespace array is in (an organization name or user's username) (required) * @param array name/uri of array that is url-encoded (required) - * @param tiledbConfig tiledb configuration (required) + * @param consolidateRequest Consolidate Request (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 array consolidated successfully -
502 Bad Gateway -
0 error response -
*/ - public ApiResponse consolidateArrayWithHttpInfo(String namespace, String array, TileDBConfig tiledbConfig) throws ApiException { - okhttp3.Call localVarCall = consolidateArrayValidateBeforeCall(namespace, array, tiledbConfig, null); + public ApiResponse consolidateArrayWithHttpInfo(String namespace, String array, ArrayConsolidationRequest consolidateRequest) throws ApiException { + okhttp3.Call localVarCall = consolidateArrayValidateBeforeCall(namespace, array, consolidateRequest, null); return localVarApiClient.execute(localVarCall); } @@ -1548,7 +1666,7 @@ public ApiResponse consolidateArrayWithHttpInfo(String namespace, String a * consolidate an array at a specified URI * @param namespace namespace array is in (an organization name or user's username) (required) * @param array name/uri of array that is url-encoded (required) - * @param tiledbConfig tiledb configuration (required) + * @param consolidateRequest Consolidate 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 @@ -1556,12 +1674,13 @@ public ApiResponse consolidateArrayWithHttpInfo(String namespace, String a +
Status Code Description Response Headers
204 array consolidated successfully -
502 Bad Gateway -
0 error response -
*/ - public okhttp3.Call consolidateArrayAsync(String namespace, String array, TileDBConfig tiledbConfig, final ApiCallback _callback) throws ApiException { + public okhttp3.Call consolidateArrayAsync(String namespace, String array, ArrayConsolidationRequest consolidateRequest, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = consolidateArrayValidateBeforeCall(namespace, array, tiledbConfig, _callback); + okhttp3.Call localVarCall = consolidateArrayValidateBeforeCall(namespace, array, consolidateRequest, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } @@ -1579,6 +1698,7 @@ public okhttp3.Call consolidateArrayAsync(String namespace, String array, TileDB +
Status Code Description Response Headers
204 schema created successfully -
502 Bad Gateway -
0 error response -
*/ @@ -1679,6 +1799,7 @@ private okhttp3.Call createArrayValidateBeforeCall(String namespace, String arra +
Status Code Description Response Headers
204 schema created successfully -
502 Bad Gateway -
0 error response -
*/ @@ -1700,6 +1821,7 @@ public void createArray(String namespace, String array, String contentType, Arra +
Status Code Description Response Headers
204 schema created successfully -
502 Bad Gateway -
0 error response -
*/ @@ -1723,6 +1845,7 @@ public ApiResponse createArrayWithHttpInfo(String namespace, String array, +
Status Code Description Response Headers
204 schema created successfully -
502 Bad Gateway -
0 error response -
*/ @@ -1744,6 +1867,7 @@ public okhttp3.Call createArrayAsync(String namespace, String array, String cont +
Status Code Description Response Headers
204 delete array successful -
502 Bad Gateway -
0 error response -
*/ @@ -1833,6 +1957,7 @@ private okhttp3.Call deleteArrayValidateBeforeCall(String namespace, String arra +
Status Code Description Response Headers
204 delete array successful -
502 Bad Gateway -
0 error response -
*/ @@ -1852,6 +1977,7 @@ public void deleteArray(String namespace, String array, String contentType) thro +
Status Code Description Response Headers
204 delete array successful -
502 Bad Gateway -
0 error response -
*/ @@ -1873,6 +1999,7 @@ public ApiResponse deleteArrayWithHttpInfo(String namespace, String array, +
Status Code Description Response Headers
204 delete array successful -
502 Bad Gateway -
0 error response -
*/ @@ -1893,6 +2020,7 @@ public okhttp3.Call deleteArrayAsync(String namespace, String array, String cont +
Status Code Description Response Headers
204 deregistered array successful -
502 Bad Gateway -
0 error response -
*/ @@ -1972,6 +2100,7 @@ private okhttp3.Call deregisterArrayValidateBeforeCall(String namespace, String +
Status Code Description Response Headers
204 deregistered array successful -
502 Bad Gateway -
0 error response -
*/ @@ -1990,6 +2119,7 @@ public void deregisterArray(String namespace, String array) throws ApiException +
Status Code Description Response Headers
204 deregistered array successful -
502 Bad Gateway -
0 error response -
*/ @@ -2010,6 +2140,7 @@ public ApiResponse deregisterArrayWithHttpInfo(String namespace, String ar +
Status Code Description Response Headers
204 deregistered array successful -
502 Bad Gateway -
0 error response -
*/ @@ -2019,6 +2150,169 @@ public okhttp3.Call deregisterArrayAsync(String namespace, String array, final A localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } + /** + * Build call for fragmentInfo + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param contentType Content Type of input and return mime (required) + * @param fragmentInfoRequest ArraySchema being created (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 fragment info -
0 error response -
+ */ + public okhttp3.Call fragmentInfoCall(String namespace, String array, String contentType, FragmentInfoRequest fragmentInfoRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = fragmentInfoRequest; + + // create path and map variables + String localVarPath = "/arrays/{namespace}/{array}/fragment_info" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (contentType != null) { + localVarHeaderParams.put("Content-Type", localVarApiClient.parameterToString(contentType)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call fragmentInfoValidateBeforeCall(String namespace, String array, String contentType, FragmentInfoRequest fragmentInfoRequest, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling fragmentInfo(Async)"); + } + + // verify the required parameter 'array' is set + if (array == null) { + throw new ApiException("Missing the required parameter 'array' when calling fragmentInfo(Async)"); + } + + // verify the required parameter 'contentType' is set + if (contentType == null) { + throw new ApiException("Missing the required parameter 'contentType' when calling fragmentInfo(Async)"); + } + + // verify the required parameter 'fragmentInfoRequest' is set + if (fragmentInfoRequest == null) { + throw new ApiException("Missing the required parameter 'fragmentInfoRequest' when calling fragmentInfo(Async)"); + } + + + okhttp3.Call localVarCall = fragmentInfoCall(namespace, array, contentType, fragmentInfoRequest, _callback); + return localVarCall; + + } + + /** + * + * fetch an array's fragment info + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param contentType Content Type of input and return mime (required) + * @param fragmentInfoRequest ArraySchema being created (required) + * @return FragmentInfo + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 fragment info -
0 error response -
+ */ + public FragmentInfo fragmentInfo(String namespace, String array, String contentType, FragmentInfoRequest fragmentInfoRequest) throws ApiException { + ApiResponse localVarResp = fragmentInfoWithHttpInfo(namespace, array, contentType, fragmentInfoRequest); + return localVarResp.getData(); + } + + /** + * + * fetch an array's fragment info + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param contentType Content Type of input and return mime (required) + * @param fragmentInfoRequest ArraySchema being created (required) + * @return ApiResponse<FragmentInfo> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 fragment info -
0 error response -
+ */ + public ApiResponse fragmentInfoWithHttpInfo(String namespace, String array, String contentType, FragmentInfoRequest fragmentInfoRequest) throws ApiException { + okhttp3.Call localVarCall = fragmentInfoValidateBeforeCall(namespace, array, contentType, fragmentInfoRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * fetch an array's fragment info + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param contentType Content Type of input and return mime (required) + * @param fragmentInfoRequest ArraySchema being created (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 fragment info -
0 error response -
+ */ + public okhttp3.Call fragmentInfoAsync(String namespace, String array, String contentType, FragmentInfoRequest fragmentInfoRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = fragmentInfoValidateBeforeCall(namespace, array, contentType, fragmentInfoRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } /** * Build call for getActivityLogById * @param namespace namespace array is in (an organization name or user's username) (required) @@ -2031,6 +2325,7 @@ public okhttp3.Call deregisterArrayAsync(String namespace, String array, final A +
Status Code Description Response Headers
200 array activity -
502 Bad Gateway -
0 error response -
*/ @@ -2118,6 +2413,7 @@ private okhttp3.Call getActivityLogByIdValidateBeforeCall(String namespace, Stri +
Status Code Description Response Headers
200 array activity -
502 Bad Gateway -
0 error response -
*/ @@ -2138,6 +2434,7 @@ public ArrayActivityLog getActivityLogById(String namespace, String array, Strin +
Status Code Description Response Headers
200 array activity -
502 Bad Gateway -
0 error response -
*/ @@ -2160,6 +2457,7 @@ public ApiResponse getActivityLogByIdWithHttpInfo(String names +
Status Code Description Response Headers
200 array activity -
502 Bad Gateway -
0 error response -
*/ @@ -2180,6 +2478,7 @@ public okhttp3.Call getActivityLogByIdAsync(String namespace, String array, Stri +
Status Code Description Response Headers
200 array metadata for all arrays user has access to -
502 Bad Gateway -
0 error response -
*/ @@ -2251,6 +2550,7 @@ private okhttp3.Call getAllArrayMetadataValidateBeforeCall(String publicShare, f +
Status Code Description Response Headers
200 array metadata for all arrays user has access to -
502 Bad Gateway -
0 error response -
*/ @@ -2269,6 +2569,7 @@ public List getAllArrayMetadata(String publicShare) throws ApiExcepti +
Status Code Description Response Headers
200 array metadata for all arrays user has access to -
502 Bad Gateway -
0 error response -
*/ @@ -2289,6 +2590,7 @@ public ApiResponse> getAllArrayMetadataWithHttpInfo(String publi +
Status Code Description Response Headers
200 array metadata for all arrays user has access to -
502 Bad Gateway -
0 error response -
*/ @@ -2311,6 +2613,7 @@ public okhttp3.Call getAllArrayMetadataAsync(String publicShare, final ApiCallba +
Status Code Description Response Headers
200 get ArraySchema -
502 Bad Gateway -
0 error response -
*/ @@ -2401,6 +2704,7 @@ private okhttp3.Call getArrayValidateBeforeCall(String namespace, String array, +
Status Code Description Response Headers
200 get ArraySchema -
502 Bad Gateway -
0 error response -
*/ @@ -2421,6 +2725,7 @@ public ArraySchema getArray(String namespace, String array, String contentType) +
Status Code Description Response Headers
200 get ArraySchema -
502 Bad Gateway -
0 error response -
*/ @@ -2443,6 +2748,7 @@ public ApiResponse getArrayWithHttpInfo(String namespace, String ar +
Status Code Description Response Headers
200 get ArraySchema -
502 Bad Gateway -
0 error response -
*/ @@ -2467,6 +2773,7 @@ public okhttp3.Call getArrayAsync(String namespace, String array, String content +
Status Code Description Response Headers
200 get the max buffer sizes of an array for a subarray -
502 Bad Gateway -
0 error response -
*/ @@ -2572,6 +2879,7 @@ private okhttp3.Call getArrayMaxBufferSizesValidateBeforeCall(String namespace, +
Status Code Description Response Headers
200 get the max buffer sizes of an array for a subarray -
502 Bad Gateway -
0 error response -
*/ @@ -2594,6 +2902,7 @@ public MaxBufferSizes getArrayMaxBufferSizes(String namespace, String array, Str +
Status Code Description Response Headers
200 get the max buffer sizes of an array for a subarray -
502 Bad Gateway -
0 error response -
*/ @@ -2618,6 +2927,7 @@ public ApiResponse getArrayMaxBufferSizesWithHttpInfo(String nam +
Status Code Description Response Headers
200 get the max buffer sizes of an array for a subarray -
502 Bad Gateway -
0 error response -
*/ @@ -2641,6 +2951,7 @@ public okhttp3.Call getArrayMaxBufferSizesAsync(String namespace, String array, +
Status Code Description Response Headers
200 get array metadata -
502 Bad Gateway -
0 error response -
*/ @@ -2731,6 +3042,7 @@ private okhttp3.Call getArrayMetaDataJsonValidateBeforeCall(String namespace, St +
Status Code Description Response Headers
200 get array metadata -
502 Bad Gateway -
0 error response -
*/ @@ -2752,6 +3064,7 @@ public Object getArrayMetaDataJson(String namespace, String array, Integer lengt +
Status Code Description Response Headers
200 get array metadata -
502 Bad Gateway -
0 error response -
*/ @@ -2775,6 +3088,7 @@ public ApiResponse getArrayMetaDataJsonWithHttpInfo(String namespace, St +
Status Code Description Response Headers
200 get array metadata -
502 Bad Gateway -
0 error response -
*/ @@ -2796,6 +3110,7 @@ public okhttp3.Call getArrayMetaDataJsonAsync(String namespace, String array, In +
Status Code Description Response Headers
200 array metadata for an array -
502 Bad Gateway -
0 error response -
*/ @@ -2876,6 +3191,7 @@ private okhttp3.Call getArrayMetadataValidateBeforeCall(String namespace, String +
Status Code Description Response Headers
200 array metadata for an array -
502 Bad Gateway -
0 error response -
*/ @@ -2895,6 +3211,7 @@ public ArrayInfo getArrayMetadata(String namespace, String array) throws ApiExce +
Status Code Description Response Headers
200 array metadata for an array -
502 Bad Gateway -
0 error response -
*/ @@ -2916,6 +3233,7 @@ public ApiResponse getArrayMetadataWithHttpInfo(String namespace, Str +
Status Code Description Response Headers
200 array metadata for an array -
502 Bad Gateway -
0 error response -
*/ @@ -2937,6 +3255,7 @@ public okhttp3.Call getArrayMetadataAsync(String namespace, String array, final +
Status Code Description Response Headers
200 array metadata for an array -
502 Bad Gateway -
0 error response -
*/ @@ -3017,6 +3336,7 @@ private okhttp3.Call getArrayMetadataCapnpValidateBeforeCall(String namespace, S +
Status Code Description Response Headers
200 array metadata for an array -
502 Bad Gateway -
0 error response -
*/ @@ -3036,6 +3356,7 @@ public ArrayMetadata getArrayMetadataCapnp(String namespace, String array) throw +
Status Code Description Response Headers
200 array metadata for an array -
502 Bad Gateway -
0 error response -
*/ @@ -3057,6 +3378,7 @@ public ApiResponse getArrayMetadataCapnpWithHttpInfo(String names +
Status Code Description Response Headers
200 array metadata for an array -
502 Bad Gateway -
0 error response -
*/ @@ -3080,6 +3402,7 @@ public okhttp3.Call getArrayMetadataCapnpAsync(String namespace, String array, f +
Status Code Description Response Headers
200 get the non empty domain of an array -
502 Bad Gateway -
0 error response -
*/ @@ -3175,6 +3498,7 @@ private okhttp3.Call getArrayNonEmptyDomainValidateBeforeCall(String namespace, +
Status Code Description Response Headers
200 get the non empty domain of an array -
502 Bad Gateway -
0 error response -
*/ @@ -3196,6 +3520,7 @@ public NonEmptyDomain getArrayNonEmptyDomain(String namespace, String array, Str +
Status Code Description Response Headers
200 get the non empty domain of an array -
502 Bad Gateway -
0 error response -
*/ @@ -3219,6 +3544,7 @@ public ApiResponse getArrayNonEmptyDomainWithHttpInfo(String nam +
Status Code Description Response Headers
200 get the non empty domain of an array -
502 Bad Gateway -
0 error response -
*/ @@ -3240,6 +3566,7 @@ public okhttp3.Call getArrayNonEmptyDomainAsync(String namespace, String array, +
Status Code Description Response Headers
200 get array non-empty domaim -
502 Bad Gateway -
0 error response -
*/ @@ -3320,6 +3647,7 @@ private okhttp3.Call getArrayNonEmptyDomainJsonValidateBeforeCall(String namespa +
Status Code Description Response Headers
200 get array non-empty domaim -
502 Bad Gateway -
0 error response -
*/ @@ -3339,6 +3667,7 @@ public Object getArrayNonEmptyDomainJson(String namespace, String array) throws +
Status Code Description Response Headers
200 get array non-empty domaim -
502 Bad Gateway -
0 error response -
*/ @@ -3360,6 +3689,7 @@ public ApiResponse getArrayNonEmptyDomainJsonWithHttpInfo(String namespa +
Status Code Description Response Headers
200 get array non-empty domaim -
502 Bad Gateway -
0 error response -
*/ @@ -3382,6 +3712,7 @@ public okhttp3.Call getArrayNonEmptyDomainJsonAsync(String namespace, String arr +
Status Code Description Response Headers
200 get array sample data -
502 Bad Gateway -
0 error response -
*/ @@ -3467,6 +3798,7 @@ private okhttp3.Call getArraySampleDataValidateBeforeCall(String namespace, Stri +
Status Code Description Response Headers
200 get array sample data -
502 Bad Gateway -
0 error response -
*/ @@ -3487,6 +3819,7 @@ public ArraySample getArraySampleData(String namespace, String array, BigDecimal +
Status Code Description Response Headers
200 get array sample data -
502 Bad Gateway -
0 error response -
*/ @@ -3509,6 +3842,7 @@ public ApiResponse getArraySampleDataWithHttpInfo(String namespace, +
Status Code Description Response Headers
200 get array sample data -
502 Bad Gateway -
0 error response -
*/ @@ -3531,6 +3865,7 @@ public okhttp3.Call getArraySampleDataAsync(String namespace, String array, BigD Status Code Description Response Headers 200 List of all specific sharing policies - 404 Array does not exist or user does not have permissions to view array-sharing policies - + 502 Bad Gateway - 0 error response - */ @@ -3612,6 +3947,7 @@ private okhttp3.Call getArraySharingPoliciesValidateBeforeCall(String namespace, Status Code Description Response Headers 200 List of all specific sharing policies - 404 Array does not exist or user does not have permissions to view array-sharing policies - + 502 Bad Gateway - 0 error response - */ @@ -3632,6 +3968,7 @@ public List getArraySharingPolicies(String namespace, String array Status Code Description Response Headers 200 List of all specific sharing policies - 404 Array does not exist or user does not have permissions to view array-sharing policies - + 502 Bad Gateway - 0 error response - */ @@ -3654,6 +3991,7 @@ public ApiResponse> getArraySharingPoliciesWithHttpInfo(Strin Status Code Description Response Headers 200 List of all specific sharing policies - 404 Array does not exist or user does not have permissions to view array-sharing policies - + 502 Bad Gateway - 0 error response - */ @@ -3674,6 +4012,7 @@ public okhttp3.Call getArraySharingPoliciesAsync(String namespace, String array, +
Status Code Description Response Headers
200 array metadata for all arrays in a namespace -
502 Bad Gateway -
0 error response -
*/ @@ -3747,6 +4086,7 @@ private okhttp3.Call getArraysInNamespaceValidateBeforeCall(String namespace, fi +
Status Code Description Response Headers
200 array metadata for all arrays in a namespace -
502 Bad Gateway -
0 error response -
*/ @@ -3765,6 +4105,7 @@ public List getArraysInNamespace(String namespace) throws ApiExceptio +
Status Code Description Response Headers
200 array metadata for all arrays in a namespace -
502 Bad Gateway -
0 error response -
*/ @@ -3785,6 +4126,7 @@ public ApiResponse> getArraysInNamespaceWithHttpInfo(String name +
Status Code Description Response Headers
200 array metadata for all arrays in a namespace -
502 Bad Gateway -
0 error response -
*/ @@ -3807,6 +4149,7 @@ public okhttp3.Call getArraysInNamespaceAsync(String namespace, final ApiCallbac +
Status Code Description Response Headers
200 fragment end_timestamp on an array -
502 Bad Gateway -
0 error response -
*/ @@ -3892,6 +4235,7 @@ private okhttp3.Call getFragmentEndTimestampValidateBeforeCall(String namespace, +
Status Code Description Response Headers
200 fragment end_timestamp on an array -
502 Bad Gateway -
0 error response -
*/ @@ -3912,6 +4256,7 @@ public Integer getFragmentEndTimestamp(String namespace, String array, Integer e +
Status Code Description Response Headers
200 fragment end_timestamp on an array -
502 Bad Gateway -
0 error response -
*/ @@ -3934,6 +4279,7 @@ public ApiResponse getFragmentEndTimestampWithHttpInfo(String namespace +
Status Code Description Response Headers
200 fragment end_timestamp on an array -
502 Bad Gateway -
0 error response -
*/ @@ -3953,6 +4299,7 @@ public okhttp3.Call getFragmentEndTimestampAsync(String namespace, String array, +
Status Code Description Response Headers
200 gets last accessed arrays -
502 Bad Gateway -
0 error response -
*/ @@ -4019,6 +4366,7 @@ private okhttp3.Call getLastAccessedArraysValidateBeforeCall(final ApiCallback _ +
Status Code Description Response Headers
200 gets last accessed arrays -
502 Bad Gateway -
0 error response -
*/ @@ -4036,6 +4384,7 @@ public List getLastAccessedArrays() throws ApiException { +
Status Code Description Response Headers
200 gets last accessed arrays -
502 Bad Gateway -
0 error response -
*/ @@ -4055,6 +4404,7 @@ public ApiResponse> getLastAccessedArraysWithHttpInfo() +
Status Code Description Response Headers
200 gets last accessed arrays -
502 Bad Gateway -
0 error response -
*/ @@ -4077,6 +4427,7 @@ public okhttp3.Call getLastAccessedArraysAsync(final ApiCallback Status Code Description Response Headers 200 array registered successfully - + 502 Bad Gateway - 0 error response - */ @@ -4163,6 +4514,7 @@ private okhttp3.Call registerArrayValidateBeforeCall(String namespace, String ar +
Status Code Description Response Headers
200 array registered successfully -
502 Bad Gateway -
0 error response -
*/ @@ -4183,6 +4535,7 @@ public ArrayInfo registerArray(String namespace, String array, ArrayInfoUpdate a +
Status Code Description Response Headers
200 array registered successfully -
502 Bad Gateway -
0 error response -
*/ @@ -4205,6 +4558,7 @@ public ApiResponse registerArrayWithHttpInfo(String namespace, String +
Status Code Description Response Headers
200 array registered successfully -
502 Bad Gateway -
0 error response -
*/ @@ -4228,6 +4582,7 @@ public okhttp3.Call registerArrayAsync(String namespace, String array, ArrayInfo Status Code Description Response Headers 204 Array shared successfully - 404 Array does not exist or user does not have permissions to share array - + 502 Bad Gateway - 0 error response - */ @@ -4314,6 +4669,7 @@ private okhttp3.Call shareArrayValidateBeforeCall(String namespace, String array Status Code Description Response Headers 204 Array shared successfully - 404 Array does not exist or user does not have permissions to share array - + 502 Bad Gateway - 0 error response - */ @@ -4334,6 +4690,7 @@ public void shareArray(String namespace, String array, ArraySharing arraySharing Status Code Description Response Headers 204 Array shared successfully - 404 Array does not exist or user does not have permissions to share array - + 502 Bad Gateway - 0 error response - */ @@ -4356,6 +4713,7 @@ public ApiResponse shareArrayWithHttpInfo(String namespace, String array, Status Code Description Response Headers 204 Array shared successfully - 404 Array does not exist or user does not have permissions to share array - + 502 Bad Gateway - 0 error response - */ @@ -4377,6 +4735,7 @@ public okhttp3.Call shareArrayAsync(String namespace, String array, ArraySharing +
Status Code Description Response Headers
204 array metadata updated successfully -
502 Bad Gateway -
0 error response -
*/ @@ -4462,6 +4821,7 @@ private okhttp3.Call updateArrayMetadataValidateBeforeCall(String namespace, Str +
Status Code Description Response Headers
204 array metadata updated successfully -
502 Bad Gateway -
0 error response -
*/ @@ -4481,6 +4841,7 @@ public void updateArrayMetadata(String namespace, String array, ArrayInfoUpdate +
Status Code Description Response Headers
204 array metadata updated successfully -
502 Bad Gateway -
0 error response -
*/ @@ -4502,6 +4863,7 @@ public ApiResponse updateArrayMetadataWithHttpInfo(String namespace, Strin +
Status Code Description Response Headers
204 array metadata updated successfully -
502 Bad Gateway -
0 error response -
*/ @@ -4523,6 +4885,7 @@ public okhttp3.Call updateArrayMetadataAsync(String namespace, String array, Arr +
Status Code Description Response Headers
200 array metadata updated successfully -
502 Bad Gateway -
0 error response -
*/ @@ -4608,6 +4971,7 @@ private okhttp3.Call updateArrayMetadataCapnpValidateBeforeCall(String namespace +
Status Code Description Response Headers
200 array metadata updated successfully -
502 Bad Gateway -
0 error response -
*/ @@ -4627,6 +4991,7 @@ public void updateArrayMetadataCapnp(String namespace, String array, ArrayMetada +
Status Code Description Response Headers
200 array metadata updated successfully -
502 Bad Gateway -
0 error response -
*/ @@ -4648,6 +5013,7 @@ public ApiResponse updateArrayMetadataCapnpWithHttpInfo(String namespace, +
Status Code Description Response Headers
200 array metadata updated successfully -
502 Bad Gateway -
0 error response -
*/ @@ -4661,7 +5027,7 @@ public okhttp3.Call updateArrayMetadataCapnpAsync(String namespace, String array * Build call for vacuumArray * @param namespace namespace array is in (an organization name or user's username) (required) * @param array name/uri of array that is url-encoded (required) - * @param tiledbConfig tiledb configuration (required) + * @param vaccumRequest Vaccum Request (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -4669,10 +5035,11 @@ public okhttp3.Call updateArrayMetadataCapnpAsync(String namespace, String array +
Status Code Description Response Headers
204 array vacuumed successfully -
502 Bad Gateway -
0 error response -
*/ - public okhttp3.Call vacuumArrayCall(String namespace, String array, TileDBConfig tiledbConfig, final ApiCallback _callback) throws ApiException { + public okhttp3.Call vacuumArrayCall(String namespace, String array, ArrayVacuumRequest vaccumRequest, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -4686,7 +5053,7 @@ public okhttp3.Call vacuumArrayCall(String namespace, String array, TileDBConfig basePath = null; } - Object localVarPostBody = tiledbConfig; + Object localVarPostBody = vaccumRequest; // create path and map variables String localVarPath = "/arrays/{namespace}/{array}/vacuum" @@ -4720,7 +5087,7 @@ public okhttp3.Call vacuumArrayCall(String namespace, String array, TileDBConfig } @SuppressWarnings("rawtypes") - private okhttp3.Call vacuumArrayValidateBeforeCall(String namespace, String array, TileDBConfig tiledbConfig, final ApiCallback _callback) throws ApiException { + 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) { @@ -4732,13 +5099,13 @@ private okhttp3.Call vacuumArrayValidateBeforeCall(String namespace, String arra throw new ApiException("Missing the required parameter 'array' when calling vacuumArray(Async)"); } - // verify the required parameter 'tiledbConfig' is set - if (tiledbConfig == null) { - throw new ApiException("Missing the required parameter 'tiledbConfig' 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, tiledbConfig, _callback); + okhttp3.Call localVarCall = vacuumArrayCall(namespace, array, vaccumRequest, _callback); return localVarCall; } @@ -4748,17 +5115,18 @@ private okhttp3.Call vacuumArrayValidateBeforeCall(String namespace, String arra * vacuum an array at a specified URI * @param namespace namespace array is in (an organization name or user's username) (required) * @param array name/uri of array that is url-encoded (required) - * @param tiledbConfig tiledb configuration (required) + * @param vaccumRequest Vaccum Request (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 array vacuumed successfully -
502 Bad Gateway -
0 error response -
*/ - public void vacuumArray(String namespace, String array, TileDBConfig tiledbConfig) throws ApiException { - vacuumArrayWithHttpInfo(namespace, array, tiledbConfig); + public void vacuumArray(String namespace, String array, ArrayVacuumRequest vaccumRequest) throws ApiException { + vacuumArrayWithHttpInfo(namespace, array, vaccumRequest); } /** @@ -4766,18 +5134,19 @@ public void vacuumArray(String namespace, String array, TileDBConfig tiledbConfi * vacuum an array at a specified URI * @param namespace namespace array is in (an organization name or user's username) (required) * @param array name/uri of array that is url-encoded (required) - * @param tiledbConfig tiledb configuration (required) + * @param vaccumRequest Vaccum Request (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 array vacuumed successfully -
502 Bad Gateway -
0 error response -
*/ - public ApiResponse vacuumArrayWithHttpInfo(String namespace, String array, TileDBConfig tiledbConfig) throws ApiException { - okhttp3.Call localVarCall = vacuumArrayValidateBeforeCall(namespace, array, tiledbConfig, null); + public ApiResponse vacuumArrayWithHttpInfo(String namespace, String array, ArrayVacuumRequest vaccumRequest) throws ApiException { + okhttp3.Call localVarCall = vacuumArrayValidateBeforeCall(namespace, array, vaccumRequest, null); return localVarApiClient.execute(localVarCall); } @@ -4786,7 +5155,7 @@ public ApiResponse vacuumArrayWithHttpInfo(String namespace, String array, * vacuum an array at a specified URI * @param namespace namespace array is in (an organization name or user's username) (required) * @param array name/uri of array that is url-encoded (required) - * @param tiledbConfig tiledb configuration (required) + * @param vaccumRequest Vaccum 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 @@ -4794,12 +5163,13 @@ public ApiResponse vacuumArrayWithHttpInfo(String namespace, String array, +
Status Code Description Response Headers
204 array vacuumed successfully -
502 Bad Gateway -
0 error response -
*/ - public okhttp3.Call vacuumArrayAsync(String namespace, String array, TileDBConfig tiledbConfig, final ApiCallback _callback) throws ApiException { + public okhttp3.Call vacuumArrayAsync(String namespace, String array, ArrayVacuumRequest vaccumRequest, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = vacuumArrayValidateBeforeCall(namespace, array, tiledbConfig, _callback); + okhttp3.Call localVarCall = vacuumArrayValidateBeforeCall(namespace, array, vaccumRequest, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/ArrayTasksApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/ArrayTasksApi.java index 545731c..7eab19f 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 @@ -13,18 +13,17 @@ 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.Pair; -import io.tiledb.cloud.rest_api.ApiCallback; -import io.tiledb.cloud.rest_api.Configuration; import com.google.gson.reflect.TypeToken; -import io.tiledb.cloud.rest_api.model.ArrayTaskBrowserSidebar; - import java.lang.reflect.Type; import java.util.ArrayList; import java.util.HashMap; @@ -80,6 +79,7 @@ public void setCustomBaseUrl(String customBaseUrl) { Status Code Description Response Headers 200 sidebar metadata for task definitions for all arrays user has access to - 404 array tasks not found - + 502 Bad Gateway - 0 error response - */ @@ -157,6 +157,7 @@ private okhttp3.Call getArrayTasksSidebarValidateBeforeCall(Integer start, Integ Status Code Description Response Headers 200 sidebar metadata for task definitions for all arrays user has access to - 404 array tasks not found - + 502 Bad Gateway - 0 error response - */ @@ -177,6 +178,7 @@ public ArrayTaskBrowserSidebar getArrayTasksSidebar(Integer start, Integer end) Status Code Description Response Headers 200 sidebar metadata for task definitions for all arrays user has access to - 404 array tasks not found - + 502 Bad Gateway - 0 error response - */ @@ -199,6 +201,7 @@ public ApiResponse getArrayTasksSidebarWithHttpInfo(Int Status Code Description Response Headers 200 sidebar metadata for task definitions for all arrays user has access to - 404 array tasks not found - + 502 Bad Gateway - 0 error response - */ 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 4e121c4..5240bf2 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 @@ -13,7 +13,7 @@ package io.tiledb.cloud.rest_api.api; -import io.tiledb.cloud.rest_api.model.ArrayFavoritesData; +import io.tiledb.cloud.rest_api.model.*; import io.tiledb.cloud.rest_api.ApiCallback; import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; @@ -25,6 +25,7 @@ import io.tiledb.cloud.rest_api.model.ArrayFavorite; +import io.tiledb.cloud.rest_api.model.ArrayFavoritesData; import io.tiledb.cloud.rest_api.model.MLModelFavorite; import io.tiledb.cloud.rest_api.model.MLModelFavoritesData; import io.tiledb.cloud.rest_api.model.NotebookFavorite; @@ -86,6 +87,7 @@ public void setCustomBaseUrl(String customBaseUrl) { +
Status Code Description Response Headers
204 Item added to favorites successfully -
502 Bad Gateway -
0 error response -
*/ @@ -165,6 +167,7 @@ private okhttp3.Call addArrayFavoriteValidateBeforeCall(String namespace, String +
Status Code Description Response Headers
204 Item added to favorites successfully -
502 Bad Gateway -
0 error response -
*/ @@ -183,6 +186,7 @@ public void addArrayFavorite(String namespace, String name) throws ApiException +
Status Code Description Response Headers
204 Item added to favorites successfully -
502 Bad Gateway -
0 error response -
*/ @@ -203,6 +207,7 @@ public ApiResponse addArrayFavoriteWithHttpInfo(String namespace, String n +
Status Code Description Response Headers
204 Item added to favorites successfully -
502 Bad Gateway -
0 error response -
*/ @@ -223,6 +228,7 @@ public okhttp3.Call addArrayFavoriteAsync(String namespace, String name, final A +
Status Code Description Response Headers
204 Item added to favorites successfully -
502 Bad Gateway -
0 error response -
*/ @@ -302,6 +308,7 @@ private okhttp3.Call addMLModelFavoriteValidateBeforeCall(String namespace, Stri +
Status Code Description Response Headers
204 Item added to favorites successfully -
502 Bad Gateway -
0 error response -
*/ @@ -320,6 +327,7 @@ public void addMLModelFavorite(String namespace, String name) throws ApiExceptio +
Status Code Description Response Headers
204 Item added to favorites successfully -
502 Bad Gateway -
0 error response -
*/ @@ -340,6 +348,7 @@ public ApiResponse addMLModelFavoriteWithHttpInfo(String namespace, String +
Status Code Description Response Headers
204 Item added to favorites successfully -
502 Bad Gateway -
0 error response -
*/ @@ -360,6 +369,7 @@ public okhttp3.Call addMLModelFavoriteAsync(String namespace, String name, final +
Status Code Description Response Headers
204 Item added to favorites successfully -
502 Bad Gateway -
0 error response -
*/ @@ -439,6 +449,7 @@ private okhttp3.Call addNotebookFavoriteValidateBeforeCall(String namespace, Str +
Status Code Description Response Headers
204 Item added to favorites successfully -
502 Bad Gateway -
0 error response -
*/ @@ -457,6 +468,7 @@ public void addNotebookFavorite(String namespace, String name) throws ApiExcepti +
Status Code Description Response Headers
204 Item added to favorites successfully -
502 Bad Gateway -
0 error response -
*/ @@ -477,6 +489,7 @@ public ApiResponse addNotebookFavoriteWithHttpInfo(String namespace, Strin +
Status Code Description Response Headers
204 Item added to favorites successfully -
502 Bad Gateway -
0 error response -
*/ @@ -497,6 +510,7 @@ public okhttp3.Call addNotebookFavoriteAsync(String namespace, String name, fina +
Status Code Description Response Headers
204 Item added to favorites successfully -
502 Bad Gateway -
0 error response -
*/ @@ -576,6 +590,7 @@ private okhttp3.Call addUDFFavoriteValidateBeforeCall(String namespace, String n +
Status Code Description Response Headers
204 Item added to favorites successfully -
502 Bad Gateway -
0 error response -
*/ @@ -594,6 +609,7 @@ public void addUDFFavorite(String namespace, String name) throws ApiException { +
Status Code Description Response Headers
204 Item added to favorites successfully -
502 Bad Gateway -
0 error response -
*/ @@ -614,6 +630,7 @@ public ApiResponse addUDFFavoriteWithHttpInfo(String namespace, String nam +
Status Code Description Response Headers
204 Item added to favorites successfully -
502 Bad Gateway -
0 error response -
*/ @@ -634,6 +651,7 @@ public okhttp3.Call addUDFFavoriteAsync(String namespace, String name, final Api +
Status Code Description Response Headers
204 array favorite item deleted successfully -
502 Bad Gateway -
0 error response -
*/ @@ -713,6 +731,7 @@ private okhttp3.Call deleteArrayFavoriteValidateBeforeCall(String namespace, Str +
Status Code Description Response Headers
204 array favorite item deleted successfully -
502 Bad Gateway -
0 error response -
*/ @@ -731,6 +750,7 @@ public void deleteArrayFavorite(String namespace, String name) throws ApiExcepti +
Status Code Description Response Headers
204 array favorite item deleted successfully -
502 Bad Gateway -
0 error response -
*/ @@ -751,6 +771,7 @@ public ApiResponse deleteArrayFavoriteWithHttpInfo(String namespace, Strin +
Status Code Description Response Headers
204 array favorite item deleted successfully -
502 Bad Gateway -
0 error response -
*/ @@ -771,6 +792,7 @@ public okhttp3.Call deleteArrayFavoriteAsync(String namespace, String name, fina +
Status Code Description Response Headers
204 ML model favorite item deleted successfully -
502 Bad Gateway -
0 error response -
*/ @@ -850,6 +872,7 @@ private okhttp3.Call deleteMLModelFavoriteValidateBeforeCall(String namespace, S +
Status Code Description Response Headers
204 ML model favorite item deleted successfully -
502 Bad Gateway -
0 error response -
*/ @@ -868,6 +891,7 @@ public void deleteMLModelFavorite(String namespace, String name) throws ApiExcep +
Status Code Description Response Headers
204 ML model favorite item deleted successfully -
502 Bad Gateway -
0 error response -
*/ @@ -888,6 +912,7 @@ public ApiResponse deleteMLModelFavoriteWithHttpInfo(String namespace, Str +
Status Code Description Response Headers
204 ML model favorite item deleted successfully -
502 Bad Gateway -
0 error response -
*/ @@ -908,6 +933,7 @@ public okhttp3.Call deleteMLModelFavoriteAsync(String namespace, String name, fi +
Status Code Description Response Headers
204 notebook favorite item deleted successfully -
502 Bad Gateway -
0 error response -
*/ @@ -987,6 +1013,7 @@ private okhttp3.Call deleteNotebookFavoriteValidateBeforeCall(String namespace, +
Status Code Description Response Headers
204 notebook favorite item deleted successfully -
502 Bad Gateway -
0 error response -
*/ @@ -1005,6 +1032,7 @@ public void deleteNotebookFavorite(String namespace, String name) throws ApiExce +
Status Code Description Response Headers
204 notebook favorite item deleted successfully -
502 Bad Gateway -
0 error response -
*/ @@ -1025,6 +1053,7 @@ public ApiResponse deleteNotebookFavoriteWithHttpInfo(String namespace, St +
Status Code Description Response Headers
204 notebook favorite item deleted successfully -
502 Bad Gateway -
0 error response -
*/ @@ -1045,6 +1074,7 @@ public okhttp3.Call deleteNotebookFavoriteAsync(String namespace, String name, f +
Status Code Description Response Headers
204 UDF favorite item deleted successfully -
502 Bad Gateway -
0 error response -
*/ @@ -1124,6 +1154,7 @@ private okhttp3.Call deleteUDFFavoriteValidateBeforeCall(String namespace, Strin +
Status Code Description Response Headers
204 UDF favorite item deleted successfully -
502 Bad Gateway -
0 error response -
*/ @@ -1142,6 +1173,7 @@ public void deleteUDFFavorite(String namespace, String name) throws ApiException +
Status Code Description Response Headers
204 UDF favorite item deleted successfully -
502 Bad Gateway -
0 error response -
*/ @@ -1162,6 +1194,7 @@ public ApiResponse deleteUDFFavoriteWithHttpInfo(String namespace, String +
Status Code Description Response Headers
204 UDF favorite item deleted successfully -
502 Bad Gateway -
0 error response -
*/ @@ -1182,6 +1215,7 @@ public okhttp3.Call deleteUDFFavoriteAsync(String namespace, String name, final +
Status Code Description Response Headers
200 OK -
502 Bad Gateway -
0 error response -
*/ @@ -1262,6 +1296,7 @@ private okhttp3.Call getArrayFavoriteValidateBeforeCall(String namespace, String +
Status Code Description Response Headers
200 OK -
502 Bad Gateway -
0 error response -
*/ @@ -1281,6 +1316,7 @@ public ArrayFavorite getArrayFavorite(String namespace, String name) throws ApiE +
Status Code Description Response Headers
200 OK -
502 Bad Gateway -
0 error response -
*/ @@ -1302,6 +1338,7 @@ public ApiResponse getArrayFavoriteWithHttpInfo(String namespace, +
Status Code Description Response Headers
200 OK -
502 Bad Gateway -
0 error response -
*/ @@ -1323,6 +1360,7 @@ public okhttp3.Call getArrayFavoriteAsync(String namespace, String name, final A +
Status Code Description Response Headers
200 OK -
502 Bad Gateway -
0 error response -
*/ @@ -1403,6 +1441,7 @@ private okhttp3.Call getMLModelFavoriteValidateBeforeCall(String namespace, Stri +
Status Code Description Response Headers
200 OK -
502 Bad Gateway -
0 error response -
*/ @@ -1422,6 +1461,7 @@ public MLModelFavorite getMLModelFavorite(String namespace, String name) throws +
Status Code Description Response Headers
200 OK -
502 Bad Gateway -
0 error response -
*/ @@ -1443,6 +1483,7 @@ public ApiResponse getMLModelFavoriteWithHttpInfo(String namesp +
Status Code Description Response Headers
200 OK -
502 Bad Gateway -
0 error response -
*/ @@ -1464,6 +1505,7 @@ public okhttp3.Call getMLModelFavoriteAsync(String namespace, String name, final +
Status Code Description Response Headers
200 OK -
502 Bad Gateway -
0 error response -
*/ @@ -1544,6 +1586,7 @@ private okhttp3.Call getNotebookFavoriteValidateBeforeCall(String namespace, Str +
Status Code Description Response Headers
200 OK -
502 Bad Gateway -
0 error response -
*/ @@ -1563,6 +1606,7 @@ public NotebookFavorite getNotebookFavorite(String namespace, String name) throw +
Status Code Description Response Headers
200 OK -
502 Bad Gateway -
0 error response -
*/ @@ -1584,6 +1628,7 @@ public ApiResponse getNotebookFavoriteWithHttpInfo(String name +
Status Code Description Response Headers
200 OK -
502 Bad Gateway -
0 error response -
*/ @@ -1605,6 +1650,7 @@ public okhttp3.Call getNotebookFavoriteAsync(String namespace, String name, fina +
Status Code Description Response Headers
200 OK -
502 Bad Gateway -
0 error response -
*/ @@ -1685,6 +1731,7 @@ private okhttp3.Call getUDFFavoriteValidateBeforeCall(String namespace, String n +
Status Code Description Response Headers
200 OK -
502 Bad Gateway -
0 error response -
*/ @@ -1704,6 +1751,7 @@ public UDFFavorite getUDFFavorite(String namespace, String name) throws ApiExcep +
Status Code Description Response Headers
200 OK -
502 Bad Gateway -
0 error response -
*/ @@ -1725,6 +1773,7 @@ public ApiResponse getUDFFavoriteWithHttpInfo(String namespace, Str +
Status Code Description Response Headers
200 OK -
502 Bad Gateway -
0 error response -
*/ @@ -1746,6 +1795,7 @@ public okhttp3.Call getUDFFavoriteAsync(String namespace, String name, final Api +
Status Code Description Response Headers
200 Available array favorites are returned -
502 Bad Gateway -
0 error response -
*/ @@ -1822,6 +1872,7 @@ private okhttp3.Call listArrayFavoritesValidateBeforeCall(Integer page, Integer +
Status Code Description Response Headers
200 Available array favorites are returned -
502 Bad Gateway -
0 error response -
*/ @@ -1841,6 +1892,7 @@ public ArrayFavoritesData listArrayFavorites(Integer page, Integer perPage) thro +
Status Code Description Response Headers
200 Available array favorites are returned -
502 Bad Gateway -
0 error response -
*/ @@ -1862,6 +1914,7 @@ public ApiResponse listArrayFavoritesWithHttpInfo(Integer pa +
Status Code Description Response Headers
200 Available array favorites are returned -
502 Bad Gateway -
0 error response -
*/ @@ -1881,6 +1934,7 @@ public okhttp3.Call listArrayFavoritesAsync(Integer page, Integer perPage, final +
Status Code Description Response Headers
200 Available favorites array uuids are returned -
502 Bad Gateway -
0 error response -
*/ @@ -1947,6 +2001,7 @@ private okhttp3.Call listArrayFavoritesUUIDsValidateBeforeCall(final ApiCallback +
Status Code Description Response Headers
200 Available favorites array uuids are returned -
502 Bad Gateway -
0 error response -
*/ @@ -1964,6 +2019,7 @@ public List listArrayFavoritesUUIDs() throws ApiException { +
Status Code Description Response Headers
200 Available favorites array uuids are returned -
502 Bad Gateway -
0 error response -
*/ @@ -1983,6 +2039,7 @@ public ApiResponse> listArrayFavoritesUUIDsWithHttpInfo() th +
Status Code Description Response Headers
200 Available favorites array uuids are returned -
502 Bad Gateway -
0 error response -
*/ @@ -2004,6 +2061,7 @@ public okhttp3.Call listArrayFavoritesUUIDsAsync(final ApiCallback Status Code Description Response Headers 200 Available ML models favorites are returned - + 502 Bad Gateway - 0 error response - */ @@ -2080,6 +2138,7 @@ private okhttp3.Call listMLModelFavoritesValidateBeforeCall(Integer page, Intege +
Status Code Description Response Headers
200 Available ML models favorites are returned -
502 Bad Gateway -
0 error response -
*/ @@ -2099,6 +2158,7 @@ public MLModelFavoritesData listMLModelFavorites(Integer page, Integer perPage) +
Status Code Description Response Headers
200 Available ML models favorites are returned -
502 Bad Gateway -
0 error response -
*/ @@ -2120,6 +2180,7 @@ public ApiResponse listMLModelFavoritesWithHttpInfo(Intege +
Status Code Description Response Headers
200 Available ML models favorites are returned -
502 Bad Gateway -
0 error response -
*/ @@ -2139,6 +2200,7 @@ public okhttp3.Call listMLModelFavoritesAsync(Integer page, Integer perPage, fin +
Status Code Description Response Headers
200 Available favorites ML model uuids are returned -
502 Bad Gateway -
0 error response -
*/ @@ -2205,6 +2267,7 @@ private okhttp3.Call listMLModelFavoritesUUIDsValidateBeforeCall(final ApiCallba +
Status Code Description Response Headers
200 Available favorites ML model uuids are returned -
502 Bad Gateway -
0 error response -
*/ @@ -2222,6 +2285,7 @@ public List listMLModelFavoritesUUIDs() throws ApiException { +
Status Code Description Response Headers
200 Available favorites ML model uuids are returned -
502 Bad Gateway -
0 error response -
*/ @@ -2241,6 +2305,7 @@ public ApiResponse> listMLModelFavoritesUUIDsWithHttpInfo( +
Status Code Description Response Headers
200 Available favorites ML model uuids are returned -
502 Bad Gateway -
0 error response -
*/ @@ -2263,6 +2328,7 @@ public okhttp3.Call listMLModelFavoritesUUIDsAsync(final ApiCallback Status Code Description Response Headers 200 Available notebook favorites are returned - + 502 Bad Gateway - 0 error response - */ @@ -2344,6 +2410,7 @@ private okhttp3.Call listNotebookFavoritesValidateBeforeCall(Boolean isDashboard +
Status Code Description Response Headers
200 Available notebook favorites are returned -
502 Bad Gateway -
0 error response -
*/ @@ -2364,6 +2431,7 @@ public NotebookFavoritesData listNotebookFavorites(Boolean isDashboard, Integer +
Status Code Description Response Headers
200 Available notebook favorites are returned -
502 Bad Gateway -
0 error response -
*/ @@ -2386,6 +2454,7 @@ public ApiResponse listNotebookFavoritesWithHttpInfo(Bool +
Status Code Description Response Headers
200 Available notebook favorites are returned -
502 Bad Gateway -
0 error response -
*/ @@ -2405,6 +2474,7 @@ public okhttp3.Call listNotebookFavoritesAsync(Boolean isDashboard, Integer page +
Status Code Description Response Headers
200 Available favorites notebook uuids are returned -
502 Bad Gateway -
0 error response -
*/ @@ -2471,6 +2541,7 @@ private okhttp3.Call listNotebookFavoritesUUIDsValidateBeforeCall(final ApiCallb +
Status Code Description Response Headers
200 Available favorites notebook uuids are returned -
502 Bad Gateway -
0 error response -
*/ @@ -2488,6 +2559,7 @@ public List listNotebookFavoritesUUIDs() throws ApiException { +
Status Code Description Response Headers
200 Available favorites notebook uuids are returned -
502 Bad Gateway -
0 error response -
*/ @@ -2507,6 +2579,7 @@ public ApiResponse> listNotebookFavoritesUUIDsWithHttpInf +
Status Code Description Response Headers
200 Available favorites notebook uuids are returned -
502 Bad Gateway -
0 error response -
*/ @@ -2528,6 +2601,7 @@ public okhttp3.Call listNotebookFavoritesUUIDsAsync(final ApiCallback Status Code Description Response Headers 200 Available UDF favorites are returned - + 502 Bad Gateway - 0 error response - */ @@ -2604,6 +2678,7 @@ private okhttp3.Call listUDFFavoritesValidateBeforeCall(Integer page, Integer pe +
Status Code Description Response Headers
200 Available UDF favorites are returned -
502 Bad Gateway -
0 error response -
*/ @@ -2623,6 +2698,7 @@ public UDFFavoritesData listUDFFavorites(Integer page, Integer perPage) throws A +
Status Code Description Response Headers
200 Available UDF favorites are returned -
502 Bad Gateway -
0 error response -
*/ @@ -2644,6 +2720,7 @@ public ApiResponse listUDFFavoritesWithHttpInfo(Integer page, +
Status Code Description Response Headers
200 Available UDF favorites are returned -
502 Bad Gateway -
0 error response -
*/ @@ -2663,6 +2740,7 @@ public okhttp3.Call listUDFFavoritesAsync(Integer page, Integer perPage, final A +
Status Code Description Response Headers
200 Available favorites UDF uuids are returned -
502 Bad Gateway -
0 error response -
*/ @@ -2729,6 +2807,7 @@ private okhttp3.Call listUDFFavoritesUUIDsValidateBeforeCall(final ApiCallback _ +
Status Code Description Response Headers
200 Available favorites UDF uuids are returned -
502 Bad Gateway -
0 error response -
*/ @@ -2746,6 +2825,7 @@ public List listUDFFavoritesUUIDs() throws ApiException { +
Status Code Description Response Headers
200 Available favorites UDF uuids are returned -
502 Bad Gateway -
0 error response -
*/ @@ -2765,6 +2845,7 @@ public ApiResponse> listUDFFavoritesUUIDsWithHttpInfo() throws +
Status Code Description Response Headers
200 Available favorites UDF uuids are returned -
502 Bad Gateway -
0 error response -
*/ 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 0fe0778..f3810ba 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 @@ -85,6 +85,7 @@ public void setCustomBaseUrl(String customBaseUrl) { +
Status Code Description Response Headers
201 File created -
502 Bad Gateway -
0 error response -
*/ @@ -169,6 +170,7 @@ private okhttp3.Call handleCreateFileValidateBeforeCall(String namespace, FileCr +
Status Code Description Response Headers
201 File created -
502 Bad Gateway -
0 error response -
*/ @@ -189,6 +191,7 @@ public FileCreated handleCreateFile(String namespace, FileCreate fileCreate, Str +
Status Code Description Response Headers
201 File created -
502 Bad Gateway -
0 error response -
*/ @@ -211,6 +214,7 @@ public ApiResponse handleCreateFileWithHttpInfo(String namespace, F +
Status Code Description Response Headers
201 File created -
502 Bad Gateway -
0 error response -
*/ @@ -233,6 +237,7 @@ public okhttp3.Call handleCreateFileAsync(String namespace, FileCreate fileCreat +
Status Code Description Response Headers
201 File exported -
502 Bad Gateway -
0 error response -
*/ @@ -319,6 +324,7 @@ private okhttp3.Call handleExportFileValidateBeforeCall(String namespace, String +
Status Code Description Response Headers
201 File exported -
502 Bad Gateway -
0 error response -
*/ @@ -339,6 +345,7 @@ public FileExported handleExportFile(String namespace, String _file, FileExport +
Status Code Description Response Headers
201 File exported -
502 Bad Gateway -
0 error response -
*/ @@ -361,6 +368,7 @@ public ApiResponse handleExportFileWithHttpInfo(String namespace, +
Status Code Description Response Headers
201 File exported -
502 Bad Gateway -
0 error response -
*/ @@ -385,6 +393,7 @@ public okhttp3.Call handleExportFileAsync(String namespace, String _file, FileEx +
Status Code Description Response Headers
201 File uploaded -
502 Bad Gateway -
0 error response -
*/ @@ -483,6 +492,7 @@ private okhttp3.Call handleUploadFileValidateBeforeCall(String namespace, File i +
Status Code Description Response Headers
201 File uploaded -
502 Bad Gateway -
0 error response -
*/ @@ -505,6 +515,7 @@ public FileUploaded handleUploadFile(String namespace, File inputFile, String X_ +
Status Code Description Response Headers
201 File uploaded -
502 Bad Gateway -
0 error response -
*/ @@ -529,6 +540,7 @@ public ApiResponse handleUploadFileWithHttpInfo(String namespace, +
Status Code Description Response Headers
201 File uploaded -
502 Bad Gateway -
0 error response -
*/ 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 bfb7d9c..b33c37e 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 @@ -13,16 +13,17 @@ 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.Pair; -import io.tiledb.cloud.rest_api.ApiCallback; import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.Pair; import com.google.gson.reflect.TypeToken; +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; @@ -90,6 +91,7 @@ public void setCustomBaseUrl(String customBaseUrl) { +
Status Code Description Response Headers
204 all changes applied successfully -
502 Bad Gateway -
0 error response -
*/ @@ -170,6 +172,7 @@ private okhttp3.Call changeGroupContentsValidateBeforeCall(String groupNamespace +
Status Code Description Response Headers
204 all changes applied successfully -
502 Bad Gateway -
0 error response -
*/ @@ -189,6 +192,7 @@ public void changeGroupContents(String groupNamespace, String groupName, GroupCh +
Status Code Description Response Headers
204 all changes applied successfully -
502 Bad Gateway -
0 error response -
*/ @@ -210,6 +214,7 @@ public ApiResponse changeGroupContentsWithHttpInfo(String groupNamespace, +
Status Code Description Response Headers
204 all changes applied successfully -
502 Bad Gateway -
0 error response -
*/ @@ -230,6 +235,7 @@ public okhttp3.Call changeGroupContentsAsync(String groupNamespace, String group +
Status Code Description Response Headers
204 group created successfully -
502 Bad Gateway -
0 error response -
*/ @@ -303,6 +309,7 @@ private okhttp3.Call createGroupValidateBeforeCall(String namespace, GroupCreate +
Status Code Description Response Headers
204 group created successfully -
502 Bad Gateway -
0 error response -
*/ @@ -321,6 +328,7 @@ public void createGroup(String namespace, GroupCreate groupCreate) throws ApiExc +
Status Code Description Response Headers
204 group created successfully -
502 Bad Gateway -
0 error response -
*/ @@ -341,6 +349,7 @@ public ApiResponse createGroupWithHttpInfo(String namespace, GroupCreate g +
Status Code Description Response Headers
204 group created successfully -
502 Bad Gateway -
0 error response -
*/ @@ -361,6 +370,7 @@ public okhttp3.Call createGroupAsync(String namespace, GroupCreate groupCreate, +
Status Code Description Response Headers
204 group deleted successfully -
502 Bad Gateway -
0 error response -
*/ @@ -440,6 +450,7 @@ private okhttp3.Call deleteGroupValidateBeforeCall(String groupNamespace, String +
Status Code Description Response Headers
204 group deleted successfully -
502 Bad Gateway -
0 error response -
*/ @@ -458,6 +469,7 @@ public void deleteGroup(String groupNamespace, String groupName) throws ApiExcep +
Status Code Description Response Headers
204 group deleted successfully -
502 Bad Gateway -
0 error response -
*/ @@ -478,6 +490,7 @@ public ApiResponse deleteGroupWithHttpInfo(String groupNamespace, String g +
Status Code Description Response Headers
204 group deleted successfully -
502 Bad Gateway -
0 error response -
*/ @@ -498,6 +511,7 @@ public okhttp3.Call deleteGroupAsync(String groupNamespace, String groupName, fi +
Status Code Description Response Headers
200 the group metadata -
502 Bad Gateway -
0 error response -
*/ @@ -578,6 +592,7 @@ private okhttp3.Call getGroupValidateBeforeCall(String groupNamespace, String gr +
Status Code Description Response Headers
200 the group metadata -
502 Bad Gateway -
0 error response -
*/ @@ -597,6 +612,7 @@ public GroupInfo getGroup(String groupNamespace, String groupName) throws ApiExc +
Status Code Description Response Headers
200 the group metadata -
502 Bad Gateway -
0 error response -
*/ @@ -618,6 +634,7 @@ public ApiResponse getGroupWithHttpInfo(String groupNamespace, String +
Status Code Description Response Headers
200 the group metadata -
502 Bad Gateway -
0 error response -
*/ @@ -628,6 +645,167 @@ public okhttp3.Call getGroupAsync(String groupNamespace, String groupName, final localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** + * Build call for getGroupActivity + * @param groupNamespace The namespace of the group (required) + * @param groupName The unique name or id of the group (required) + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Activity logs of group contents along with the pagination metadata -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getGroupActivityCall(String groupNamespace, String groupName, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/groups/{group_namespace}/{group_name}/content_activity" + .replaceAll("\\{" + "group_namespace" + "\\}", localVarApiClient.escapeString(groupNamespace.toString())) + .replaceAll("\\{" + "group_name" + "\\}", localVarApiClient.escapeString(groupName.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (page != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("page", page)); + } + + if (perPage != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("per_page", perPage)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getGroupActivityValidateBeforeCall(String groupNamespace, String groupName, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'groupNamespace' is set + if (groupNamespace == null) { + throw new ApiException("Missing the required parameter 'groupNamespace' when calling getGroupActivity(Async)"); + } + + // verify the required parameter 'groupName' is set + if (groupName == null) { + throw new ApiException("Missing the required parameter 'groupName' when calling getGroupActivity(Async)"); + } + + + okhttp3.Call localVarCall = getGroupActivityCall(groupNamespace, groupName, page, perPage, _callback); + return localVarCall; + + } + + /** + * + * Returns the activity of group content + * @param groupNamespace The namespace of the group (required) + * @param groupName The unique name or id of the group (required) + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @return GroupActivityResponse + * @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 Activity logs of group contents along with the pagination metadata -
502 Bad Gateway -
0 error response -
+ */ + public GroupActivityResponse getGroupActivity(String groupNamespace, String groupName, Integer page, Integer perPage) throws ApiException { + ApiResponse localVarResp = getGroupActivityWithHttpInfo(groupNamespace, groupName, page, perPage); + return localVarResp.getData(); + } + + /** + * + * Returns the activity of group content + * @param groupNamespace The namespace of the group (required) + * @param groupName The unique name or id of the group (required) + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @return ApiResponse<GroupActivityResponse> + * @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 Activity logs of group contents along with the pagination metadata -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse getGroupActivityWithHttpInfo(String groupNamespace, String groupName, Integer page, Integer perPage) throws ApiException { + okhttp3.Call localVarCall = getGroupActivityValidateBeforeCall(groupNamespace, groupName, page, perPage, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Returns the activity of group content + * @param groupNamespace The namespace of the group (required) + * @param groupName The unique name or id of the group (required) + * @param page pagination offset (optional) + * @param perPage pagination limit (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Activity logs of group contents along with the pagination metadata -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getGroupActivityAsync(String groupNamespace, String groupName, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getGroupActivityValidateBeforeCall(groupNamespace, groupName, page, perPage, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } /** * Build call for getGroupContents * @param groupNamespace The namespace of the group (required) @@ -648,6 +826,7 @@ public okhttp3.Call getGroupAsync(String groupNamespace, String groupName, final +
Status Code Description Response Headers
200 the group contents -
502 Bad Gateway -
0 error response -
*/ @@ -773,6 +952,7 @@ private okhttp3.Call getGroupContentsValidateBeforeCall(String groupNamespace, S +
Status Code Description Response Headers
200 the group contents -
502 Bad Gateway -
0 error response -
*/ @@ -801,6 +981,7 @@ public GroupContents getGroupContents(String groupNamespace, String groupName, I +
Status Code Description Response Headers
200 the group contents -
502 Bad Gateway -
0 error response -
*/ @@ -831,6 +1012,7 @@ public ApiResponse getGroupContentsWithHttpInfo(String groupNames +
Status Code Description Response Headers
200 the group contents -
502 Bad Gateway -
0 error response -
*/ @@ -853,6 +1035,7 @@ public okhttp3.Call getGroupContentsAsync(String groupNamespace, String groupNam Status Code Description Response Headers 200 List of all specific sharing policies - 404 Group does not exist or user does not have permissions to view group-sharing policies - + 502 Bad Gateway - 0 error response - */ @@ -934,6 +1117,7 @@ private okhttp3.Call getGroupSharingPoliciesValidateBeforeCall(String groupNames Status Code Description Response Headers 200 List of all specific sharing policies - 404 Group does not exist or user does not have permissions to view group-sharing policies - + 502 Bad Gateway - 0 error response - */ @@ -954,6 +1138,7 @@ public List getGroupSharingPolicies(String groupNamespace, String Status Code Description Response Headers 200 List of all specific sharing policies - 404 Group does not exist or user does not have permissions to view group-sharing policies - + 502 Bad Gateway - 0 error response - */ @@ -976,6 +1161,7 @@ public ApiResponse> getGroupSharingPoliciesWithHttpInfo(Strin Status Code Description Response Headers 200 List of all specific sharing policies - 404 Group does not exist or user does not have permissions to view group-sharing policies - + 502 Bad Gateway - 0 error response - */ @@ -988,6 +1174,7 @@ public okhttp3.Call getGroupSharingPoliciesAsync(String groupNamespace, String g } /** * Build call for groupsBrowserOwnedFiltersGet + * @param namespace namespace (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -995,10 +1182,11 @@ public okhttp3.Call getGroupSharingPoliciesAsync(String groupNamespace, String g +
Status Code Description Response Headers
200 Filter data -
502 Bad Gateway -
0 error response -
*/ - public okhttp3.Call groupsBrowserOwnedFiltersGetCall(final ApiCallback _callback) throws ApiException { + public okhttp3.Call groupsBrowserOwnedFiltersGetCall(String namespace, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1023,6 +1211,10 @@ public okhttp3.Call groupsBrowserOwnedFiltersGetCall(final ApiCallback _callback Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (namespace != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("namespace", namespace)); + } + final String[] localVarAccepts = { "application/json" }; @@ -1044,10 +1236,10 @@ public okhttp3.Call groupsBrowserOwnedFiltersGetCall(final ApiCallback _callback } @SuppressWarnings("rawtypes") - private okhttp3.Call groupsBrowserOwnedFiltersGetValidateBeforeCall(final ApiCallback _callback) throws ApiException { + private okhttp3.Call groupsBrowserOwnedFiltersGetValidateBeforeCall(String namespace, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = groupsBrowserOwnedFiltersGetCall(_callback); + okhttp3.Call localVarCall = groupsBrowserOwnedFiltersGetCall(namespace, _callback); return localVarCall; } @@ -1055,34 +1247,38 @@ private okhttp3.Call groupsBrowserOwnedFiltersGetValidateBeforeCall(final ApiCal /** * * Fetch data to initialize filters for the groups browser + * @param namespace namespace (optional) * @return GroupBrowserFilterData * @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 Filter data -
502 Bad Gateway -
0 error response -
*/ - public GroupBrowserFilterData groupsBrowserOwnedFiltersGet() throws ApiException { - ApiResponse localVarResp = groupsBrowserOwnedFiltersGetWithHttpInfo(); + public GroupBrowserFilterData groupsBrowserOwnedFiltersGet(String namespace) throws ApiException { + ApiResponse localVarResp = groupsBrowserOwnedFiltersGetWithHttpInfo(namespace); return localVarResp.getData(); } /** * * Fetch data to initialize filters for the groups browser + * @param namespace namespace (optional) * @return ApiResponse<GroupBrowserFilterData> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Status Code Description Response Headers
200 Filter data -
502 Bad Gateway -
0 error response -
*/ - public ApiResponse groupsBrowserOwnedFiltersGetWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = groupsBrowserOwnedFiltersGetValidateBeforeCall(null); + public ApiResponse groupsBrowserOwnedFiltersGetWithHttpInfo(String namespace) throws ApiException { + okhttp3.Call localVarCall = groupsBrowserOwnedFiltersGetValidateBeforeCall(namespace, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1090,6 +1286,7 @@ public ApiResponse groupsBrowserOwnedFiltersGetWithHttpI /** * (asynchronously) * Fetch data to initialize filters for the groups browser + * @param namespace namespace (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1097,12 +1294,13 @@ public ApiResponse groupsBrowserOwnedFiltersGetWithHttpI +
Status Code Description Response Headers
200 Filter data -
502 Bad Gateway -
0 error response -
*/ - public okhttp3.Call groupsBrowserOwnedFiltersGetAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call groupsBrowserOwnedFiltersGetAsync(String namespace, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = groupsBrowserOwnedFiltersGetValidateBeforeCall(_callback); + okhttp3.Call localVarCall = groupsBrowserOwnedFiltersGetValidateBeforeCall(namespace, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1116,6 +1314,7 @@ public okhttp3.Call groupsBrowserOwnedFiltersGetAsync(final ApiCallback Status Code Description Response Headers 200 Filter data - + 502 Bad Gateway - 0 error response - */ @@ -1182,6 +1381,7 @@ private okhttp3.Call groupsBrowserPublicFiltersGetValidateBeforeCall(final ApiCa +
Status Code Description Response Headers
200 Filter data -
502 Bad Gateway -
0 error response -
*/ @@ -1199,6 +1399,7 @@ public GroupBrowserFilterData groupsBrowserPublicFiltersGet() throws ApiExceptio +
Status Code Description Response Headers
200 Filter data -
502 Bad Gateway -
0 error response -
*/ @@ -1218,6 +1419,7 @@ public ApiResponse groupsBrowserPublicFiltersGetWithHttp +
Status Code Description Response Headers
200 Filter data -
502 Bad Gateway -
0 error response -
*/ @@ -1230,6 +1432,7 @@ public okhttp3.Call groupsBrowserPublicFiltersGetAsync(final ApiCallback Status Code Description Response Headers 200 Filter data - + 502 Bad Gateway - 0 error response - */ - public okhttp3.Call groupsBrowserSharedFiltersGetCall(final ApiCallback _callback) throws ApiException { + public okhttp3.Call groupsBrowserSharedFiltersGetCall(String namespace, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1265,6 +1469,10 @@ public okhttp3.Call groupsBrowserSharedFiltersGetCall(final ApiCallback _callbac Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (namespace != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("namespace", namespace)); + } + final String[] localVarAccepts = { "application/json" }; @@ -1286,10 +1494,10 @@ public okhttp3.Call groupsBrowserSharedFiltersGetCall(final ApiCallback _callbac } @SuppressWarnings("rawtypes") - private okhttp3.Call groupsBrowserSharedFiltersGetValidateBeforeCall(final ApiCallback _callback) throws ApiException { + private okhttp3.Call groupsBrowserSharedFiltersGetValidateBeforeCall(String namespace, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = groupsBrowserSharedFiltersGetCall(_callback); + okhttp3.Call localVarCall = groupsBrowserSharedFiltersGetCall(namespace, _callback); return localVarCall; } @@ -1297,34 +1505,38 @@ private okhttp3.Call groupsBrowserSharedFiltersGetValidateBeforeCall(final ApiCa /** * * Fetch data to initialize filters for the groups browser + * @param namespace namespace (optional) * @return GroupBrowserFilterData * @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 Filter data -
502 Bad Gateway -
0 error response -
*/ - public GroupBrowserFilterData groupsBrowserSharedFiltersGet() throws ApiException { - ApiResponse localVarResp = groupsBrowserSharedFiltersGetWithHttpInfo(); + public GroupBrowserFilterData groupsBrowserSharedFiltersGet(String namespace) throws ApiException { + ApiResponse localVarResp = groupsBrowserSharedFiltersGetWithHttpInfo(namespace); return localVarResp.getData(); } /** * * Fetch data to initialize filters for the groups browser + * @param namespace namespace (optional) * @return ApiResponse<GroupBrowserFilterData> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details +
Status Code Description Response Headers
200 Filter data -
502 Bad Gateway -
0 error response -
*/ - public ApiResponse groupsBrowserSharedFiltersGetWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = groupsBrowserSharedFiltersGetValidateBeforeCall(null); + public ApiResponse groupsBrowserSharedFiltersGetWithHttpInfo(String namespace) throws ApiException { + okhttp3.Call localVarCall = groupsBrowserSharedFiltersGetValidateBeforeCall(namespace, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1332,6 +1544,7 @@ public ApiResponse groupsBrowserSharedFiltersGetWithHttp /** * (asynchronously) * Fetch data to initialize filters for the groups browser + * @param namespace namespace (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1339,12 +1552,13 @@ public ApiResponse groupsBrowserSharedFiltersGetWithHttp +
Status Code Description Response Headers
200 Filter data -
502 Bad Gateway -
0 error response -
*/ - public okhttp3.Call groupsBrowserSharedFiltersGetAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call groupsBrowserSharedFiltersGetAsync(String namespace, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = groupsBrowserSharedFiltersGetValidateBeforeCall(_callback); + okhttp3.Call localVarCall = groupsBrowserSharedFiltersGetValidateBeforeCall(namespace, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1360,6 +1574,7 @@ public okhttp3.Call groupsBrowserSharedFiltersGetAsync(final ApiCallback Status Code Description Response Headers 200 Filter data - + 502 Bad Gateway - 0 error response - */ @@ -1440,6 +1655,7 @@ private okhttp3.Call groupsGroupNamespaceGroupNameContentsFiltersGetValidateBefo +
Status Code Description Response Headers
200 Filter data -
502 Bad Gateway -
0 error response -
*/ @@ -1459,6 +1675,7 @@ public GroupContentsFilterData groupsGroupNamespaceGroupNameContentsFiltersGet(S +
Status Code Description Response Headers
200 Filter data -
502 Bad Gateway -
0 error response -
*/ @@ -1480,6 +1697,7 @@ public ApiResponse groupsGroupNamespaceGroupNameContent +
Status Code Description Response Headers
200 Filter data -
502 Bad Gateway -
0 error response -
*/ @@ -1494,6 +1712,7 @@ public okhttp3.Call groupsGroupNamespaceGroupNameContentsFiltersGetAsync(String * Build call for listOwnedGroups * @param page pagination offset (optional) * @param perPage pagination limit (optional) + * @param groupType filter by a specific group type (optional) * @param search search string that will look at name, namespace or description fields (optional) * @param namespace namespace (optional) * @param orderby sort by which field valid values include last_accessed, size, name (optional) @@ -1509,10 +1728,11 @@ public okhttp3.Call groupsGroupNamespaceGroupNameContentsFiltersGetAsync(String +
Status Code Description Response Headers
200 the group contents -
502 Bad Gateway -
0 error response -
*/ - public okhttp3.Call listOwnedGroupsCall(Integer page, Integer perPage, 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, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1545,6 +1765,10 @@ public okhttp3.Call listOwnedGroupsCall(Integer page, Integer perPage, String se localVarQueryParams.addAll(localVarApiClient.parameterToPair("per_page", perPage)); } + if (groupType != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("group_type", groupType)); + } + if (search != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("search", search)); } @@ -1598,10 +1822,10 @@ public okhttp3.Call listOwnedGroupsCall(Integer page, Integer perPage, String se } @SuppressWarnings("rawtypes") - private okhttp3.Call listOwnedGroupsValidateBeforeCall(Integer page, Integer perPage, String search, String namespace, String orderby, String permissions, List tag, List excludeTag, Boolean flat, String parent, final ApiCallback _callback) throws ApiException { + 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, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, _callback); + okhttp3.Call localVarCall = listOwnedGroupsCall(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, _callback); return localVarCall; } @@ -1611,6 +1835,7 @@ private okhttp3.Call listOwnedGroupsValidateBeforeCall(Integer page, Integer per * Returns one page of owned groups. * @param page pagination offset (optional) * @param perPage pagination limit (optional) + * @param groupType filter by a specific group type (optional) * @param search search string that will look at name, namespace or description fields (optional) * @param namespace namespace (optional) * @param orderby sort by which field valid values include last_accessed, size, name (optional) @@ -1625,11 +1850,12 @@ private okhttp3.Call listOwnedGroupsValidateBeforeCall(Integer page, Integer per +
Status Code Description Response Headers
200 the group contents -
502 Bad Gateway -
0 error response -
*/ - public GroupBrowserData listOwnedGroups(Integer page, Integer perPage, String search, String namespace, String orderby, String permissions, List tag, List excludeTag, Boolean flat, String parent) throws ApiException { - ApiResponse localVarResp = listOwnedGroupsWithHttpInfo(page, perPage, 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) throws ApiException { + ApiResponse localVarResp = listOwnedGroupsWithHttpInfo(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent); return localVarResp.getData(); } @@ -1638,6 +1864,7 @@ public GroupBrowserData listOwnedGroups(Integer page, Integer perPage, String se * Returns one page of owned groups. * @param page pagination offset (optional) * @param perPage pagination limit (optional) + * @param groupType filter by a specific group type (optional) * @param search search string that will look at name, namespace or description fields (optional) * @param namespace namespace (optional) * @param orderby sort by which field valid values include last_accessed, size, name (optional) @@ -1652,11 +1879,12 @@ public GroupBrowserData listOwnedGroups(Integer page, Integer perPage, String se +
Status Code Description Response Headers
200 the group contents -
502 Bad Gateway -
0 error response -
*/ - public ApiResponse listOwnedGroupsWithHttpInfo(Integer page, Integer perPage, String search, String namespace, String orderby, String permissions, List tag, List excludeTag, Boolean flat, String parent) throws ApiException { - okhttp3.Call localVarCall = listOwnedGroupsValidateBeforeCall(page, perPage, 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) throws ApiException { + okhttp3.Call localVarCall = listOwnedGroupsValidateBeforeCall(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1666,6 +1894,7 @@ public ApiResponse listOwnedGroupsWithHttpInfo(Integer page, I * Returns one page of owned groups. * @param page pagination offset (optional) * @param perPage pagination limit (optional) + * @param groupType filter by a specific group type (optional) * @param search search string that will look at name, namespace or description fields (optional) * @param namespace namespace (optional) * @param orderby sort by which field valid values include last_accessed, size, name (optional) @@ -1681,12 +1910,13 @@ public ApiResponse listOwnedGroupsWithHttpInfo(Integer page, I +
Status Code Description Response Headers
200 the group contents -
502 Bad Gateway -
0 error response -
*/ - public okhttp3.Call listOwnedGroupsAsync(Integer page, Integer perPage, 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, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listOwnedGroupsValidateBeforeCall(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, _callback); + okhttp3.Call localVarCall = listOwnedGroupsValidateBeforeCall(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1695,6 +1925,7 @@ public okhttp3.Call listOwnedGroupsAsync(Integer page, Integer perPage, String s * Build call for listPublicGroups * @param page pagination offset (optional) * @param perPage pagination limit (optional) + * @param groupType filter by a specific group type (optional) * @param search search string that will look at name, namespace or description fields (optional) * @param namespace namespace (optional) * @param orderby sort by which field valid values include last_accessed, size, name (optional) @@ -1710,10 +1941,11 @@ public okhttp3.Call listOwnedGroupsAsync(Integer page, Integer perPage, String s +
Status Code Description Response Headers
200 the group contents -
502 Bad Gateway -
0 error response -
*/ - public okhttp3.Call listPublicGroupsCall(Integer page, Integer perPage, 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, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1746,6 +1978,10 @@ public okhttp3.Call listPublicGroupsCall(Integer page, Integer perPage, String s localVarQueryParams.addAll(localVarApiClient.parameterToPair("per_page", perPage)); } + if (groupType != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("group_type", groupType)); + } + if (search != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("search", search)); } @@ -1799,10 +2035,10 @@ public okhttp3.Call listPublicGroupsCall(Integer page, Integer perPage, String s } @SuppressWarnings("rawtypes") - private okhttp3.Call listPublicGroupsValidateBeforeCall(Integer page, Integer perPage, String search, String namespace, String orderby, String permissions, List tag, List excludeTag, Boolean flat, String parent, final ApiCallback _callback) throws ApiException { + 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, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, _callback); + okhttp3.Call localVarCall = listPublicGroupsCall(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, _callback); return localVarCall; } @@ -1812,6 +2048,7 @@ private okhttp3.Call listPublicGroupsValidateBeforeCall(Integer page, Integer pe * Returns one page of public groups. * @param page pagination offset (optional) * @param perPage pagination limit (optional) + * @param groupType filter by a specific group type (optional) * @param search search string that will look at name, namespace or description fields (optional) * @param namespace namespace (optional) * @param orderby sort by which field valid values include last_accessed, size, name (optional) @@ -1826,11 +2063,12 @@ private okhttp3.Call listPublicGroupsValidateBeforeCall(Integer page, Integer pe +
Status Code Description Response Headers
200 the group contents -
502 Bad Gateway -
0 error response -
*/ - public GroupBrowserData listPublicGroups(Integer page, Integer perPage, String search, String namespace, String orderby, String permissions, List tag, List excludeTag, Boolean flat, String parent) throws ApiException { - ApiResponse localVarResp = listPublicGroupsWithHttpInfo(page, perPage, 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) throws ApiException { + ApiResponse localVarResp = listPublicGroupsWithHttpInfo(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent); return localVarResp.getData(); } @@ -1839,6 +2077,7 @@ public GroupBrowserData listPublicGroups(Integer page, Integer perPage, String s * Returns one page of public groups. * @param page pagination offset (optional) * @param perPage pagination limit (optional) + * @param groupType filter by a specific group type (optional) * @param search search string that will look at name, namespace or description fields (optional) * @param namespace namespace (optional) * @param orderby sort by which field valid values include last_accessed, size, name (optional) @@ -1853,11 +2092,12 @@ public GroupBrowserData listPublicGroups(Integer page, Integer perPage, String s +
Status Code Description Response Headers
200 the group contents -
502 Bad Gateway -
0 error response -
*/ - public ApiResponse listPublicGroupsWithHttpInfo(Integer page, Integer perPage, String search, String namespace, String orderby, String permissions, List tag, List excludeTag, Boolean flat, String parent) throws ApiException { - okhttp3.Call localVarCall = listPublicGroupsValidateBeforeCall(page, perPage, 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) throws ApiException { + okhttp3.Call localVarCall = listPublicGroupsValidateBeforeCall(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1867,6 +2107,7 @@ public ApiResponse listPublicGroupsWithHttpInfo(Integer page, * Returns one page of public groups. * @param page pagination offset (optional) * @param perPage pagination limit (optional) + * @param groupType filter by a specific group type (optional) * @param search search string that will look at name, namespace or description fields (optional) * @param namespace namespace (optional) * @param orderby sort by which field valid values include last_accessed, size, name (optional) @@ -1882,12 +2123,13 @@ public ApiResponse listPublicGroupsWithHttpInfo(Integer page, +
Status Code Description Response Headers
200 the group contents -
502 Bad Gateway -
0 error response -
*/ - public okhttp3.Call listPublicGroupsAsync(Integer page, Integer perPage, 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, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listPublicGroupsValidateBeforeCall(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, _callback); + okhttp3.Call localVarCall = listPublicGroupsValidateBeforeCall(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1896,6 +2138,7 @@ public okhttp3.Call listPublicGroupsAsync(Integer page, Integer perPage, String * Build call for listSharedGroups * @param page pagination offset (optional) * @param perPage pagination limit (optional) + * @param groupType filter by a specific group type (optional) * @param search search string that will look at name, namespace or description fields (optional) * @param namespace namespace (optional) * @param orderby sort by which field valid values include last_accessed, size, name (optional) @@ -1912,10 +2155,11 @@ public okhttp3.Call listPublicGroupsAsync(Integer page, Integer perPage, String +
Status Code Description Response Headers
200 the group contents -
502 Bad Gateway -
0 error response -
*/ - public okhttp3.Call listSharedGroupsCall(Integer page, Integer perPage, 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, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1948,6 +2192,10 @@ public okhttp3.Call listSharedGroupsCall(Integer page, Integer perPage, String s localVarQueryParams.addAll(localVarApiClient.parameterToPair("per_page", perPage)); } + if (groupType != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("group_type", groupType)); + } + if (search != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("search", search)); } @@ -2005,10 +2253,10 @@ public okhttp3.Call listSharedGroupsCall(Integer page, Integer perPage, String s } @SuppressWarnings("rawtypes") - private okhttp3.Call listSharedGroupsValidateBeforeCall(Integer page, Integer perPage, String search, String namespace, String orderby, String permissions, List tag, List excludeTag, Boolean flat, String parent, List sharedTo, final ApiCallback _callback) throws ApiException { + 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, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, sharedTo, _callback); + okhttp3.Call localVarCall = listSharedGroupsCall(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, sharedTo, _callback); return localVarCall; } @@ -2018,6 +2266,7 @@ private okhttp3.Call listSharedGroupsValidateBeforeCall(Integer page, Integer pe * Returns one page of shared groups. * @param page pagination offset (optional) * @param perPage pagination limit (optional) + * @param groupType filter by a specific group type (optional) * @param search search string that will look at name, namespace or description fields (optional) * @param namespace namespace (optional) * @param orderby sort by which field valid values include last_accessed, size, name (optional) @@ -2033,11 +2282,12 @@ private okhttp3.Call listSharedGroupsValidateBeforeCall(Integer page, Integer pe +
Status Code Description Response Headers
200 the group contents -
502 Bad Gateway -
0 error response -
*/ - public GroupBrowserData listSharedGroups(Integer page, Integer perPage, 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, 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) throws ApiException { + ApiResponse localVarResp = listSharedGroupsWithHttpInfo(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, sharedTo); return localVarResp.getData(); } @@ -2046,6 +2296,7 @@ public GroupBrowserData listSharedGroups(Integer page, Integer perPage, String s * Returns one page of shared groups. * @param page pagination offset (optional) * @param perPage pagination limit (optional) + * @param groupType filter by a specific group type (optional) * @param search search string that will look at name, namespace or description fields (optional) * @param namespace namespace (optional) * @param orderby sort by which field valid values include last_accessed, size, name (optional) @@ -2061,11 +2312,12 @@ public GroupBrowserData listSharedGroups(Integer page, Integer perPage, String s +
Status Code Description Response Headers
200 the group contents -
502 Bad Gateway -
0 error response -
*/ - public ApiResponse listSharedGroupsWithHttpInfo(Integer page, Integer perPage, 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, 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) throws ApiException { + okhttp3.Call localVarCall = listSharedGroupsValidateBeforeCall(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, sharedTo, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -2075,6 +2327,7 @@ public ApiResponse listSharedGroupsWithHttpInfo(Integer page, * Returns one page of shared groups. * @param page pagination offset (optional) * @param perPage pagination limit (optional) + * @param groupType filter by a specific group type (optional) * @param search search string that will look at name, namespace or description fields (optional) * @param namespace namespace (optional) * @param orderby sort by which field valid values include last_accessed, size, name (optional) @@ -2091,12 +2344,13 @@ public ApiResponse listSharedGroupsWithHttpInfo(Integer page, +
Status Code Description Response Headers
200 the group contents -
502 Bad Gateway -
0 error response -
*/ - public okhttp3.Call listSharedGroupsAsync(Integer page, Integer perPage, 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, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = listSharedGroupsValidateBeforeCall(page, perPage, 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, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -2113,6 +2367,7 @@ public okhttp3.Call listSharedGroupsAsync(Integer page, Integer perPage, String +
Status Code Description Response Headers
204 group created successfully -
502 Bad Gateway -
0 error response -
*/ @@ -2193,6 +2448,7 @@ private okhttp3.Call registerGroupValidateBeforeCall(String namespace, String ar +
Status Code Description Response Headers
204 group created successfully -
502 Bad Gateway -
0 error response -
*/ @@ -2212,6 +2468,7 @@ public void registerGroup(String namespace, String array, GroupRegister groupReg +
Status Code Description Response Headers
204 group created successfully -
502 Bad Gateway -
0 error response -
*/ @@ -2233,6 +2490,7 @@ public ApiResponse registerGroupWithHttpInfo(String namespace, String arra +
Status Code Description Response Headers
204 group created successfully -
502 Bad Gateway -
0 error response -
*/ @@ -2255,6 +2513,7 @@ public okhttp3.Call registerGroupAsync(String namespace, String array, GroupRegi Status Code Description Response Headers 204 Group shared successfully - 404 Group does not exist or user does not have permissions to share group - + 502 Bad Gateway - 0 error response - */ @@ -2341,6 +2600,7 @@ private okhttp3.Call shareGroupValidateBeforeCall(String groupNamespace, String Status Code Description Response Headers 204 Group shared successfully - 404 Group does not exist or user does not have permissions to share group - + 502 Bad Gateway - 0 error response - */ @@ -2361,6 +2621,7 @@ public void shareGroup(String groupNamespace, String groupName, GroupSharingRequ Status Code Description Response Headers 204 Group shared successfully - 404 Group does not exist or user does not have permissions to share group - + 502 Bad Gateway - 0 error response - */ @@ -2383,6 +2644,7 @@ public ApiResponse shareGroupWithHttpInfo(String groupNamespace, String gr Status Code Description Response Headers 204 Group shared successfully - 404 Group does not exist or user does not have permissions to share group - + 502 Bad Gateway - 0 error response - */ @@ -2404,6 +2666,7 @@ public okhttp3.Call shareGroupAsync(String groupNamespace, String groupName, Gro +
Status Code Description Response Headers
204 attributes changed successfully -
502 Bad Gateway -
0 error response -
*/ @@ -2484,6 +2747,7 @@ private okhttp3.Call updateGroupValidateBeforeCall(String groupNamespace, String +
Status Code Description Response Headers
204 attributes changed successfully -
502 Bad Gateway -
0 error response -
*/ @@ -2503,6 +2767,7 @@ public void updateGroup(String groupNamespace, String groupName, GroupUpdate gro +
Status Code Description Response Headers
204 attributes changed successfully -
502 Bad Gateway -
0 error response -
*/ @@ -2524,6 +2789,7 @@ public ApiResponse updateGroupWithHttpInfo(String groupNamespace, String g +
Status Code Description Response Headers
204 attributes changed successfully -
502 Bad Gateway -
0 error response -
*/ 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 1a11d90..af92183 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 @@ -13,6 +13,10 @@ package io.tiledb.cloud.rest_api.api; +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.ApiCallback; import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; @@ -23,10 +27,6 @@ import com.google.gson.reflect.TypeToken; -import io.tiledb.cloud.rest_api.model.InvitationArrayShareEmail; -import io.tiledb.cloud.rest_api.model.InvitationData; -import io.tiledb.cloud.rest_api.model.InvitationOrganizationJoinEmail; - import java.lang.reflect.Type; import java.util.ArrayList; import java.util.HashMap; @@ -81,6 +81,7 @@ public void setCustomBaseUrl(String customBaseUrl) { Status Code Description Response Headers 204 Invitation was accepted successfully - 404 Could not find invitation identifier - + 502 Bad Gateway - 0 error response - */ @@ -154,6 +155,7 @@ private okhttp3.Call acceptInvitationValidateBeforeCall(String invitation, final Status Code Description Response Headers 204 Invitation was accepted successfully - 404 Could not find invitation identifier - + 502 Bad Gateway - 0 error response - */ @@ -172,6 +174,7 @@ public void acceptInvitation(String invitation) throws ApiException { Status Code Description Response Headers 204 Invitation was accepted successfully - 404 Could not find invitation identifier - + 502 Bad Gateway - 0 error response - */ @@ -192,6 +195,7 @@ public ApiResponse acceptInvitationWithHttpInfo(String invitation) throws Status Code Description Response Headers 204 Invitation was accepted successfully - 404 Could not find invitation identifier - + 502 Bad Gateway - 0 error response - */ @@ -213,6 +217,7 @@ public okhttp3.Call acceptInvitationAsync(String invitation, final ApiCallback Status Code Description Response Headers 204 Invitation cancelled successfully - 404 No invitation was found to cancel - + 502 Bad Gateway - 0 error response - */ @@ -293,6 +298,7 @@ private okhttp3.Call cancelJoinOrganizationValidateBeforeCall(String invitation, Status Code Description Response Headers 204 Invitation cancelled successfully - 404 No invitation was found to cancel - + 502 Bad Gateway - 0 error response - */ @@ -312,6 +318,7 @@ public void cancelJoinOrganization(String invitation, String organization) throw Status Code Description Response Headers 204 Invitation cancelled successfully - 404 No invitation was found to cancel - + 502 Bad Gateway - 0 error response - */ @@ -333,6 +340,7 @@ public ApiResponse cancelJoinOrganizationWithHttpInfo(String invitation, S Status Code Description Response Headers 204 Invitation cancelled successfully - 404 No invitation was found to cancel - + 502 Bad Gateway - 0 error response - */ @@ -355,6 +363,7 @@ public okhttp3.Call cancelJoinOrganizationAsync(String invitation, String organi Status Code Description Response Headers 204 Invitation cancelled successfully - 404 No invitation was found to cancel - + 502 Bad Gateway - 0 error response - */ @@ -442,6 +451,7 @@ private okhttp3.Call cancelShareArrayByInviteValidateBeforeCall(String namespace Status Code Description Response Headers 204 Invitation cancelled successfully - 404 No invitation was found to cancel - + 502 Bad Gateway - 0 error response - */ @@ -462,6 +472,7 @@ public void cancelShareArrayByInvite(String namespace, String invitation, String Status Code Description Response Headers 204 Invitation cancelled successfully - 404 No invitation was found to cancel - + 502 Bad Gateway - 0 error response - */ @@ -484,6 +495,7 @@ public ApiResponse cancelShareArrayByInviteWithHttpInfo(String namespace, Status Code Description Response Headers 204 Invitation cancelled successfully - 404 No invitation was found to cancel - + 502 Bad Gateway - 0 error response - */ @@ -493,10 +505,166 @@ public okhttp3.Call cancelShareArrayByInviteAsync(String namespace, String invit localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } + /** + * Build call for cancelShareGroupByInvite + * @param namespace namespace group is in (an organization name or user's username) (required) + * @param invitation the ID of invitation about to be cancelled (required) + * @param groupName name/uuid of group that is url-encoded (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
204 Invitation cancelled successfully -
404 No invitation was found to cancel -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call cancelShareGroupByInviteCall(String namespace, String invitation, String groupName, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/invitations/group/{invitation}/{namespace}/{group_name}/share" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "invitation" + "\\}", localVarApiClient.escapeString(invitation.toString())) + .replaceAll("\\{" + "group_name" + "\\}", localVarApiClient.escapeString(groupName.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call cancelShareGroupByInviteValidateBeforeCall(String namespace, String invitation, String groupName, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling cancelShareGroupByInvite(Async)"); + } + + // verify the required parameter 'invitation' is set + if (invitation == null) { + throw new ApiException("Missing the required parameter 'invitation' when calling cancelShareGroupByInvite(Async)"); + } + + // verify the required parameter 'groupName' is set + if (groupName == null) { + throw new ApiException("Missing the required parameter 'groupName' when calling cancelShareGroupByInvite(Async)"); + } + + + okhttp3.Call localVarCall = cancelShareGroupByInviteCall(namespace, invitation, groupName, _callback); + return localVarCall; + + } + + /** + * + * Cancels group sharing invitation + * @param namespace namespace group is in (an organization name or user's username) (required) + * @param invitation the ID of invitation about to be cancelled (required) + * @param groupName name/uuid of group that is url-encoded (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
204 Invitation cancelled successfully -
404 No invitation was found to cancel -
502 Bad Gateway -
0 error response -
+ */ + public void cancelShareGroupByInvite(String namespace, String invitation, String groupName) throws ApiException { + cancelShareGroupByInviteWithHttpInfo(namespace, invitation, groupName); + } + + /** + * + * Cancels group sharing invitation + * @param namespace namespace group is in (an organization name or user's username) (required) + * @param invitation the ID of invitation about to be cancelled (required) + * @param groupName name/uuid of group that is url-encoded (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
204 Invitation cancelled successfully -
404 No invitation was found to cancel -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse cancelShareGroupByInviteWithHttpInfo(String namespace, String invitation, String groupName) throws ApiException { + okhttp3.Call localVarCall = cancelShareGroupByInviteValidateBeforeCall(namespace, invitation, groupName, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) + * Cancels group sharing invitation + * @param namespace namespace group is in (an organization name or user's username) (required) + * @param invitation the ID of invitation about to be cancelled (required) + * @param groupName name/uuid of group that is url-encoded (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
204 Invitation cancelled successfully -
404 No invitation was found to cancel -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call cancelShareGroupByInviteAsync(String namespace, String invitation, String groupName, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = cancelShareGroupByInviteValidateBeforeCall(namespace, invitation, groupName, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } /** * Build call for fetchInvitations * @param organization name or ID of organization to filter (optional) * @param array name/uri of array that is url-encoded to filter (optional) + * @param group name or ID of group to filter (optional) * @param start start time for tasks to filter by (optional) * @param end end time for tasks to filter by (optional) * @param page pagination offset (optional) @@ -511,10 +679,11 @@ public okhttp3.Call cancelShareArrayByInviteAsync(String namespace, String invit +
Status Code Description Response Headers
200 List of invitations and pagination metadata -
502 Bad Gateway -
0 error response -
*/ - public okhttp3.Call fetchInvitationsCall(String organization, String array, Integer start, Integer end, Integer page, Integer perPage, String type, String status, String orderby, final ApiCallback _callback) throws ApiException { + public okhttp3.Call fetchInvitationsCall(String organization, String array, String group, Integer start, Integer end, Integer page, Integer perPage, String type, String status, String orderby, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -547,6 +716,10 @@ public okhttp3.Call fetchInvitationsCall(String organization, String array, Inte localVarQueryParams.addAll(localVarApiClient.parameterToPair("array", array)); } + if (group != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("group", group)); + } + if (start != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("start", start)); } @@ -596,10 +769,10 @@ public okhttp3.Call fetchInvitationsCall(String organization, String array, Inte } @SuppressWarnings("rawtypes") - private okhttp3.Call fetchInvitationsValidateBeforeCall(String organization, String array, Integer start, Integer end, Integer page, Integer perPage, String type, String status, String orderby, final ApiCallback _callback) throws ApiException { + 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, start, end, page, perPage, type, status, orderby, _callback); + okhttp3.Call localVarCall = fetchInvitationsCall(organization, array, group, start, end, page, perPage, type, status, orderby, _callback); return localVarCall; } @@ -609,6 +782,7 @@ private okhttp3.Call fetchInvitationsValidateBeforeCall(String organization, Str * Fetch a list of invitations * @param organization name or ID of organization to filter (optional) * @param array name/uri of array that is url-encoded to filter (optional) + * @param group name or ID of group to filter (optional) * @param start start time for tasks to filter by (optional) * @param end end time for tasks to filter by (optional) * @param page pagination offset (optional) @@ -622,11 +796,12 @@ private okhttp3.Call fetchInvitationsValidateBeforeCall(String organization, Str +
Status Code Description Response Headers
200 List of invitations and pagination metadata -
502 Bad Gateway -
0 error response -
*/ - public InvitationData fetchInvitations(String organization, String array, Integer start, Integer end, Integer page, Integer perPage, String type, String status, String orderby) throws ApiException { - ApiResponse localVarResp = fetchInvitationsWithHttpInfo(organization, array, start, end, page, perPage, type, status, orderby); + public InvitationData fetchInvitations(String organization, String array, String group, Integer start, Integer end, Integer page, Integer perPage, String type, String status, String orderby) throws ApiException { + ApiResponse localVarResp = fetchInvitationsWithHttpInfo(organization, array, group, start, end, page, perPage, type, status, orderby); return localVarResp.getData(); } @@ -635,6 +810,7 @@ public InvitationData fetchInvitations(String organization, String array, Intege * Fetch a list of invitations * @param organization name or ID of organization to filter (optional) * @param array name/uri of array that is url-encoded to filter (optional) + * @param group name or ID of group to filter (optional) * @param start start time for tasks to filter by (optional) * @param end end time for tasks to filter by (optional) * @param page pagination offset (optional) @@ -648,11 +824,12 @@ public InvitationData fetchInvitations(String organization, String array, Intege +
Status Code Description Response Headers
200 List of invitations and pagination metadata -
502 Bad Gateway -
0 error response -
*/ - public ApiResponse fetchInvitationsWithHttpInfo(String organization, String array, Integer start, Integer end, Integer page, Integer perPage, String type, String status, String orderby) throws ApiException { - okhttp3.Call localVarCall = fetchInvitationsValidateBeforeCall(organization, array, start, end, page, perPage, type, status, orderby, null); + public ApiResponse fetchInvitationsWithHttpInfo(String organization, String array, String group, Integer start, Integer end, Integer page, Integer perPage, String type, String status, String orderby) throws ApiException { + okhttp3.Call localVarCall = fetchInvitationsValidateBeforeCall(organization, array, group, start, end, page, perPage, type, status, orderby, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -662,6 +839,7 @@ public ApiResponse fetchInvitationsWithHttpInfo(String organizat * Fetch a list of invitations * @param organization name or ID of organization to filter (optional) * @param array name/uri of array that is url-encoded to filter (optional) + * @param group name or ID of group to filter (optional) * @param start start time for tasks to filter by (optional) * @param end end time for tasks to filter by (optional) * @param page pagination offset (optional) @@ -676,12 +854,13 @@ public ApiResponse fetchInvitationsWithHttpInfo(String organizat +
Status Code Description Response Headers
200 List of invitations and pagination metadata -
502 Bad Gateway -
0 error response -
*/ - public okhttp3.Call fetchInvitationsAsync(String organization, String array, Integer start, Integer end, Integer page, Integer perPage, String type, String status, String orderby, final ApiCallback _callback) throws ApiException { + public okhttp3.Call fetchInvitationsAsync(String organization, String array, String group, Integer start, Integer end, Integer page, Integer perPage, String type, String status, String orderby, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = fetchInvitationsValidateBeforeCall(organization, array, start, end, page, perPage, type, status, orderby, _callback); + okhttp3.Call localVarCall = fetchInvitationsValidateBeforeCall(organization, array, group, start, end, page, perPage, type, status, orderby, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -697,7 +876,9 @@ public okhttp3.Call fetchInvitationsAsync(String organization, String array, Int - + + +
Status Code Description Response Headers
204 Email sent successfully to user for email confirmation link -
404 Could not reach one or more recipients -
207 Only a portion of the invitations succeeded, some failed -
500 Could not reach any recipients -
502 Bad Gateway -
0 error response -
*/ @@ -776,7 +957,9 @@ private okhttp3.Call joinOrganizationValidateBeforeCall(String organization, Inv - + + +
Status Code Description Response Headers
204 Email sent successfully to user for email confirmation link -
404 Could not reach one or more recipients -
207 Only a portion of the invitations succeeded, some failed -
500 Could not reach any recipients -
502 Bad Gateway -
0 error response -
*/ @@ -795,7 +978,9 @@ public void joinOrganization(String organization, InvitationOrganizationJoinEmai - + + +
Status Code Description Response Headers
204 Email sent successfully to user for email confirmation link -
404 Could not reach one or more recipients -
207 Only a portion of the invitations succeeded, some failed -
500 Could not reach any recipients -
502 Bad Gateway -
0 error response -
*/ @@ -816,7 +1001,9 @@ public ApiResponse joinOrganizationWithHttpInfo(String organization, Invit - + + +
Status Code Description Response Headers
204 Email sent successfully to user for email confirmation link -
404 Could not reach one or more recipients -
207 Only a portion of the invitations succeeded, some failed -
500 Could not reach any recipients -
502 Bad Gateway -
0 error response -
*/ @@ -838,7 +1025,9 @@ public okhttp3.Call joinOrganizationAsync(String organization, InvitationOrganiz - + + +
Status Code Description Response Headers
204 Email sent successfully to user for email confirmation link -
404 Could not reach one or more recipients -
207 Only a portion of the invitations succeeded, some failed -
500 Could not reach any recipients -
502 Bad Gateway -
0 error response -
*/ @@ -924,7 +1113,9 @@ private okhttp3.Call shareArrayByInviteValidateBeforeCall(String namespace, Stri - + + +
Status Code Description Response Headers
204 Email sent successfully to user for email confirmation link -
404 Could not reach one or more recipients -
207 Only a portion of the invitations succeeded, some failed -
500 Could not reach any recipients -
502 Bad Gateway -
0 error response -
*/ @@ -944,7 +1135,9 @@ public void shareArrayByInvite(String namespace, String array, InvitationArraySh - + + +
Status Code Description Response Headers
204 Email sent successfully to user for email confirmation link -
404 Could not reach one or more recipients -
207 Only a portion of the invitations succeeded, some failed -
500 Could not reach any recipients -
502 Bad Gateway -
0 error response -
*/ @@ -966,7 +1159,9 @@ public ApiResponse shareArrayByInviteWithHttpInfo(String namespace, String - + + +
Status Code Description Response Headers
204 Email sent successfully to user for email confirmation link -
404 Could not reach one or more recipients -
207 Only a portion of the invitations succeeded, some failed -
500 Could not reach any recipients -
502 Bad Gateway -
0 error response -
*/ @@ -976,4 +1171,162 @@ public okhttp3.Call shareArrayByInviteAsync(String namespace, String array, Invi localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } + /** + * Build call for shareGroupByInvite + * @param namespace namespace group is in (an organization name or user's username) (required) + * @param group name/uri of group that is url-encoded (required) + * @param emailInvite list of email/namespace recipients (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
204 Email sent successfully to user with an email confirmation link -
207 Only a portion of the invitations succeeded, some failed -
500 Could not reach any recipients -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call shareGroupByInviteCall(String namespace, String group, InvitationGroupShareEmail emailInvite, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = emailInvite; + + // create path and map variables + String localVarPath = "/invitations/group/{namespace}/{group}/share" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "group" + "\\}", localVarApiClient.escapeString(group.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call shareGroupByInviteValidateBeforeCall(String namespace, String group, InvitationGroupShareEmail emailInvite, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling shareGroupByInvite(Async)"); + } + + // verify the required parameter 'group' is set + if (group == null) { + throw new ApiException("Missing the required parameter 'group' when calling shareGroupByInvite(Async)"); + } + + // verify the required parameter 'emailInvite' is set + if (emailInvite == null) { + throw new ApiException("Missing the required parameter 'emailInvite' when calling shareGroupByInvite(Async)"); + } + + + okhttp3.Call localVarCall = shareGroupByInviteCall(namespace, group, emailInvite, _callback); + return localVarCall; + + } + + /** + * + * Sends email to multiple recipients with sharing information regarding a group + * @param namespace namespace group is in (an organization name or user's username) (required) + * @param group name/uri of group that is url-encoded (required) + * @param emailInvite list of email/namespace recipients (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
204 Email sent successfully to user with an email confirmation link -
207 Only a portion of the invitations succeeded, some failed -
500 Could not reach any recipients -
502 Bad Gateway -
0 error response -
+ */ + public void shareGroupByInvite(String namespace, String group, InvitationGroupShareEmail emailInvite) throws ApiException { + shareGroupByInviteWithHttpInfo(namespace, group, emailInvite); + } + + /** + * + * Sends email to multiple recipients with sharing information regarding a group + * @param namespace namespace group is in (an organization name or user's username) (required) + * @param group name/uri of group that is url-encoded (required) + * @param emailInvite list of email/namespace recipients (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
204 Email sent successfully to user with an email confirmation link -
207 Only a portion of the invitations succeeded, some failed -
500 Could not reach any recipients -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse shareGroupByInviteWithHttpInfo(String namespace, String group, InvitationGroupShareEmail emailInvite) throws ApiException { + okhttp3.Call localVarCall = shareGroupByInviteValidateBeforeCall(namespace, group, emailInvite, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) + * Sends email to multiple recipients with sharing information regarding a group + * @param namespace namespace group is in (an organization name or user's username) (required) + * @param group name/uri of group that is url-encoded (required) + * @param emailInvite list of email/namespace recipients (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
204 Email sent successfully to user with an email confirmation link -
207 Only a portion of the invitations succeeded, some failed -
500 Could not reach any recipients -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call shareGroupByInviteAsync(String namespace, String group, InvitationGroupShareEmail emailInvite, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = shareGroupByInviteValidateBeforeCall(namespace, group, emailInvite, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } } 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 c116339..5be5110 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 @@ -87,6 +87,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 202 Notebook server is pending - 402 Payment required - 404 Notebook is not running - + 502 Bad Gateway - 0 error response - */ @@ -163,6 +164,7 @@ private okhttp3.Call getNotebookServerStatusValidateBeforeCall(String namespace, 202 Notebook server is pending - 402 Payment required - 404 Notebook is not running - + 502 Bad Gateway - 0 error response - */ @@ -184,6 +186,7 @@ public NotebookStatus getNotebookServerStatus(String namespace) throws ApiExcept 202 Notebook server is pending - 402 Payment required - 404 Notebook is not running - + 502 Bad Gateway - 0 error response - */ @@ -207,6 +210,7 @@ public ApiResponse getNotebookServerStatusWithHttpInfo(String na 202 Notebook server is pending - 402 Payment required - 404 Notebook is not running - + 502 Bad Gateway - 0 error response - */ @@ -231,6 +235,7 @@ public okhttp3.Call getNotebookServerStatusAsync(String namespace, final ApiCall +
Status Code Description Response Headers
201 Notebook copied -
502 Bad Gateway -
0 error response -
*/ @@ -327,6 +332,7 @@ private okhttp3.Call handleCopyNotebookValidateBeforeCall(String namespace, Stri +
Status Code Description Response Headers
201 Notebook copied -
502 Bad Gateway -
0 error response -
*/ @@ -349,6 +355,7 @@ public NotebookCopied handleCopyNotebook(String namespace, String array, Noteboo +
Status Code Description Response Headers
201 Notebook copied -
502 Bad Gateway -
0 error response -
*/ @@ -373,6 +380,7 @@ public ApiResponse handleCopyNotebookWithHttpInfo(String namespa +
Status Code Description Response Headers
201 Notebook copied -
502 Bad Gateway -
0 error response -
*/ @@ -397,6 +405,7 @@ public okhttp3.Call handleCopyNotebookAsync(String namespace, String array, Note +
Status Code Description Response Headers
201 File uploaded -
502 Bad Gateway -
0 error response -
*/ @@ -495,6 +504,7 @@ private okhttp3.Call handleUploadNotebookValidateBeforeCall(String namespace, Fi +
Status Code Description Response Headers
201 File uploaded -
502 Bad Gateway -
0 error response -
*/ @@ -517,6 +527,7 @@ public FileUploaded handleUploadNotebook(String namespace, File inputFile, Strin +
Status Code Description Response Headers
201 File uploaded -
502 Bad Gateway -
0 error response -
*/ @@ -541,6 +552,7 @@ public ApiResponse handleUploadNotebookWithHttpInfo(String namespa +
Status Code Description Response Headers
201 File uploaded -
502 Bad Gateway -
0 error response -
*/ @@ -562,6 +574,7 @@ public okhttp3.Call handleUploadNotebookAsync(String namespace, File inputFile, Status Code Description Response Headers 204 Notebook shutdown successfully - 404 Notebook is not running - + 502 Bad Gateway - 0 error response - */ @@ -635,6 +648,7 @@ private okhttp3.Call shutdownNotebookServerValidateBeforeCall(String namespace, Status Code Description Response Headers 204 Notebook shutdown successfully - 404 Notebook is not running - + 502 Bad Gateway - 0 error response - */ @@ -653,6 +667,7 @@ public void shutdownNotebookServer(String namespace) throws ApiException { Status Code Description Response Headers 204 Notebook shutdown successfully - 404 Notebook is not running - + 502 Bad Gateway - 0 error response - */ @@ -673,6 +688,7 @@ public ApiResponse shutdownNotebookServerWithHttpInfo(String namespace) th Status Code Description Response Headers 204 Notebook shutdown successfully - 404 Notebook is not running - + 502 Bad Gateway - 0 error response - */ @@ -694,6 +710,7 @@ public okhttp3.Call shutdownNotebookServerAsync(String namespace, final ApiCallb +
Status Code Description Response Headers
204 notebook name updated successfully -
502 Bad Gateway -
0 error response -
*/ @@ -779,6 +796,7 @@ private okhttp3.Call updateNotebookNameValidateBeforeCall(String namespace, Stri +
Status Code Description Response Headers
204 notebook name updated successfully -
502 Bad Gateway -
0 error response -
*/ @@ -798,6 +816,7 @@ public void updateNotebookName(String namespace, String array, ArrayInfoUpdate n +
Status Code Description Response Headers
204 notebook name updated successfully -
502 Bad Gateway -
0 error response -
*/ @@ -819,6 +838,7 @@ public ApiResponse updateNotebookNameWithHttpInfo(String namespace, String +
Status Code Description Response Headers
204 notebook name updated successfully -
502 Bad Gateway -
0 error response -
*/ 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 db81df3..ae60559 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 @@ -13,6 +13,7 @@ package io.tiledb.cloud.rest_api.api; +import io.tiledb.cloud.rest_api.model.ArrayEndTimestampData; import io.tiledb.cloud.rest_api.ApiCallback; import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; @@ -23,8 +24,6 @@ import com.google.gson.reflect.TypeToken; -import io.tiledb.cloud.rest_api.model.ArrayEndTimestampData; - import java.lang.reflect.Type; import java.util.ArrayList; import java.util.HashMap; @@ -81,6 +80,7 @@ public void setCustomBaseUrl(String customBaseUrl) { +
Status Code Description Response Headers
200 list of timestamps in milliseconds, paginated -
502 Bad Gateway -
0 error response -
*/ @@ -171,6 +171,7 @@ private okhttp3.Call notebooksNamespaceArrayEndTimestampsGetValidateBeforeCall(S +
Status Code Description Response Headers
200 list of timestamps in milliseconds, paginated -
502 Bad Gateway -
0 error response -
*/ @@ -192,6 +193,7 @@ public ArrayEndTimestampData notebooksNamespaceArrayEndTimestampsGet(String name +
Status Code Description Response Headers
200 list of timestamps in milliseconds, paginated -
502 Bad Gateway -
0 error response -
*/ @@ -215,6 +217,7 @@ public ApiResponse notebooksNamespaceArrayEndTimestampsGe +
Status Code Description Response Headers
200 list of timestamps in milliseconds, paginated -
502 Bad Gateway -
0 error response -
*/ @@ -225,4 +228,153 @@ public okhttp3.Call notebooksNamespaceArrayEndTimestampsGetAsync(String namespac localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** + * Build call for notebooksNamespaceArrayPrunePost + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param keepVersions The number of most recents fragment to preserve (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
204 notebook pruned -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call notebooksNamespaceArrayPrunePostCall(String namespace, String array, Integer keepVersions, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/notebooks/{namespace}/{array}/prune" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "array" + "\\}", localVarApiClient.escapeString(array.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (keepVersions != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("keep_versions", keepVersions)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call notebooksNamespaceArrayPrunePostValidateBeforeCall(String namespace, String array, Integer keepVersions, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling notebooksNamespaceArrayPrunePost(Async)"); + } + + // verify the required parameter 'array' is set + if (array == null) { + throw new ApiException("Missing the required parameter 'array' when calling notebooksNamespaceArrayPrunePost(Async)"); + } + + + okhttp3.Call localVarCall = notebooksNamespaceArrayPrunePostCall(namespace, array, keepVersions, _callback); + return localVarCall; + + } + + /** + * + * prune fragments of the notebook + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param keepVersions The number of most recents fragment to preserve (optional) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
204 notebook pruned -
502 Bad Gateway -
0 error response -
+ */ + public void notebooksNamespaceArrayPrunePost(String namespace, String array, Integer keepVersions) throws ApiException { + notebooksNamespaceArrayPrunePostWithHttpInfo(namespace, array, keepVersions); + } + + /** + * + * prune fragments of the notebook + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param keepVersions The number of most recents fragment to preserve (optional) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
204 notebook pruned -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse notebooksNamespaceArrayPrunePostWithHttpInfo(String namespace, String array, Integer keepVersions) throws ApiException { + okhttp3.Call localVarCall = notebooksNamespaceArrayPrunePostValidateBeforeCall(namespace, array, keepVersions, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) + * prune fragments of the notebook + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param array name/uri of array that is url-encoded (required) + * @param keepVersions The number of most recents fragment to preserve (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
204 notebook pruned -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call notebooksNamespaceArrayPrunePostAsync(String namespace, String array, Integer keepVersions, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = notebooksNamespaceArrayPrunePostValidateBeforeCall(namespace, array, keepVersions, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } } diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/OrganizationApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/OrganizationApi.java index f52edc2..86cdf1f 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 @@ -24,8 +24,11 @@ import io.tiledb.cloud.rest_api.model.AWSAccessCredentials; +import io.tiledb.cloud.rest_api.model.DomainCheckResult; import io.tiledb.cloud.rest_api.model.Organization; import io.tiledb.cloud.rest_api.model.OrganizationUser; +import io.tiledb.cloud.rest_api.model.SSODomainConfig; +import io.tiledb.cloud.rest_api.model.SSODomainConfigResponse; import java.lang.reflect.Type; import java.util.ArrayList; @@ -81,6 +84,7 @@ public void setCustomBaseUrl(String customBaseUrl) { +
Status Code Description Response Headers
204 AWS keys added successfully -
502 Bad Gateway -
0 error response -
*/ @@ -159,6 +163,7 @@ private okhttp3.Call addAWSAccessCredentialsValidateBeforeCall(String namespace, +
Status Code Description Response Headers
204 AWS keys added successfully -
502 Bad Gateway -
0 error response -
*/ @@ -177,6 +182,7 @@ public void addAWSAccessCredentials(String namespace, AWSAccessCredentials awsAc +
Status Code Description Response Headers
204 AWS keys added successfully -
502 Bad Gateway -
0 error response -
*/ @@ -197,6 +203,7 @@ public ApiResponse addAWSAccessCredentialsWithHttpInfo(String namespace, A +
Status Code Description Response Headers
204 AWS keys added successfully -
502 Bad Gateway -
0 error response -
*/ @@ -217,6 +224,7 @@ public okhttp3.Call addAWSAccessCredentialsAsync(String namespace, AWSAccessCred +
Status Code Description Response Headers
204 user added to organization successfully -
502 Bad Gateway -
0 error response -
*/ @@ -295,6 +303,7 @@ private okhttp3.Call addUserToOrganizationValidateBeforeCall(String organization +
Status Code Description Response Headers
204 user added to organization successfully -
502 Bad Gateway -
0 error response -
*/ @@ -313,6 +322,7 @@ public void addUserToOrganization(String organization, OrganizationUser user) th +
Status Code Description Response Headers
204 user added to organization successfully -
502 Bad Gateway -
0 error response -
*/ @@ -333,6 +343,7 @@ public ApiResponse addUserToOrganizationWithHttpInfo(String organization, +
Status Code Description Response Headers
204 user added to organization successfully -
502 Bad Gateway -
0 error response -
*/ @@ -352,6 +363,7 @@ public okhttp3.Call addUserToOrganizationAsync(String organization, Organization +
Status Code Description Response Headers
200 AWS keys are set -
502 Bad Gateway -
0 error response -
*/ @@ -425,6 +437,7 @@ private okhttp3.Call checkAWSAccessCredentialsValidateBeforeCall(String namespac +
Status Code Description Response Headers
200 AWS keys are set -
502 Bad Gateway -
0 error response -
*/ @@ -443,6 +456,7 @@ public List checkAWSAccessCredentials(String namespace) th +
Status Code Description Response Headers
200 AWS keys are set -
502 Bad Gateway -
0 error response -
*/ @@ -463,6 +477,7 @@ public ApiResponse> checkAWSAccessCredentialsWithHttp +
Status Code Description Response Headers
200 AWS keys are set -
502 Bad Gateway -
0 error response -
*/ @@ -484,6 +499,7 @@ public okhttp3.Call checkAWSAccessCredentialsAsync(String namespace, final ApiCa +
Status Code Description Response Headers
200 AWS keys are set -
502 Bad Gateway -
0 error response -
*/ @@ -564,6 +580,7 @@ private okhttp3.Call checkAWSAccessCredentialsByNameValidateBeforeCall(String na +
Status Code Description Response Headers
200 AWS keys are set -
502 Bad Gateway -
0 error response -
*/ @@ -583,6 +600,7 @@ public AWSAccessCredentials checkAWSAccessCredentialsByName(String namespace, St +
Status Code Description Response Headers
200 AWS keys are set -
502 Bad Gateway -
0 error response -
*/ @@ -604,6 +622,7 @@ public ApiResponse checkAWSAccessCredentialsByNameWithHttp +
Status Code Description Response Headers
200 AWS keys are set -
502 Bad Gateway -
0 error response -
*/ @@ -614,6 +633,147 @@ public okhttp3.Call checkAWSAccessCredentialsByNameAsync(String namespace, Strin localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } + /** + * Build call for checkSSODomain + * @param organization organization name (required) + * @param uuid configuration ID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 The check executed. Detailed results are available in the response. -
0 error response -
+ */ + public okhttp3.Call checkSSODomainCall(String organization, String uuid, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/organizations/{organization}/sso_domains/{uuid}/run_check" + .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())) + .replaceAll("\\{" + "uuid" + "\\}", localVarApiClient.escapeString(uuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call checkSSODomainValidateBeforeCall(String organization, String uuid, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'organization' is set + if (organization == null) { + throw new ApiException("Missing the required parameter 'organization' when calling checkSSODomain(Async)"); + } + + // verify the required parameter 'uuid' is set + if (uuid == null) { + throw new ApiException("Missing the required parameter 'uuid' when calling checkSSODomain(Async)"); + } + + + okhttp3.Call localVarCall = checkSSODomainCall(organization, uuid, _callback); + return localVarCall; + + } + + /** + * + * Immediately verify ownership of the specified SSO domain ownership claim. + * @param organization organization name (required) + * @param uuid configuration ID (required) + * @return DomainCheckResult + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 The check executed. Detailed results are available in the response. -
0 error response -
+ */ + public DomainCheckResult checkSSODomain(String organization, String uuid) throws ApiException { + ApiResponse localVarResp = checkSSODomainWithHttpInfo(organization, uuid); + return localVarResp.getData(); + } + + /** + * + * Immediately verify ownership of the specified SSO domain ownership claim. + * @param organization organization name (required) + * @param uuid configuration ID (required) + * @return ApiResponse<DomainCheckResult> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 The check executed. Detailed results are available in the response. -
0 error response -
+ */ + public ApiResponse checkSSODomainWithHttpInfo(String organization, String uuid) throws ApiException { + okhttp3.Call localVarCall = checkSSODomainValidateBeforeCall(organization, uuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Immediately verify ownership of the specified SSO domain ownership claim. + * @param organization organization name (required) + * @param uuid configuration ID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 The check executed. Detailed results are available in the response. -
0 error response -
+ */ + public okhttp3.Call checkSSODomainAsync(String organization, String uuid, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = checkSSODomainValidateBeforeCall(organization, uuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } /** * Build call for createOrganization * @param organization organization to create (required) @@ -624,6 +784,7 @@ public okhttp3.Call checkAWSAccessCredentialsByNameAsync(String namespace, Strin +
Status Code Description Response Headers
204 organization created successfully -
502 Bad Gateway -
0 error response -
*/ @@ -695,6 +856,7 @@ private okhttp3.Call createOrganizationValidateBeforeCall(Organization organizat +
Status Code Description Response Headers
204 organization created successfully -
502 Bad Gateway -
0 error response -
*/ @@ -712,6 +874,7 @@ public void createOrganization(Organization organization) throws ApiException { +
Status Code Description Response Headers
204 organization created successfully -
502 Bad Gateway -
0 error response -
*/ @@ -731,6 +894,7 @@ public ApiResponse createOrganizationWithHttpInfo(Organization organizatio +
Status Code Description Response Headers
204 organization created successfully -
502 Bad Gateway -
0 error response -
*/ @@ -740,6 +904,146 @@ public okhttp3.Call createOrganizationAsync(Organization organization, final Api localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } + /** + * Build call for createSSODomain + * @param organization organization name (required) + * @param config The SSO connection to create. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 Claim created successfully. -
0 error response -
+ */ + public okhttp3.Call createSSODomainCall(String organization, SSODomainConfig config, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = config; + + // create path and map variables + String localVarPath = "/organizations/{organization}/sso_domain" + .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createSSODomainValidateBeforeCall(String organization, SSODomainConfig config, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'organization' is set + if (organization == null) { + throw new ApiException("Missing the required parameter 'organization' when calling createSSODomain(Async)"); + } + + // verify the required parameter 'config' is set + if (config == null) { + throw new ApiException("Missing the required parameter 'config' when calling createSSODomain(Async)"); + } + + + okhttp3.Call localVarCall = createSSODomainCall(organization, config, _callback); + return localVarCall; + + } + + /** + * + * Create a new SSO connection that connects this organization to this domain. + * @param organization organization name (required) + * @param config The SSO connection to create. (required) + * @return SSODomainConfig + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 Claim created successfully. -
0 error response -
+ */ + public SSODomainConfig createSSODomain(String organization, SSODomainConfig config) throws ApiException { + ApiResponse localVarResp = createSSODomainWithHttpInfo(organization, config); + return localVarResp.getData(); + } + + /** + * + * Create a new SSO connection that connects this organization to this domain. + * @param organization organization name (required) + * @param config The SSO connection to create. (required) + * @return ApiResponse<SSODomainConfig> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 Claim created successfully. -
0 error response -
+ */ + public ApiResponse createSSODomainWithHttpInfo(String organization, SSODomainConfig config) throws ApiException { + okhttp3.Call localVarCall = createSSODomainValidateBeforeCall(organization, config, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Create a new SSO connection that connects this organization to this domain. + * @param organization organization name (required) + * @param config The SSO connection to create. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 Claim created successfully. -
0 error response -
+ */ + public okhttp3.Call createSSODomainAsync(String organization, SSODomainConfig config, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createSSODomainValidateBeforeCall(organization, config, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } /** * Build call for deleteAWSAccessCredentials * @param namespace namespace (required) @@ -751,6 +1055,7 @@ public okhttp3.Call createOrganizationAsync(Organization organization, final Api +
Status Code Description Response Headers
204 AWS credentials deleted -
502 Bad Gateway -
0 error response -
*/ @@ -830,6 +1135,7 @@ private okhttp3.Call deleteAWSAccessCredentialsValidateBeforeCall(String namespa +
Status Code Description Response Headers
204 AWS credentials deleted -
502 Bad Gateway -
0 error response -
*/ @@ -848,6 +1154,7 @@ public void deleteAWSAccessCredentials(String namespace, String name) throws Api +
Status Code Description Response Headers
204 AWS credentials deleted -
502 Bad Gateway -
0 error response -
*/ @@ -868,6 +1175,7 @@ public ApiResponse deleteAWSAccessCredentialsWithHttpInfo(String namespace +
Status Code Description Response Headers
204 AWS credentials deleted -
502 Bad Gateway -
0 error response -
*/ @@ -887,6 +1195,7 @@ public okhttp3.Call deleteAWSAccessCredentialsAsync(String namespace, String nam +
Status Code Description Response Headers
204 organization deleted -
502 Bad Gateway -
0 error response -
*/ @@ -959,6 +1268,7 @@ private okhttp3.Call deleteOrganizationValidateBeforeCall(String organization, f +
Status Code Description Response Headers
204 organization deleted -
502 Bad Gateway -
0 error response -
*/ @@ -976,6 +1286,7 @@ public void deleteOrganization(String organization) throws ApiException { +
Status Code Description Response Headers
204 organization deleted -
502 Bad Gateway -
0 error response -
*/ @@ -995,6 +1306,7 @@ public ApiResponse deleteOrganizationWithHttpInfo(String organization) thr +
Status Code Description Response Headers
204 organization deleted -
502 Bad Gateway -
0 error response -
*/ @@ -1005,20 +1317,20 @@ public okhttp3.Call deleteOrganizationAsync(String organization, final ApiCallba return localVarCall; } /** - * Build call for deleteUserFromOrganization + * Build call for deleteSSODomain * @param organization organization name (required) - * @param username username to manipulate (required) + * @param uuid configuration ID (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 user delete from organization successfully -
204 Deletion successful. -
0 error response -
*/ - public okhttp3.Call deleteUserFromOrganizationCall(String organization, String username, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteSSODomainCall(String organization, String uuid, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1035,9 +1347,9 @@ public okhttp3.Call deleteUserFromOrganizationCall(String organization, String u Object localVarPostBody = null; // create path and map variables - String localVarPath = "/organizations/{organization}/{username}" + String localVarPath = "/organizations/{organization}/sso_domains/{uuid}" .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())) - .replaceAll("\\{" + "username" + "\\}", localVarApiClient.escapeString(username.toString())); + .replaceAll("\\{" + "uuid" + "\\}", localVarApiClient.escapeString(uuid.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1066,96 +1378,511 @@ public okhttp3.Call deleteUserFromOrganizationCall(String organization, String u } @SuppressWarnings("rawtypes") - private okhttp3.Call deleteUserFromOrganizationValidateBeforeCall(String organization, String username, final ApiCallback _callback) throws ApiException { + 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 deleteUserFromOrganization(Async)"); + throw new ApiException("Missing the required parameter 'organization' when calling deleteSSODomain(Async)"); } - // verify the required parameter 'username' is set - if (username == null) { - throw new ApiException("Missing the required parameter 'username' when calling deleteUserFromOrganization(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 = deleteUserFromOrganizationCall(organization, username, _callback); + okhttp3.Call localVarCall = deleteSSODomainCall(organization, uuid, _callback); return localVarCall; } /** * - * delete a user from an organization + * Deletes the configuration for the given SSO connection. * @param organization organization name (required) - * @param username username to manipulate (required) + * @param uuid configuration ID (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 user delete from organization successfully -
204 Deletion successful. -
0 error response -
*/ - public void deleteUserFromOrganization(String organization, String username) throws ApiException { - deleteUserFromOrganizationWithHttpInfo(organization, username); + public void deleteSSODomain(String organization, String uuid) throws ApiException { + deleteSSODomainWithHttpInfo(organization, uuid); } /** * - * delete a user from an organization + * Deletes the configuration for the given SSO connection. * @param organization organization name (required) - * @param username username to manipulate (required) + * @param uuid configuration ID (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 user delete from organization successfully -
204 Deletion successful. -
0 error response -
*/ - public ApiResponse deleteUserFromOrganizationWithHttpInfo(String organization, String username) throws ApiException { - okhttp3.Call localVarCall = deleteUserFromOrganizationValidateBeforeCall(organization, username, null); + public ApiResponse deleteSSODomainWithHttpInfo(String organization, String uuid) throws ApiException { + okhttp3.Call localVarCall = deleteSSODomainValidateBeforeCall(organization, uuid, null); return localVarApiClient.execute(localVarCall); } /** * (asynchronously) - * delete a user from an organization + * Deletes the configuration for the given SSO connection. * @param organization organization name (required) - * @param username username to manipulate (required) + * @param uuid configuration ID (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 user delete from organization successfully -
204 Deletion successful. -
0 error response -
*/ - public okhttp3.Call deleteUserFromOrganizationAsync(String organization, String username, final ApiCallback _callback) throws ApiException { + public okhttp3.Call deleteSSODomainAsync(String organization, String uuid, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = deleteUserFromOrganizationValidateBeforeCall(organization, username, _callback); + okhttp3.Call localVarCall = deleteSSODomainValidateBeforeCall(organization, uuid, _callback); localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } /** - * Build call for getAllOrganizations + * Build call for deleteUserFromOrganization + * @param organization organization name (required) + * @param username username to manipulate (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - - + + + +
Status Code Description Response Headers
200 array of organizations the user is member of -
400 Error finding organizations -
500 Request user not found, or has empty context -
204 user delete from organization successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call deleteUserFromOrganizationCall(String organization, String username, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/organizations/{organization}/{username}" + .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())) + .replaceAll("\\{" + "username" + "\\}", localVarApiClient.escapeString(username.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "DELETE", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call deleteUserFromOrganizationValidateBeforeCall(String organization, String username, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'organization' is set + if (organization == null) { + throw new ApiException("Missing the required parameter 'organization' when calling deleteUserFromOrganization(Async)"); + } + + // verify the required parameter 'username' is set + if (username == null) { + throw new ApiException("Missing the required parameter 'username' when calling deleteUserFromOrganization(Async)"); + } + + + okhttp3.Call localVarCall = deleteUserFromOrganizationCall(organization, username, _callback); + return localVarCall; + + } + + /** + * + * delete a user from an organization + * @param organization organization name (required) + * @param username username to manipulate (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
204 user delete from organization successfully -
502 Bad Gateway -
0 error response -
+ */ + public void deleteUserFromOrganization(String organization, String username) throws ApiException { + deleteUserFromOrganizationWithHttpInfo(organization, username); + } + + /** + * + * delete a user from an organization + * @param organization organization name (required) + * @param username username to manipulate (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
204 user delete from organization successfully -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse deleteUserFromOrganizationWithHttpInfo(String organization, String username) throws ApiException { + okhttp3.Call localVarCall = deleteUserFromOrganizationValidateBeforeCall(organization, username, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) + * delete a user from an organization + * @param organization organization name (required) + * @param username username to manipulate (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
204 user delete from organization successfully -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call deleteUserFromOrganizationAsync(String organization, String username, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = deleteUserFromOrganizationValidateBeforeCall(organization, username, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } + /** + * Build call for getAllOrganizations + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 array of organizations the user is member of -
400 Error finding organizations -
500 Request user not found, or has empty context -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getAllOrganizationsCall(final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/organizations"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getAllOrganizationsValidateBeforeCall(final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = getAllOrganizationsCall(_callback); + return localVarCall; + + } + + /** + * + * get all organizations that the user is member of + * @return List<Organization> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 array of organizations the user is member of -
400 Error finding organizations -
500 Request user not found, or has empty context -
502 Bad Gateway -
0 error response -
+ */ + public List getAllOrganizations() throws ApiException { + ApiResponse> localVarResp = getAllOrganizationsWithHttpInfo(); + return localVarResp.getData(); + } + + /** + * + * get all organizations that the user is member of + * @return ApiResponse<List<Organization>> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 array of organizations the user is member of -
400 Error finding organizations -
500 Request user not found, or has empty context -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse> getAllOrganizationsWithHttpInfo() throws ApiException { + okhttp3.Call localVarCall = getAllOrganizationsValidateBeforeCall(null); + Type localVarReturnType = new TypeToken>(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * get all organizations that the user is member of + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 array of organizations the user is member of -
400 Error finding organizations -
500 Request user not found, or has empty context -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getAllOrganizationsAsync(final ApiCallback> _callback) throws ApiException { + + okhttp3.Call localVarCall = getAllOrganizationsValidateBeforeCall(_callback); + Type localVarReturnType = new TypeToken>(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getOrganization + * @param organization organization name or ID (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 organization details -
404 Organization does not exist -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getOrganizationCall(String organization, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/organizations/{organization}" + .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getOrganizationValidateBeforeCall(String organization, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'organization' is set + if (organization == null) { + throw new ApiException("Missing the required parameter 'organization' when calling getOrganization(Async)"); + } + + + okhttp3.Call localVarCall = getOrganizationCall(organization, _callback); + return localVarCall; + + } + + /** + * + * get a organization + * @param organization organization name or ID (required) + * @return Organization + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 organization details -
404 Organization does not exist -
502 Bad Gateway -
0 error response -
+ */ + public Organization getOrganization(String organization) throws ApiException { + ApiResponse localVarResp = getOrganizationWithHttpInfo(organization); + return localVarResp.getData(); + } + + /** + * + * get a organization + * @param organization organization name or ID (required) + * @return ApiResponse<Organization> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 organization details -
404 Organization does not exist -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse getOrganizationWithHttpInfo(String organization) throws ApiException { + okhttp3.Call localVarCall = getOrganizationValidateBeforeCall(organization, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * get a organization + * @param organization organization name or ID (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 organization details -
404 Organization does not exist -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getOrganizationAsync(String organization, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getOrganizationValidateBeforeCall(organization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getOrganizationUser + * @param organization organization name (required) + * @param username username to manipulate (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 user from organization -
404 User is not in organization -
502 Bad Gateway -
0 error response -
*/ - public okhttp3.Call getAllOrganizationsCall(final ApiCallback _callback) throws ApiException { + public okhttp3.Call getOrganizationUserCall(String organization, String username, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1172,7 +1899,9 @@ public okhttp3.Call getAllOrganizationsCall(final ApiCallback _callback) throws Object localVarPostBody = null; // create path and map variables - String localVarPath = "/organizations"; + String localVarPath = "/organizations/{organization}/{username}" + .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())) + .replaceAll("\\{" + "username" + "\\}", localVarApiClient.escapeString(username.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1201,90 +1930,106 @@ public okhttp3.Call getAllOrganizationsCall(final ApiCallback _callback) throws } @SuppressWarnings("rawtypes") - private okhttp3.Call getAllOrganizationsValidateBeforeCall(final ApiCallback _callback) throws ApiException { + 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 = getAllOrganizationsCall(_callback); + okhttp3.Call localVarCall = getOrganizationUserCall(organization, username, _callback); return localVarCall; } /** * - * get all organizations that the user is member of - * @return List<Organization> + * get a user from an organization + * @param organization organization name (required) + * @param username username to manipulate (required) + * @return OrganizationUser * @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 of organizations the user is member of -
400 Error finding organizations -
500 Request user not found, or has empty context -
200 user from organization -
404 User is not in organization -
502 Bad Gateway -
0 error response -
*/ - public List getAllOrganizations() throws ApiException { - ApiResponse> localVarResp = getAllOrganizationsWithHttpInfo(); + public OrganizationUser getOrganizationUser(String organization, String username) throws ApiException { + ApiResponse localVarResp = getOrganizationUserWithHttpInfo(organization, username); return localVarResp.getData(); } /** * - * get all organizations that the user is member of - * @return ApiResponse<List<Organization>> + * get a user from an organization + * @param organization organization name (required) + * @param username username to manipulate (required) + * @return ApiResponse<OrganizationUser> * @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 of organizations the user is member of -
400 Error finding organizations -
500 Request user not found, or has empty context -
200 user from organization -
404 User is not in organization -
502 Bad Gateway -
0 error response -
*/ - public ApiResponse> getAllOrganizationsWithHttpInfo() throws ApiException { - okhttp3.Call localVarCall = getAllOrganizationsValidateBeforeCall(null); - Type localVarReturnType = new TypeToken>(){}.getType(); + public ApiResponse getOrganizationUserWithHttpInfo(String organization, String username) throws ApiException { + okhttp3.Call localVarCall = getOrganizationUserValidateBeforeCall(organization, username, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * get all organizations that the user is member of + * get a user from an organization + * @param organization organization name (required) + * @param username username to manipulate (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - - - + + +
Status Code Description Response Headers
200 array of organizations the user is member of -
400 Error finding organizations -
500 Request user not found, or has empty context -
200 user from organization -
404 User is not in organization -
502 Bad Gateway -
0 error response -
*/ - public okhttp3.Call getAllOrganizationsAsync(final ApiCallback> _callback) throws ApiException { + public okhttp3.Call getOrganizationUserAsync(String organization, String username, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getAllOrganizationsValidateBeforeCall(_callback); - Type localVarReturnType = new TypeToken>(){}.getType(); + okhttp3.Call localVarCall = getOrganizationUserValidateBeforeCall(organization, username, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for getOrganization - * @param organization organization name or ID (required) + * Build call for getSSODomain + * @param organization organization name (required) + * @param uuid configuration ID (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details - - +
Status Code Description Response Headers
200 organization details -
404 Organization does not exist -
200 The details about this domain connection. -
0 error response -
*/ - public okhttp3.Call getOrganizationCall(String organization, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getSSODomainCall(String organization, String uuid, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1301,8 +2046,9 @@ public okhttp3.Call getOrganizationCall(String organization, final ApiCallback _ Object localVarPostBody = null; // create path and map variables - String localVarPath = "/organizations/{organization}" - .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())); + String localVarPath = "/organizations/{organization}/sso_domains/{uuid}" + .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())) + .replaceAll("\\{" + "uuid" + "\\}", localVarApiClient.escapeString(uuid.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1331,96 +2077,99 @@ public okhttp3.Call getOrganizationCall(String organization, final ApiCallback _ } @SuppressWarnings("rawtypes") - private okhttp3.Call getOrganizationValidateBeforeCall(String organization, final ApiCallback _callback) throws ApiException { + 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 getOrganization(Async)"); + 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 = getOrganizationCall(organization, _callback); + okhttp3.Call localVarCall = getSSODomainCall(organization, uuid, _callback); return localVarCall; } /** * - * get a organization - * @param organization organization name or ID (required) - * @return Organization + * Gets details about the given SSO domain connection. + * @param organization organization name (required) + * @param uuid configuration ID (required) + * @return SSODomainConfig * @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 organization details -
404 Organization does not exist -
200 The details about this domain connection. -
0 error response -
*/ - public Organization getOrganization(String organization) throws ApiException { - ApiResponse localVarResp = getOrganizationWithHttpInfo(organization); + public SSODomainConfig getSSODomain(String organization, String uuid) throws ApiException { + ApiResponse localVarResp = getSSODomainWithHttpInfo(organization, uuid); return localVarResp.getData(); } /** * - * get a organization - * @param organization organization name or ID (required) - * @return ApiResponse<Organization> + * Gets details about the given SSO domain connection. + * @param organization organization name (required) + * @param uuid configuration ID (required) + * @return ApiResponse<SSODomainConfig> * @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 organization details -
404 Organization does not exist -
200 The details about this domain connection. -
0 error response -
*/ - public ApiResponse getOrganizationWithHttpInfo(String organization) throws ApiException { - okhttp3.Call localVarCall = getOrganizationValidateBeforeCall(organization, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getSSODomainWithHttpInfo(String organization, String uuid) throws ApiException { + okhttp3.Call localVarCall = getSSODomainValidateBeforeCall(organization, uuid, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * get a organization - * @param organization organization name or ID (required) + * Gets details about the given SSO domain connection. + * @param organization organization name (required) + * @param uuid configuration ID (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - - +
Status Code Description Response Headers
200 organization details -
404 Organization does not exist -
200 The details about this domain connection. -
0 error response -
*/ - public okhttp3.Call getOrganizationAsync(String organization, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getSSODomainAsync(String organization, String uuid, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getOrganizationValidateBeforeCall(organization, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = getSSODomainValidateBeforeCall(organization, uuid, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** - * Build call for getOrganizationUser + * Build call for getSSODomains * @param organization organization name (required) - * @param username username to manipulate (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 user from organization -
404 User is not in organization -
200 The SSO domains associated with the org. -
0 error response -
*/ - public okhttp3.Call getOrganizationUserCall(String organization, String username, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getSSODomainsCall(String organization, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1437,9 +2186,8 @@ public okhttp3.Call getOrganizationUserCall(String organization, String username Object localVarPostBody = null; // create path and map variables - String localVarPath = "/organizations/{organization}/{username}" - .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())) - .replaceAll("\\{" + "username" + "\\}", localVarApiClient.escapeString(username.toString())); + String localVarPath = "/organizations/{organization}/sso_domains" + .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())); List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); @@ -1468,85 +2216,74 @@ public okhttp3.Call getOrganizationUserCall(String organization, String username } @SuppressWarnings("rawtypes") - private okhttp3.Call getOrganizationUserValidateBeforeCall(String organization, String username, final ApiCallback _callback) throws ApiException { + 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 getOrganizationUser(Async)"); - } - - // verify the required parameter 'username' is set - if (username == null) { - throw new ApiException("Missing the required parameter 'username' when calling getOrganizationUser(Async)"); + throw new ApiException("Missing the required parameter 'organization' when calling getSSODomains(Async)"); } - okhttp3.Call localVarCall = getOrganizationUserCall(organization, username, _callback); + okhttp3.Call localVarCall = getSSODomainsCall(organization, _callback); return localVarCall; } /** * - * get a user from an organization + * Lists all the SSO connections associated with the given organization. * @param organization organization name (required) - * @param username username to manipulate (required) - * @return OrganizationUser + * @return SSODomainConfigResponse * @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 user from organization -
404 User is not in organization -
200 The SSO domains associated with the org. -
0 error response -
*/ - public OrganizationUser getOrganizationUser(String organization, String username) throws ApiException { - ApiResponse localVarResp = getOrganizationUserWithHttpInfo(organization, username); + public SSODomainConfigResponse getSSODomains(String organization) throws ApiException { + ApiResponse localVarResp = getSSODomainsWithHttpInfo(organization); return localVarResp.getData(); } /** * - * get a user from an organization + * Lists all the SSO connections associated with the given organization. * @param organization organization name (required) - * @param username username to manipulate (required) - * @return ApiResponse<OrganizationUser> + * @return ApiResponse<SSODomainConfigResponse> * @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 user from organization -
404 User is not in organization -
200 The SSO domains associated with the org. -
0 error response -
*/ - public ApiResponse getOrganizationUserWithHttpInfo(String organization, String username) throws ApiException { - okhttp3.Call localVarCall = getOrganizationUserValidateBeforeCall(organization, username, null); - Type localVarReturnType = new TypeToken(){}.getType(); + public ApiResponse getSSODomainsWithHttpInfo(String organization) throws ApiException { + okhttp3.Call localVarCall = getSSODomainsValidateBeforeCall(organization, null); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * (asynchronously) - * get a user from an organization + * Lists all the SSO connections associated with the given organization. * @param organization organization name (required) - * @param username username to manipulate (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object * @http.response.details - - +
Status Code Description Response Headers
200 user from organization -
404 User is not in organization -
200 The SSO domains associated with the org. -
0 error response -
*/ - public okhttp3.Call getOrganizationUserAsync(String organization, String username, final ApiCallback _callback) throws ApiException { + public okhttp3.Call getSSODomainsAsync(String organization, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = getOrganizationUserValidateBeforeCall(organization, username, _callback); - Type localVarReturnType = new TypeToken(){}.getType(); + okhttp3.Call localVarCall = getSSODomainsValidateBeforeCall(organization, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -1562,6 +2299,7 @@ public okhttp3.Call getOrganizationUserAsync(String organization, String usernam +
Status Code Description Response Headers
204 AWS keys updated successfully -
502 Bad Gateway -
0 error response -
*/ @@ -1647,6 +2385,7 @@ private okhttp3.Call updateAWSAccessCredentialsValidateBeforeCall(String namespa +
Status Code Description Response Headers
204 AWS keys updated successfully -
502 Bad Gateway -
0 error response -
*/ @@ -1666,6 +2405,7 @@ public void updateAWSAccessCredentials(String namespace, String name, AWSAccessC +
Status Code Description Response Headers
204 AWS keys updated successfully -
502 Bad Gateway -
0 error response -
*/ @@ -1687,6 +2427,7 @@ public ApiResponse updateAWSAccessCredentialsWithHttpInfo(String namespace +
Status Code Description Response Headers
204 AWS keys updated successfully -
502 Bad Gateway -
0 error response -
*/ @@ -1707,6 +2448,7 @@ public okhttp3.Call updateAWSAccessCredentialsAsync(String namespace, String nam +
Status Code Description Response Headers
204 organization updated successfully -
502 Bad Gateway -
0 error response -
*/ @@ -1785,6 +2527,7 @@ private okhttp3.Call updateOrganizationValidateBeforeCall(String organization, O +
Status Code Description Response Headers
204 organization updated successfully -
502 Bad Gateway -
0 error response -
*/ @@ -1803,6 +2546,7 @@ public void updateOrganization(String organization, Organization organizationDet +
Status Code Description Response Headers
204 organization updated successfully -
502 Bad Gateway -
0 error response -
*/ @@ -1823,6 +2567,7 @@ public ApiResponse updateOrganizationWithHttpInfo(String organization, Org +
Status Code Description Response Headers
204 organization updated successfully -
502 Bad Gateway -
0 error response -
*/ @@ -1832,6 +2577,156 @@ public okhttp3.Call updateOrganizationAsync(String organization, Organization or localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } + /** + * Build call for updateSSODomain + * @param organization organization name (required) + * @param uuid configuration ID (required) + * @param config The changes to make to the configuration. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 The updated details about the SSO connection. -
0 error response -
+ */ + public okhttp3.Call updateSSODomainCall(String organization, String uuid, SSODomainConfig config, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = config; + + // create path and map variables + String localVarPath = "/organizations/{organization}/sso_domains/{uuid}" + .replaceAll("\\{" + "organization" + "\\}", localVarApiClient.escapeString(organization.toString())) + .replaceAll("\\{" + "uuid" + "\\}", localVarApiClient.escapeString(uuid.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateSSODomainValidateBeforeCall(String organization, String uuid, SSODomainConfig config, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'organization' is set + if (organization == null) { + throw new ApiException("Missing the required parameter 'organization' when calling updateSSODomain(Async)"); + } + + // verify the required parameter 'uuid' is set + if (uuid == null) { + throw new ApiException("Missing the required parameter 'uuid' when calling updateSSODomain(Async)"); + } + + // verify the required parameter 'config' is set + if (config == null) { + throw new ApiException("Missing the required parameter 'config' when calling updateSSODomain(Async)"); + } + + + okhttp3.Call localVarCall = updateSSODomainCall(organization, uuid, config, _callback); + return localVarCall; + + } + + /** + * + * Updates the configuration for the given SSO connection. + * @param organization organization name (required) + * @param uuid configuration ID (required) + * @param config The changes to make to the configuration. (required) + * @return SSODomainConfig + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 The updated details about the SSO connection. -
0 error response -
+ */ + public SSODomainConfig updateSSODomain(String organization, String uuid, SSODomainConfig config) throws ApiException { + ApiResponse localVarResp = updateSSODomainWithHttpInfo(organization, uuid, config); + return localVarResp.getData(); + } + + /** + * + * Updates the configuration for the given SSO connection. + * @param organization organization name (required) + * @param uuid configuration ID (required) + * @param config The changes to make to the configuration. (required) + * @return ApiResponse<SSODomainConfig> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + +
Status Code Description Response Headers
200 The updated details about the SSO connection. -
0 error response -
+ */ + public ApiResponse updateSSODomainWithHttpInfo(String organization, String uuid, SSODomainConfig config) throws ApiException { + okhttp3.Call localVarCall = updateSSODomainValidateBeforeCall(organization, uuid, config, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Updates the configuration for the given SSO connection. + * @param organization organization name (required) + * @param uuid configuration ID (required) + * @param config The changes to make to the configuration. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + +
Status Code Description Response Headers
200 The updated details about the SSO connection. -
0 error response -
+ */ + public okhttp3.Call updateSSODomainAsync(String organization, String uuid, SSODomainConfig config, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateSSODomainValidateBeforeCall(organization, uuid, config, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } /** * Build call for updateUserInOrganization * @param organization organization name (required) @@ -1844,6 +2739,7 @@ public okhttp3.Call updateOrganizationAsync(String organization, Organization or +
Status Code Description Response Headers
204 user update in organization successfully -
502 Bad Gateway -
0 error response -
*/ @@ -1929,6 +2825,7 @@ private okhttp3.Call updateUserInOrganizationValidateBeforeCall(String organizat +
Status Code Description Response Headers
204 user update in organization successfully -
502 Bad Gateway -
0 error response -
*/ @@ -1948,6 +2845,7 @@ public void updateUserInOrganization(String organization, String username, Organ +
Status Code Description Response Headers
204 user update in organization successfully -
502 Bad Gateway -
0 error response -
*/ @@ -1969,6 +2867,7 @@ public ApiResponse updateUserInOrganizationWithHttpInfo(String organizatio +
Status Code Description Response Headers
204 user update in organization successfully -
502 Bad Gateway -
0 error response -
*/ 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 94d7c51..2955bc0 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 @@ -13,19 +13,19 @@ package io.tiledb.cloud.rest_api.api; +import io.tiledb.cloud.rest_api.model.Query; +import io.tiledb.cloud.rest_api.model.QueryJson; +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.Pair; -import io.tiledb.cloud.rest_api.ApiCallback; import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.Pair; import com.google.gson.reflect.TypeToken; import java.io.File; -import io.tiledb.cloud.rest_api.model.Query; -import io.tiledb.cloud.rest_api.model.QueryJson; import java.lang.reflect.Type; import java.util.ArrayList; @@ -87,6 +87,7 @@ public void setCustomBaseUrl(String customBaseUrl) { Status Code Description Response Headers 200 query completed and results are returned in query object * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
204 query completed successfully with no return - + 502 Bad Gateway - 0 error response - */ @@ -204,6 +205,7 @@ private okhttp3.Call finalizeQueryValidateBeforeCall(String namespace, String ar Status Code Description Response Headers 200 query completed and results are returned in query object * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
204 query completed successfully with no return - + 502 Bad Gateway - 0 error response - */ @@ -229,6 +231,7 @@ public Query finalizeQuery(String namespace, String array, String type, String c Status Code Description Response Headers 200 query completed and results are returned in query object * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
204 query completed successfully with no return - + 502 Bad Gateway - 0 error response - */ @@ -256,6 +259,7 @@ public ApiResponse finalizeQueryWithHttpInfo(String namespace, String arr Status Code Description Response Headers 200 query completed and results are returned in query object * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
204 query completed successfully with no return - + 502 Bad Gateway - 0 error response - */ @@ -283,6 +287,7 @@ public okhttp3.Call finalizeQueryAsync(String namespace, String array, String ty Status Code Description Response Headers 200 query est result size computed and results are returned in query object * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
204 query completed successfully with no return - + 502 Bad Gateway - 0 error response - */ @@ -400,6 +405,7 @@ private okhttp3.Call getEstResultSizesValidateBeforeCall(String namespace, Strin Status Code Description Response Headers 200 query est result size computed and results are returned in query object * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
204 query completed successfully with no return - + 502 Bad Gateway - 0 error response - */ @@ -425,6 +431,7 @@ public Query getEstResultSizes(String namespace, String array, String type, Stri Status Code Description Response Headers 200 query est result size computed and results are returned in query object * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
204 query completed successfully with no return - + 502 Bad Gateway - 0 error response - */ @@ -452,6 +459,7 @@ public ApiResponse getEstResultSizesWithHttpInfo(String namespace, String Status Code Description Response Headers 200 query est result size computed and results are returned in query object * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
204 query completed successfully with no return - + 502 Bad Gateway - 0 error response - */ @@ -475,6 +483,7 @@ public okhttp3.Call getEstResultSizesAsync(String namespace, String array, Strin +
Status Code Description Response Headers
200 query completed and result bytes are returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
502 Bad Gateway -
0 error response -
*/ @@ -570,6 +579,7 @@ private okhttp3.Call getFileValidateBeforeCall(String namespace, String array, S +
Status Code Description Response Headers
200 query completed and result bytes are returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
502 Bad Gateway -
0 error response -
*/ @@ -591,6 +601,7 @@ public File getFile(String namespace, String array, String contentType, String x +
Status Code Description Response Headers
200 query completed and result bytes are returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
502 Bad Gateway -
0 error response -
*/ @@ -614,6 +625,7 @@ public ApiResponse getFileWithHttpInfo(String namespace, String array, Str +
Status Code Description Response Headers
200 query completed and result bytes are returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
502 Bad Gateway -
0 error response -
*/ @@ -641,6 +653,7 @@ public okhttp3.Call getFileAsync(String namespace, String array, String contentT Status Code Description Response Headers 200 query completed and results are returned in query object * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
204 query completed successfully with no return - + 502 Bad Gateway - 0 error response - */ @@ -758,6 +771,7 @@ private okhttp3.Call submitQueryValidateBeforeCall(String namespace, String arra Status Code Description Response Headers 200 query completed and results are returned in query object * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
204 query completed successfully with no return - + 502 Bad Gateway - 0 error response - */ @@ -783,6 +797,7 @@ public Query submitQuery(String namespace, String array, String type, String con Status Code Description Response Headers 200 query completed and results are returned in query object * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
204 query completed successfully with no return - + 502 Bad Gateway - 0 error response - */ @@ -810,6 +825,7 @@ public ApiResponse submitQueryWithHttpInfo(String namespace, String array Status Code Description Response Headers 200 query completed and results are returned in query object * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
204 query completed successfully with no return - + 502 Bad Gateway - 0 error response - */ @@ -834,6 +850,7 @@ public okhttp3.Call submitQueryAsync(String namespace, String array, String type +
Status Code Description Response Headers
200 query completed and results are returned in JSON format * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
502 Bad Gateway -
0 error response -
*/ @@ -935,6 +952,7 @@ private okhttp3.Call submitQueryJsonValidateBeforeCall(String namespace, String +
Status Code Description Response Headers
200 query completed and results are returned in JSON format * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
502 Bad Gateway -
0 error response -
*/ @@ -957,6 +975,7 @@ public Object submitQueryJson(String namespace, String array, String contentType +
Status Code Description Response Headers
200 query completed and results are returned in JSON format * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
502 Bad Gateway -
0 error response -
*/ @@ -981,6 +1000,7 @@ public ApiResponse submitQueryJsonWithHttpInfo(String namespace, String +
Status Code Description Response Headers
200 query completed and results are returned in JSON format * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
502 Bad Gateway -
0 error response -
*/ 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 40bd689..e10ceb9 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 @@ -13,19 +13,18 @@ package io.tiledb.cloud.rest_api.api; +import io.tiledb.cloud.rest_api.model.RegisteredTaskGraph; +import io.tiledb.cloud.rest_api.model.TaskGraphSharing; +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.Pair; -import io.tiledb.cloud.rest_api.ApiCallback; import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.Pair; import com.google.gson.reflect.TypeToken; -import io.tiledb.cloud.rest_api.model.RegisteredTaskGraph; -import io.tiledb.cloud.rest_api.model.TaskGraphSharing; - import java.lang.reflect.Type; import java.util.ArrayList; import java.util.HashMap; @@ -80,6 +79,7 @@ public void setCustomBaseUrl(String customBaseUrl) { +
Status Code Description Response Headers
204 Task graph successfully deleted. -
502 Bad Gateway -
0 error response -
*/ @@ -159,6 +159,7 @@ private okhttp3.Call deleteRegisteredTaskGraphValidateBeforeCall(String namespac +
Status Code Description Response Headers
204 Task graph successfully deleted. -
502 Bad Gateway -
0 error response -
*/ @@ -177,6 +178,7 @@ public void deleteRegisteredTaskGraph(String namespace, String name) throws ApiE +
Status Code Description Response Headers
204 Task graph successfully deleted. -
502 Bad Gateway -
0 error response -
*/ @@ -197,6 +199,7 @@ public ApiResponse deleteRegisteredTaskGraphWithHttpInfo(String namespace, +
Status Code Description Response Headers
204 Task graph successfully deleted. -
502 Bad Gateway -
0 error response -
*/ @@ -217,6 +220,7 @@ public okhttp3.Call deleteRegisteredTaskGraphAsync(String namespace, String name +
Status Code Description Response Headers
200 The contents of the registered task graph. -
502 Bad Gateway -
0 error response -
*/ @@ -297,6 +301,7 @@ private okhttp3.Call getRegisteredTaskGraphValidateBeforeCall(String namespace, +
Status Code Description Response Headers
200 The contents of the registered task graph. -
502 Bad Gateway -
0 error response -
*/ @@ -316,6 +321,7 @@ public RegisteredTaskGraph getRegisteredTaskGraph(String namespace, String name) +
Status Code Description Response Headers
200 The contents of the registered task graph. -
502 Bad Gateway -
0 error response -
*/ @@ -337,6 +343,7 @@ public ApiResponse getRegisteredTaskGraphWithHttpInfo(Strin +
Status Code Description Response Headers
200 The contents of the registered task graph. -
502 Bad Gateway -
0 error response -
*/ @@ -359,6 +366,7 @@ public okhttp3.Call getRegisteredTaskGraphAsync(String namespace, String name, f Status Code Description Response Headers 200 List of all specific sharing policies - 404 The task graph does not exist (or the user does not have permission to view policies) - + 502 Bad Gateway - 0 error response - */ @@ -440,6 +448,7 @@ private okhttp3.Call getRegisteredTaskGraphSharingPoliciesValidateBeforeCall(Str Status Code Description Response Headers 200 List of all specific sharing policies - 404 The task graph does not exist (or the user does not have permission to view policies) - + 502 Bad Gateway - 0 error response - */ @@ -460,6 +469,7 @@ public List getRegisteredTaskGraphSharingPolicies(String names Status Code Description Response Headers 200 List of all specific sharing policies - 404 The task graph does not exist (or the user does not have permission to view policies) - + 502 Bad Gateway - 0 error response - */ @@ -482,6 +492,7 @@ public ApiResponse> getRegisteredTaskGraphSharingPolicies Status Code Description Response Headers 200 List of all specific sharing policies - 404 The task graph does not exist (or the user does not have permission to view policies) - + 502 Bad Gateway - 0 error response - */ @@ -504,6 +515,7 @@ public okhttp3.Call getRegisteredTaskGraphSharingPoliciesAsync(String namespace, +
Status Code Description Response Headers
204 Task graph registered successfully. -
502 Bad Gateway -
0 error response -
*/ @@ -584,6 +596,7 @@ private okhttp3.Call registerRegisteredTaskGraphValidateBeforeCall(String namesp +
Status Code Description Response Headers
204 Task graph registered successfully. -
502 Bad Gateway -
0 error response -
*/ @@ -603,6 +616,7 @@ public void registerRegisteredTaskGraph(String namespace, String name, Registere +
Status Code Description Response Headers
204 Task graph registered successfully. -
502 Bad Gateway -
0 error response -
*/ @@ -624,6 +638,7 @@ public ApiResponse registerRegisteredTaskGraphWithHttpInfo(String namespac +
Status Code Description Response Headers
204 Task graph registered successfully. -
502 Bad Gateway -
0 error response -
*/ @@ -646,6 +661,7 @@ public okhttp3.Call registerRegisteredTaskGraphAsync(String namespace, String na Status Code Description Response Headers 204 UDF shared successfully - 404 UDF does not exist or user does not have permissions to share UDF - + 502 Bad Gateway - 0 error response - */ @@ -732,6 +748,7 @@ private okhttp3.Call shareRegisteredTaskGraphValidateBeforeCall(String namespace Status Code Description Response Headers 204 UDF shared successfully - 404 UDF does not exist or user does not have permissions to share UDF - + 502 Bad Gateway - 0 error response - */ @@ -752,6 +769,7 @@ public void shareRegisteredTaskGraph(String namespace, String name, TaskGraphSha Status Code Description Response Headers 204 UDF shared successfully - 404 UDF does not exist or user does not have permissions to share UDF - + 502 Bad Gateway - 0 error response - */ @@ -774,6 +792,7 @@ public ApiResponse shareRegisteredTaskGraphWithHttpInfo(String namespace, Status Code Description Response Headers 204 UDF shared successfully - 404 UDF does not exist or user does not have permissions to share UDF - + 502 Bad Gateway - 0 error response - */ @@ -795,6 +814,7 @@ public okhttp3.Call shareRegisteredTaskGraphAsync(String namespace, String name, +
Status Code Description Response Headers
204 Task graph updated successfully. -
502 Bad Gateway -
0 error response -
*/ @@ -875,6 +895,7 @@ private okhttp3.Call updateRegisteredTaskGraphValidateBeforeCall(String namespac +
Status Code Description Response Headers
204 Task graph updated successfully. -
502 Bad Gateway -
0 error response -
*/ @@ -894,6 +915,7 @@ public void updateRegisteredTaskGraph(String namespace, String name, RegisteredT +
Status Code Description Response Headers
204 Task graph updated successfully. -
502 Bad Gateway -
0 error response -
*/ @@ -915,6 +937,7 @@ public ApiResponse updateRegisteredTaskGraphWithHttpInfo(String namespace, +
Status Code Description Response Headers
204 Task graph updated successfully. -
502 Bad Gateway -
0 error response -
*/ 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 3a65900..e65c963 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 @@ -13,18 +13,17 @@ package io.tiledb.cloud.rest_api.api; +import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.model.SQLParameters; +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.Pair; -import io.tiledb.cloud.rest_api.ApiCallback; -import io.tiledb.cloud.rest_api.Configuration; import com.google.gson.reflect.TypeToken; -import io.tiledb.cloud.rest_api.model.SQLParameters; - import java.lang.reflect.Type; import java.util.ArrayList; import java.util.HashMap; @@ -81,6 +80,7 @@ public void setCustomBaseUrl(String customBaseUrl) { Status Code Description Response Headers 200 JSON results in array of objects form, if the query returns results * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
204 SQL executed successfully * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
+ 502 Bad Gateway - 0 error response - */ @@ -154,24 +154,25 @@ private okhttp3.Call runSQLValidateBeforeCall(String namespace, SQLParameters sq } /** - * + * * Run a sql query * @param namespace namespace to run task under is in (an organization name or user's username) (required) * @param sql sql being submitted (required) * @param acceptEncoding Encoding to use (optional) - * @return List<Object> + * @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 -
+ + + + + +
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 List runSQL(String namespace, SQLParameters sql, String acceptEncoding) throws ApiException { - ApiResponse> localVarResp = runSQLWithHttpInfo(namespace, sql, acceptEncoding); - return localVarResp.getData(); + 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); } /** @@ -201,41 +202,42 @@ 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 ApiResponse<List<Object>> + * @return List<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 JSON results in array of objects form, if the query returns results * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
204 SQL executed successfully * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
502 Bad Gateway -
0 error response -
*/ - public ApiResponse> runSQLWithHttpInfo(String namespace, SQLParameters sql, String acceptEncoding) throws ApiException { - okhttp3.Call localVarCall = runSQLValidateBeforeCall(namespace, sql, acceptEncoding, null); - Type localVarReturnType = new TypeToken>(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + public List runSQL(String namespace, SQLParameters sql, String acceptEncoding) throws ApiException { + ApiResponse> localVarResp = runSQLWithHttpInfo(namespace, sql, acceptEncoding); + return localVarResp.getData(); } /** - * + * * Run a sql query * @param namespace namespace to run task under is in (an organization name or user's username) (required) * @param sql sql being submitted (required) * @param acceptEncoding Encoding to use (optional) - * @return ApiResponse with byte[] + * @return ApiResponse<List<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 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 -
+ + + + + + +
Status Code Description Response Headers
200 JSON results in array of objects form, if the query returns results * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
204 SQL executed successfully * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
502 Bad Gateway -
0 error response -
*/ - public ApiResponse runSQLWithHttpInfoBytes(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); } @@ -253,6 +255,7 @@ public ApiResponse runSQLWithHttpInfoBytes(String namespace, SQLParamete Status Code Description Response Headers 200 JSON results in array of objects form, if the query returns results * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
204 SQL executed successfully * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
+ 502 Bad Gateway - 0 error response - */ 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 937158e..f386a40 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 @@ -13,6 +13,7 @@ package io.tiledb.cloud.rest_api.api; +import io.tiledb.cloud.rest_api.model.GetTiledbStats200Response; import io.tiledb.cloud.rest_api.ApiCallback; import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; @@ -23,8 +24,6 @@ import com.google.gson.reflect.TypeToken; -import io.tiledb.cloud.rest_api.model.GetTiledbStats200Response; - import java.lang.reflect.Type; import java.util.ArrayList; import java.util.HashMap; @@ -77,6 +76,7 @@ public void setCustomBaseUrl(String customBaseUrl) { +
Status Code Description Response Headers
200 stats -
502 Bad Gateway -
0 error response -
*/ @@ -143,6 +143,7 @@ private okhttp3.Call getTiledbStatsValidateBeforeCall(final ApiCallback _callbac +
Status Code Description Response Headers
200 stats -
502 Bad Gateway -
0 error response -
*/ @@ -160,6 +161,7 @@ public GetTiledbStats200Response getTiledbStats() throws ApiException { +
Status Code Description Response Headers
200 stats -
502 Bad Gateway -
0 error response -
*/ @@ -179,6 +181,7 @@ public ApiResponse getTiledbStatsWithHttpInfo() throw +
Status Code Description Response Headers
200 stats -
502 Bad Gateway -
0 error response -
*/ 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 840d62b..0a2d51c 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 @@ -13,6 +13,9 @@ package io.tiledb.cloud.rest_api.api; +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.ApiCallback; import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; @@ -24,9 +27,6 @@ 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; @@ -82,6 +82,7 @@ public void setCustomBaseUrl(String customBaseUrl) { +
Status Code Description Response Headers
201 The task graph was created. The returned TaskGraphLog will include the data the client sent, with the server-defined fields added in. -
502 Bad Gateway -
0 error response -
*/ @@ -161,6 +162,7 @@ private okhttp3.Call createTaskGraphLogValidateBeforeCall(String namespace, Task +
Status Code Description Response Headers
201 The task graph was created. The returned TaskGraphLog will include the data the client sent, with the server-defined fields added in. -
502 Bad Gateway -
0 error response -
*/ @@ -180,6 +182,7 @@ public TaskGraphLog createTaskGraphLog(String namespace, TaskGraphLog log) throw +
Status Code Description Response Headers
201 The task graph was created. The returned TaskGraphLog will include the data the client sent, with the server-defined fields added in. -
502 Bad Gateway -
0 error response -
*/ @@ -201,6 +204,7 @@ public ApiResponse createTaskGraphLogWithHttpInfo(String namespace +
Status Code Description Response Headers
201 The task graph was created. The returned TaskGraphLog will include the data the client sent, with the server-defined fields added in. -
502 Bad Gateway -
0 error response -
*/ @@ -222,6 +226,7 @@ public okhttp3.Call createTaskGraphLogAsync(String namespace, TaskGraphLog log, +
Status Code Description Response Headers
200 Information about the execution of a single task graph. -
502 Bad Gateway -
0 error response -
*/ @@ -302,6 +307,7 @@ private okhttp3.Call getTaskGraphLogValidateBeforeCall(String namespace, String +
Status Code Description Response Headers
200 Information about the execution of a single task graph. -
502 Bad Gateway -
0 error response -
*/ @@ -321,6 +327,7 @@ public TaskGraphLog getTaskGraphLog(String namespace, String id) throws ApiExcep +
Status Code Description Response Headers
200 Information about the execution of a single task graph. -
502 Bad Gateway -
0 error response -
*/ @@ -342,6 +349,7 @@ public ApiResponse getTaskGraphLogWithHttpInfo(String namespace, S +
Status Code Description Response Headers
200 Information about the execution of a single task graph. -
502 Bad Gateway -
0 error response -
*/ @@ -368,6 +376,7 @@ public okhttp3.Call getTaskGraphLogAsync(String namespace, String id, final ApiC +
Status Code Description Response Headers
200 The task graph logs that matched the user's query. -
502 Bad Gateway -
0 error response -
*/ @@ -469,6 +478,7 @@ private okhttp3.Call listTaskGraphLogsValidateBeforeCall(String namespace, Strin +
Status Code Description Response Headers
200 The task graph logs that matched the user's query. -
502 Bad Gateway -
0 error response -
*/ @@ -493,6 +503,7 @@ public TaskGraphLogsData listTaskGraphLogs(String namespace, String createdBy, S +
Status Code Description Response Headers
200 The task graph logs that matched the user's query. -
502 Bad Gateway -
0 error response -
*/ @@ -519,6 +530,7 @@ public ApiResponse listTaskGraphLogsWithHttpInfo(String names +
Status Code Description Response Headers
200 The task graph logs that matched the user's query. -
502 Bad Gateway -
0 error response -
*/ @@ -541,6 +553,7 @@ public okhttp3.Call listTaskGraphLogsAsync(String namespace, String createdBy, S +
Status Code Description Response Headers
204 Status reported successfully. -
502 Bad Gateway -
0 error response -
*/ @@ -626,6 +639,7 @@ private okhttp3.Call reportClientNodeValidateBeforeCall(String namespace, String +
Status Code Description Response Headers
204 Status reported successfully. -
502 Bad Gateway -
0 error response -
*/ @@ -645,6 +659,7 @@ public void reportClientNode(String namespace, String id, TaskGraphClientNodeSta +
Status Code Description Response Headers
204 Status reported successfully. -
502 Bad Gateway -
0 error response -
*/ @@ -666,6 +681,7 @@ public ApiResponse reportClientNodeWithHttpInfo(String namespace, String i +
Status Code Description Response Headers
204 Status reported successfully. -
502 Bad Gateway -
0 error response -
*/ @@ -675,6 +691,586 @@ public okhttp3.Call reportClientNodeAsync(String namespace, String id, TaskGraph localVarApiClient.executeAsync(localVarCall, _callback); return localVarCall; } + /** + * Build call for resubmitTaskGraphExecution + * @param namespace The namespace that owns this task graph execution. (required) + * @param id The UUID of the task graph execution (TaskGraphLog). (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
202 Information about the task graph execution. -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call resubmitTaskGraphExecutionCall(String namespace, String id, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/taskgraphs/{namespace}/executions/{id}/resubmit" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call resubmitTaskGraphExecutionValidateBeforeCall(String namespace, String id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling resubmitTaskGraphExecution(Async)"); + } + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling resubmitTaskGraphExecution(Async)"); + } + + + okhttp3.Call localVarCall = resubmitTaskGraphExecutionCall(namespace, id, _callback); + return localVarCall; + + } + + /** + * + * Resubmits a task graph in the given namespace using the associated execution id. + * @param namespace The namespace that owns this task graph execution. (required) + * @param id The UUID of the task graph execution (TaskGraphLog). (required) + * @return TaskGraphLog + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
202 Information about the task graph execution. -
502 Bad Gateway -
0 error response -
+ */ + public TaskGraphLog resubmitTaskGraphExecution(String namespace, String id) throws ApiException { + ApiResponse localVarResp = resubmitTaskGraphExecutionWithHttpInfo(namespace, id); + return localVarResp.getData(); + } + + /** + * + * Resubmits a task graph in the given namespace using the associated execution id. + * @param namespace The namespace that owns this task graph execution. (required) + * @param id The UUID of the task graph execution (TaskGraphLog). (required) + * @return ApiResponse<TaskGraphLog> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
202 Information about the task graph execution. -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse resubmitTaskGraphExecutionWithHttpInfo(String namespace, String id) throws ApiException { + okhttp3.Call localVarCall = resubmitTaskGraphExecutionValidateBeforeCall(namespace, id, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Resubmits a task graph in the given namespace using the associated execution id. + * @param namespace The namespace that owns this task graph execution. (required) + * @param id The UUID of the task graph execution (TaskGraphLog). (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
202 Information about the task graph execution. -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call resubmitTaskGraphExecutionAsync(String namespace, String id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = resubmitTaskGraphExecutionValidateBeforeCall(namespace, id, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for retryTaskGraphExecution + * @param namespace The namespace that owns this task graph execution. (required) + * @param id The UUID of the task graph execution (TaskGraphLog). (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
202 Information about the task graph execution. -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call retryTaskGraphExecutionCall(String namespace, String id, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/taskgraphs/{namespace}/executions/{id}/retry" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call retryTaskGraphExecutionValidateBeforeCall(String namespace, String id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling retryTaskGraphExecution(Async)"); + } + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling retryTaskGraphExecution(Async)"); + } + + + okhttp3.Call localVarCall = retryTaskGraphExecutionCall(namespace, id, _callback); + return localVarCall; + + } + + /** + * + * Retries failed tasks of a task graph in the given namespace using the associated execution id. + * @param namespace The namespace that owns this task graph execution. (required) + * @param id The UUID of the task graph execution (TaskGraphLog). (required) + * @return TaskGraphLog + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
202 Information about the task graph execution. -
502 Bad Gateway -
0 error response -
+ */ + public TaskGraphLog retryTaskGraphExecution(String namespace, String id) throws ApiException { + ApiResponse localVarResp = retryTaskGraphExecutionWithHttpInfo(namespace, id); + return localVarResp.getData(); + } + + /** + * + * Retries failed tasks of a task graph in the given namespace using the associated execution id. + * @param namespace The namespace that owns this task graph execution. (required) + * @param id The UUID of the task graph execution (TaskGraphLog). (required) + * @return ApiResponse<TaskGraphLog> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
202 Information about the task graph execution. -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse retryTaskGraphExecutionWithHttpInfo(String namespace, String id) throws ApiException { + okhttp3.Call localVarCall = retryTaskGraphExecutionValidateBeforeCall(namespace, id, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Retries failed tasks of a task graph in the given namespace using the associated execution id. + * @param namespace The namespace that owns this task graph execution. (required) + * @param id The UUID of the task graph execution (TaskGraphLog). (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
202 Information about the task graph execution. -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call retryTaskGraphExecutionAsync(String namespace, String id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = retryTaskGraphExecutionValidateBeforeCall(namespace, id, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for stopTaskGraphExecution + * @param namespace The namespace that owns this task graph execution. (required) + * @param id The UUID of the task graph execution (TaskGraphLog). (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
202 Information about the task graph execution. -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call stopTaskGraphExecutionCall(String namespace, String id, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/taskgraphs/{namespace}/executions/{id}/stop" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call stopTaskGraphExecutionValidateBeforeCall(String namespace, String id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling stopTaskGraphExecution(Async)"); + } + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling stopTaskGraphExecution(Async)"); + } + + + okhttp3.Call localVarCall = stopTaskGraphExecutionCall(namespace, id, _callback); + return localVarCall; + + } + + /** + * + * Stops a task graph execution in the given namespace using the associated associated execution id. + * @param namespace The namespace that owns this task graph execution. (required) + * @param id The UUID of the task graph execution (TaskGraphLog). (required) + * @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. -
502 Bad Gateway -
0 error response -
+ */ + public TaskGraphLog stopTaskGraphExecution(String namespace, String id) throws ApiException { + ApiResponse localVarResp = stopTaskGraphExecutionWithHttpInfo(namespace, id); + return localVarResp.getData(); + } + + /** + * + * 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> + * @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. -
502 Bad Gateway -
0 error response -
+ */ + 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); + } + + /** + * (asynchronously) + * Stops a task graph execution in the given namespace using the associated associated execution id. + * @param namespace The namespace that owns this task graph execution. (required) + * @param id The UUID of the task graph execution (TaskGraphLog). (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
202 Information about the task graph execution. -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call 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); + return localVarCall; + } + /** + * Build call for submitTaskGraph + * @param namespace The namespace that owns this task graph. (required) + * @param id The UUID of the task graph entry. (required) + * @param _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
202 Information about the execution of a single task graph. -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call submitTaskGraphCall(String namespace, String id, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/taskgraphs/{namespace}/graphs/{id}/submit" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call submitTaskGraphValidateBeforeCall(String namespace, String id, 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; + + } + + /** + * + * Submit a single task graph for execution. + * @param namespace The namespace that owns this task graph. (required) + * @param id The UUID of the task graph entry. (required) + * @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 execution of a single task graph. -
502 Bad Gateway -
0 error response -
+ */ + public TaskGraphLog submitTaskGraph(String namespace, String id) throws ApiException { + ApiResponse localVarResp = submitTaskGraphWithHttpInfo(namespace, id); + return localVarResp.getData(); + } + + /** + * + * Submit a single task graph for execution. + * @param namespace The namespace that owns this task graph. (required) + * @param id The UUID of the task graph entry. (required) + * @return ApiResponse<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 execution of a single task graph. -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse submitTaskGraphWithHttpInfo(String namespace, String id) throws ApiException { + okhttp3.Call localVarCall = submitTaskGraphValidateBeforeCall(namespace, id, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Submit a single task graph for execution. + * @param namespace The namespace that owns this task graph. (required) + * @param id The UUID of the task graph entry. (required) + * @param _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
202 Information about the execution of a single task graph. -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call submitTaskGraphAsync(String namespace, String id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = submitTaskGraphValidateBeforeCall(namespace, id, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } /** * Build call for updateTaskGraphLog * @param namespace The namespace that owns this task graph log. (required) @@ -687,6 +1283,7 @@ public okhttp3.Call reportClientNodeAsync(String namespace, String id, TaskGraph +
Status Code Description Response Headers
204 Log entry updated successfully. -
502 Bad Gateway -
0 error response -
*/ @@ -772,6 +1369,7 @@ private okhttp3.Call updateTaskGraphLogValidateBeforeCall(String namespace, Stri +
Status Code Description Response Headers
204 Log entry updated successfully. -
502 Bad Gateway -
0 error response -
*/ @@ -791,6 +1389,7 @@ public void updateTaskGraphLog(String namespace, String id, TaskGraphLog log) th +
Status Code Description Response Headers
204 Log entry updated successfully. -
502 Bad Gateway -
0 error response -
*/ @@ -812,6 +1411,7 @@ public ApiResponse updateTaskGraphLogWithHttpInfo(String namespace, String +
Status Code Description Response Headers
204 Log entry updated successfully. -
502 Bad Gateway -
0 error response -
*/ 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 new file mode 100644 index 0000000..08bdeb1 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/api/TaskGraphsApi.java @@ -0,0 +1,791 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.2.19 + * + * + * NOTE: This class is auto 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.model.TaskGraph; +import io.tiledb.cloud.rest_api.model.TaskGraphLog; +import io.tiledb.cloud.rest_api.model.TaskGraphs; +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 com.google.gson.reflect.TypeToken; + + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class TaskGraphsApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public TaskGraphsApi() { + this(Configuration.getDefaultApiClient()); + } + + public TaskGraphsApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for createTaskGraph + * @param namespace Include graphs for this namespace. (required) + * @param graph Create the task graph. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
201 Task graph created successfully. -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call createTaskGraphCall(String namespace, TaskGraph graph, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = graph; + + // create path and map variables + String localVarPath = "/taskgraphs/{namespace}/graphs" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call createTaskGraphValidateBeforeCall(String namespace, TaskGraph graph, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling createTaskGraph(Async)"); + } + + // verify the required parameter 'graph' is set + if (graph == null) { + throw new ApiException("Missing the required parameter 'graph' when calling createTaskGraph(Async)"); + } + + + okhttp3.Call localVarCall = createTaskGraphCall(namespace, graph, _callback); + return localVarCall; + + } + + /** + * + * Create a single task graph for execution. + * @param namespace Include graphs for this namespace. (required) + * @param graph Create the task graph. (required) + * @return TaskGraph + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
201 Task graph created successfully. -
502 Bad Gateway -
0 error response -
+ */ + public TaskGraph createTaskGraph(String namespace, TaskGraph graph) throws ApiException { + ApiResponse localVarResp = createTaskGraphWithHttpInfo(namespace, graph); + return localVarResp.getData(); + } + + /** + * + * Create a single task graph for execution. + * @param namespace Include graphs for this namespace. (required) + * @param graph Create the task graph. (required) + * @return ApiResponse<TaskGraph> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
201 Task graph created successfully. -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse createTaskGraphWithHttpInfo(String namespace, TaskGraph graph) throws ApiException { + okhttp3.Call localVarCall = createTaskGraphValidateBeforeCall(namespace, graph, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Create a single task graph for execution. + * @param namespace Include graphs for this namespace. (required) + * @param graph Create the task graph. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
201 Task graph created successfully. -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call createTaskGraphAsync(String namespace, TaskGraph graph, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = createTaskGraphValidateBeforeCall(namespace, graph, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for getTaskGraph + * @param namespace The namespace that owns this task graph. (required) + * @param id The UUID of the task graph entry. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Information about the single task graph. -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getTaskGraphCall(String namespace, String id, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/taskgraphs/{namespace}/graphs/{id}" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call getTaskGraphValidateBeforeCall(String namespace, String id, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling getTaskGraph(Async)"); + } + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling getTaskGraph(Async)"); + } + + + okhttp3.Call localVarCall = getTaskGraphCall(namespace, id, _callback); + return localVarCall; + + } + + /** + * + * Fetch information about a single task graph. + * @param namespace The namespace that owns this task graph. (required) + * @param id The UUID of the task graph entry. (required) + * @return TaskGraph + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Information about the single task graph. -
502 Bad Gateway -
0 error response -
+ */ + public TaskGraph getTaskGraph(String namespace, String id) throws ApiException { + ApiResponse localVarResp = getTaskGraphWithHttpInfo(namespace, id); + return localVarResp.getData(); + } + + /** + * + * Fetch information about a single task graph. + * @param namespace The namespace that owns this task graph. (required) + * @param id The UUID of the task graph entry. (required) + * @return ApiResponse<TaskGraph> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Information about the single task graph. -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse getTaskGraphWithHttpInfo(String namespace, String id) throws ApiException { + okhttp3.Call localVarCall = getTaskGraphValidateBeforeCall(namespace, id, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Fetch information about a single task graph. + * @param namespace The namespace that owns this task graph. (required) + * @param id The UUID of the task graph entry. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Information about the single task graph. -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call getTaskGraphAsync(String namespace, String id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = getTaskGraphValidateBeforeCall(namespace, id, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for listTaskGraphs + * @param namespace Namespace for graphs (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 The task graphs that matched the user's query. -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call listTaskGraphsCall(String namespace, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/taskgraphs/{namespace}/graphs" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call listTaskGraphsValidateBeforeCall(String namespace, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling listTaskGraphs(Async)"); + } + + + okhttp3.Call localVarCall = listTaskGraphsCall(namespace, _callback); + return localVarCall; + + } + + /** + * + * Fetch the task graphs of a namespace the user has access to. The returned entries will include only summary data, and will not include information about the individual tasks that were executed. (This information is available when requesting an individual task graph log.) Entries in the response are ordered from newest to oldest. Pagination parameters work as in other API methods; see PaginationMetadata. + * @param namespace Namespace for graphs (required) + * @return TaskGraphs + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 The task graphs that matched the user's query. -
502 Bad Gateway -
0 error response -
+ */ + public TaskGraphs listTaskGraphs(String namespace) throws ApiException { + ApiResponse localVarResp = listTaskGraphsWithHttpInfo(namespace); + return localVarResp.getData(); + } + + /** + * + * Fetch the task graphs of a namespace the user has access to. The returned entries will include only summary data, and will not include information about the individual tasks that were executed. (This information is available when requesting an individual task graph log.) Entries in the response are ordered from newest to oldest. Pagination parameters work as in other API methods; see PaginationMetadata. + * @param namespace Namespace for graphs (required) + * @return ApiResponse<TaskGraphs> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 The task graphs that matched the user's query. -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse listTaskGraphsWithHttpInfo(String namespace) throws ApiException { + okhttp3.Call localVarCall = listTaskGraphsValidateBeforeCall(namespace, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Fetch the task graphs of a namespace the user has access to. The returned entries will include only summary data, and will not include information about the individual tasks that were executed. (This information is available when requesting an individual task graph log.) Entries in the response are ordered from newest to oldest. Pagination parameters work as in other API methods; see PaginationMetadata. + * @param namespace Namespace for graphs (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 The task graphs that matched the user's query. -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call listTaskGraphsAsync(String namespace, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = listTaskGraphsValidateBeforeCall(namespace, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for submitTaskGraph + * @param namespace The namespace that owns this task graph. (required) + * @param id The UUID of the task graph entry. (required) + * @param _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
202 Information about the execution of a single task graph. -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call submitTaskGraphCall(String namespace, String id, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/taskgraphs/{namespace}/graphs/{id}/submit" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call submitTaskGraphValidateBeforeCall(String namespace, String id, 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; + + } + + /** + * + * Submit a single task graph for execution. + * @param namespace The namespace that owns this task graph. (required) + * @param id The UUID of the task graph entry. (required) + * @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 execution of a single task graph. -
502 Bad Gateway -
0 error response -
+ */ + public TaskGraphLog submitTaskGraph(String namespace, String id) throws ApiException { + ApiResponse localVarResp = submitTaskGraphWithHttpInfo(namespace, id); + return localVarResp.getData(); + } + + /** + * + * Submit a single task graph for execution. + * @param namespace The namespace that owns this task graph. (required) + * @param id The UUID of the task graph entry. (required) + * @return ApiResponse<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 execution of a single task graph. -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse submitTaskGraphWithHttpInfo(String namespace, String id) throws ApiException { + okhttp3.Call localVarCall = submitTaskGraphValidateBeforeCall(namespace, id, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * (asynchronously) + * Submit a single task graph for execution. + * @param namespace The namespace that owns this task graph. (required) + * @param id The UUID of the task graph entry. (required) + * @param _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
202 Information about the execution of a single task graph. -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call submitTaskGraphAsync(String namespace, String id, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = submitTaskGraphValidateBeforeCall(namespace, id, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for updateTaskGraph + * @param namespace The namespace that owns this task graph. (required) + * @param id The UUID of the task graph entry. (required) + * @param graph Updates to make to the task graph. (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
204 Task graph created successfully. -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call updateTaskGraphCall(String namespace, String id, TaskGraph graph, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = graph; + + // create path and map variables + String localVarPath = "/taskgraphs/{namespace}/graphs/{id}" + .replaceAll("\\{" + "namespace" + "\\}", localVarApiClient.escapeString(namespace.toString())) + .replaceAll("\\{" + "id" + "\\}", localVarApiClient.escapeString(id.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "PATCH", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call updateTaskGraphValidateBeforeCall(String namespace, String id, TaskGraph graph, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling updateTaskGraph(Async)"); + } + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException("Missing the required parameter 'id' when calling updateTaskGraph(Async)"); + } + + // verify the required parameter 'graph' is set + if (graph == null) { + throw new ApiException("Missing the required parameter 'graph' when calling updateTaskGraph(Async)"); + } + + + okhttp3.Call localVarCall = updateTaskGraphCall(namespace, id, graph, _callback); + return localVarCall; + + } + + /** + * + * Update information about a single task graph execution. + * @param namespace The namespace that owns this task graph. (required) + * @param id The UUID of the task graph entry. (required) + * @param graph Updates to make to the task graph. (required) + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
204 Task graph created successfully. -
502 Bad Gateway -
0 error response -
+ */ + public void updateTaskGraph(String namespace, String id, TaskGraph graph) throws ApiException { + updateTaskGraphWithHttpInfo(namespace, id, graph); + } + + /** + * + * Update information about a single task graph execution. + * @param namespace The namespace that owns this task graph. (required) + * @param id The UUID of the task graph entry. (required) + * @param graph Updates to make to the task graph. (required) + * @return ApiResponse<Void> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
204 Task graph created successfully. -
502 Bad Gateway -
0 error response -
+ */ + public ApiResponse updateTaskGraphWithHttpInfo(String namespace, String id, TaskGraph graph) throws ApiException { + okhttp3.Call localVarCall = updateTaskGraphValidateBeforeCall(namespace, id, graph, null); + return localVarApiClient.execute(localVarCall); + } + + /** + * (asynchronously) + * Update information about a single task graph execution. + * @param namespace The namespace that owns this task graph. (required) + * @param id The UUID of the task graph entry. (required) + * @param graph Updates to make to the task graph. (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
204 Task graph created successfully. -
502 Bad Gateway -
0 error response -
+ */ + public okhttp3.Call updateTaskGraphAsync(String namespace, String id, TaskGraph graph, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = updateTaskGraphValidateBeforeCall(namespace, id, graph, _callback); + localVarApiClient.executeAsync(localVarCall, _callback); + return localVarCall; + } +} diff --git a/src/main/java/io/tiledb/cloud/rest_api/api/TasksApi.java b/src/main/java/io/tiledb/cloud/rest_api/api/TasksApi.java index 1df1530..e0afb94 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 @@ -13,6 +13,9 @@ package io.tiledb.cloud.rest_api.api; +import io.tiledb.cloud.rest_api.model.ArrayTask; +import io.tiledb.cloud.rest_api.model.ArrayTaskData; +import io.tiledb.cloud.rest_api.model.SQLParameters; import io.tiledb.cloud.rest_api.ApiCallback; import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; @@ -23,10 +26,6 @@ import com.google.gson.reflect.TypeToken; -import io.tiledb.cloud.rest_api.model.ArrayTask; -import io.tiledb.cloud.rest_api.model.ArrayTaskData; -import io.tiledb.cloud.rest_api.model.SQLParameters; - import java.lang.reflect.Type; import java.util.ArrayList; import java.util.HashMap; @@ -83,6 +82,7 @@ public void setCustomBaseUrl(String customBaseUrl) { Status Code Description Response Headers 200 JSON results in array of objects form, if the query returns results * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
204 SQL executed successfully * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
+ 502 Bad Gateway - 0 error response - */ @@ -168,6 +168,7 @@ private okhttp3.Call runSQLValidateBeforeCall(String namespace, SQLParameters sq Status Code Description Response Headers 200 JSON results in array of objects form, if the query returns results * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
204 SQL executed successfully * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
+ 502 Bad Gateway - 0 error response - */ @@ -189,6 +190,7 @@ public List runSQL(String namespace, SQLParameters sql, String acceptEnc Status Code Description Response Headers 200 JSON results in array of objects form, if the query returns results * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
204 SQL executed successfully * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
+ 502 Bad Gateway - 0 error response - */ @@ -212,6 +214,7 @@ public ApiResponse> runSQLWithHttpInfo(String namespace, SQLParamet Status Code Description Response Headers 200 JSON results in array of objects form, if the query returns results * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
204 SQL executed successfully * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
+ 502 Bad Gateway - 0 error response - */ @@ -232,6 +235,7 @@ public okhttp3.Call runSQLAsync(String namespace, SQLParameters sql, String acce +
Status Code Description Response Headers
200 Array task -
502 Bad Gateway -
0 error response -
*/ @@ -305,6 +309,7 @@ private okhttp3.Call taskIdGetValidateBeforeCall(String id, final ApiCallback _c +
Status Code Description Response Headers
200 Array task -
502 Bad Gateway -
0 error response -
*/ @@ -323,6 +328,7 @@ public ArrayTask taskIdGet(String id) throws ApiException { +
Status Code Description Response Headers
200 Array task -
502 Bad Gateway -
0 error response -
*/ @@ -343,6 +349,7 @@ public ApiResponse taskIdGetWithHttpInfo(String id) throws ApiExcepti +
Status Code Description Response Headers
200 Array task -
502 Bad Gateway -
0 error response -
*/ @@ -366,6 +373,7 @@ public okhttp3.Call taskIdGetAsync(String id, final ApiCallback _call 200 output and format of originating request * Content-Type - format results are delivered in
202 task is still executing - 404 results were not saved, or results have expored - + 502 Bad Gateway - 0 error response - */ @@ -446,6 +454,7 @@ private okhttp3.Call taskIdResultGetValidateBeforeCall(String id, String acceptE 200 output and format of originating request * Content-Type - format results are delivered in
202 task is still executing - 404 results were not saved, or results have expored - + 502 Bad Gateway - 0 error response - */ @@ -467,6 +476,7 @@ public String taskIdResultGet(String id, String acceptEncoding) throws ApiExcept 200 output and format of originating request * Content-Type - format results are delivered in
202 task is still executing - 404 results were not saved, or results have expored - + 502 Bad Gateway - 0 error response - */ @@ -490,6 +500,7 @@ public ApiResponse taskIdResultGetWithHttpInfo(String id, String acceptE 200 output and format of originating request * Content-Type - format results are delivered in
202 task is still executing - 404 results were not saved, or results have expored - + 502 Bad Gateway - 0 error response - */ @@ -523,6 +534,7 @@ public okhttp3.Call taskIdResultGetAsync(String id, String acceptEncoding, final +
Status Code Description Response Headers
200 Array of all tasks user has access too -
502 Bad Gateway -
0 error response -
*/ @@ -659,6 +671,7 @@ private okhttp3.Call tasksGetValidateBeforeCall(String namespace, String created +
Status Code Description Response Headers
200 Array of all tasks user has access too -
502 Bad Gateway -
0 error response -
*/ @@ -690,6 +703,7 @@ public ArrayTaskData tasksGet(String namespace, String createdBy, String array, +
Status Code Description Response Headers
200 Array of all tasks user has access too -
502 Bad Gateway -
0 error response -
*/ @@ -723,6 +737,7 @@ public ApiResponse tasksGetWithHttpInfo(String namespace, String +
Status Code Description Response Headers
200 Array of all tasks user has access too -
502 Bad Gateway -
0 error response -
*/ 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 9503ef6..599226d 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 @@ -13,13 +13,13 @@ package io.tiledb.cloud.rest_api.api; +import io.tiledb.cloud.rest_api.model.*; +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.Pair; -import io.tiledb.cloud.rest_api.model.MultiArrayUDF; -import io.tiledb.cloud.rest_api.ApiCallback; import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.Pair; import com.google.gson.reflect.TypeToken; @@ -28,6 +28,7 @@ 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; @@ -88,6 +89,7 @@ public void setCustomBaseUrl(String customBaseUrl) { +
Status Code Description Response Headers
204 UDF deleted successfully -
502 Bad Gateway -
0 error response -
*/ @@ -157,6 +159,264 @@ private okhttp3.Call deleteUDFInfoValidateBeforeCall(String namespace, String na } + /** + * + * 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 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(); + } + + /** + * + * 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); + } + + /** + * + * 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 @@ -167,6 +427,7 @@ private okhttp3.Call deleteUDFInfoValidateBeforeCall(String namespace, String na +
Status Code Description Response Headers
204 UDF deleted successfully -
502 Bad Gateway -
0 error response -
*/ @@ -174,6 +435,47 @@ 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 @@ -185,6 +487,7 @@ public void deleteUDFInfo(String namespace, String name) throws ApiException { +
Status Code Description Response Headers
204 UDF deleted successfully -
502 Bad Gateway -
0 error response -
*/ @@ -205,6 +508,7 @@ public ApiResponse deleteUDFInfoWithHttpInfo(String namespace, String name +
Status Code Description Response Headers
204 UDF deleted successfully -
502 Bad Gateway -
0 error response -
*/ @@ -226,6 +530,7 @@ public okhttp3.Call deleteUDFInfoAsync(String namespace, String name, final ApiC Status Code Description Response Headers 200 UDFInfo was retrieved successfully - 404 UDF not found - + 502 Bad Gateway - 0 error response - */ @@ -307,6 +612,7 @@ private okhttp3.Call getUDFInfoValidateBeforeCall(String namespace, String name, Status Code Description Response Headers 200 UDFInfo was retrieved successfully - 404 UDF not found - + 502 Bad Gateway - 0 error response - */ @@ -327,6 +633,7 @@ public UDFInfo getUDFInfo(String namespace, String name) throws ApiException { Status Code Description Response Headers 200 UDFInfo was retrieved successfully - 404 UDF not found - + 502 Bad Gateway - 0 error response - */ @@ -349,6 +656,7 @@ public ApiResponse getUDFInfoWithHttpInfo(String namespace, String name Status Code Description Response Headers 200 UDFInfo was retrieved successfully - 404 UDF not found - + 502 Bad Gateway - 0 error response - */ @@ -371,6 +679,7 @@ public okhttp3.Call getUDFInfoAsync(String namespace, String name, final ApiCall 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 - */ @@ -452,6 +761,7 @@ private okhttp3.Call getUDFInfoSharingPoliciesValidateBeforeCall(String namespac 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 - */ @@ -472,6 +782,7 @@ public List getUDFInfoSharingPolicies(String namespace, String name) 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 - */ @@ -494,6 +805,7 @@ public ApiResponse> getUDFInfoSharingPoliciesWithHttpInfo(Strin 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 - */ @@ -518,6 +830,7 @@ public okhttp3.Call getUDFInfoSharingPoliciesAsync(String namespace, String name +
Status Code Description Response Headers
201 UDF copied -
502 Bad Gateway -
0 error response -
*/ @@ -614,6 +927,7 @@ private okhttp3.Call handleCopyUDFValidateBeforeCall(String namespace, String na +
Status Code Description Response Headers
201 UDF copied -
502 Bad Gateway -
0 error response -
*/ @@ -636,6 +950,7 @@ public UDFCopied handleCopyUDF(String namespace, String name, UDFCopy udFCopy, S +
Status Code Description Response Headers
201 UDF copied -
502 Bad Gateway -
0 error response -
*/ @@ -660,6 +975,7 @@ public ApiResponse handleCopyUDFWithHttpInfo(String namespace, String +
Status Code Description Response Headers
201 UDF copied -
502 Bad Gateway -
0 error response -
*/ @@ -682,6 +998,7 @@ public okhttp3.Call handleCopyUDFAsync(String namespace, String name, UDFCopy ud +
Status Code Description Response Headers
204 UDF registered successfully -
502 Bad Gateway -
0 error response -
*/ @@ -767,6 +1084,7 @@ private okhttp3.Call registerUDFInfoValidateBeforeCall(String namespace, String +
Status Code Description Response Headers
204 UDF registered successfully -
502 Bad Gateway -
0 error response -
*/ @@ -786,6 +1104,7 @@ public void registerUDFInfo(String namespace, String name, UDFInfoUpdate udf) th +
Status Code Description Response Headers
204 UDF registered successfully -
502 Bad Gateway -
0 error response -
*/ @@ -807,6 +1126,7 @@ public ApiResponse registerUDFInfoWithHttpInfo(String namespace, String na +
Status Code Description Response Headers
204 UDF registered successfully -
502 Bad Gateway -
0 error response -
*/ @@ -829,6 +1149,7 @@ public okhttp3.Call registerUDFInfoAsync(String namespace, String name, UDFInfoU Status Code Description Response Headers 204 UDF shared successfully - 404 UDF does not exist or user does not have permissions to share UDF - + 502 Bad Gateway - 0 error response - */ @@ -915,6 +1236,7 @@ private okhttp3.Call shareUDFInfoValidateBeforeCall(String namespace, String nam Status Code Description Response Headers 204 UDF shared successfully - 404 UDF does not exist or user does not have permissions to share UDF - + 502 Bad Gateway - 0 error response - */ @@ -935,6 +1257,7 @@ public void shareUDFInfo(String namespace, String name, UDFSharing udfSharing) t Status Code Description Response Headers 204 UDF shared successfully - 404 UDF does not exist or user does not have permissions to share UDF - + 502 Bad Gateway - 0 error response - */ @@ -957,6 +1280,7 @@ public ApiResponse shareUDFInfoWithHttpInfo(String namespace, String name, Status Code Description Response Headers 204 UDF shared successfully - 404 UDF does not exist or user does not have permissions to share UDF - + 502 Bad Gateway - 0 error response - */ @@ -978,6 +1302,7 @@ public okhttp3.Call shareUDFInfoAsync(String namespace, String name, UDFSharing +
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
502 Bad Gateway -
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
*/ @@ -1024,195 +1349,75 @@ public okhttp3.Call submitGenericUDFCall(String namespace, GenericUDF udf, Strin }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { - localVarHeaderParams.put("Content-Type", localVarContentType); - } - - String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; - return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); - } - - @SuppressWarnings("rawtypes") - private okhttp3.Call submitGenericUDFValidateBeforeCall(String namespace, GenericUDF udf, String acceptEncoding, final ApiCallback _callback) throws ApiException { - - // verify the required parameter 'namespace' is set - if (namespace == null) { - throw new ApiException("Missing the required parameter 'namespace' when calling submitGenericUDF(Async)"); - } - - // verify the required parameter 'udf' is set - if (udf == null) { - throw new ApiException("Missing the required parameter 'udf' when calling submitGenericUDF(Async)"); - } - - - okhttp3.Call localVarCall = submitGenericUDFCall(namespace, udf, acceptEncoding, _callback); - return localVarCall; - - } - - /** - * - * submit a generic UDF in the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) - * @param udf UDF to run (required) - * @param acceptEncoding Encoding to use (optional) - * @return File - * @throws ApiException 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 File submitGenericUDF(String namespace, GenericUDF udf, String acceptEncoding) throws ApiException { - ApiResponse localVarResp = submitGenericUDFWithHttpInfo(namespace, udf, acceptEncoding); - return localVarResp.getData(); - } - - /** - * - * submit a generic UDF in the given namespace - * @param namespace namespace array is in (an organization name or user's username) (required) - * @param udf UDF to run (required) - * @param acceptEncoding Encoding to use (optional) - * @return ApiResponse<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 ApiResponse<File> - * @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 submitGenericUDFWithHttpInfo(String namespace, GenericUDF udf, String acceptEncoding) throws ApiException { - okhttp3.Call localVarCall = submitGenericUDFValidateBeforeCall(namespace, udf, acceptEncoding, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); - } - - /** - * - * 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(); + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth", "BasicAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } - /** - * - * 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); + @SuppressWarnings("rawtypes") + private okhttp3.Call submitGenericUDFValidateBeforeCall(String namespace, GenericUDF udf, String acceptEncoding, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'namespace' is set + if (namespace == null) { + throw new ApiException("Missing the required parameter 'namespace' when calling submitGenericUDF(Async)"); + } + + // verify the required parameter 'udf' is set + if (udf == null) { + throw new ApiException("Missing the required parameter 'udf' when calling submitGenericUDF(Async)"); + } + + + okhttp3.Call localVarCall = submitGenericUDFCall(namespace, udf, acceptEncoding, _callback); + return localVarCall; + } /** - * + * * submit a generic UDF in the given namespace * @param namespace namespace array is in (an organization name or user's username) (required) * @param udf UDF to run (required) * @param acceptEncoding Encoding to use (optional) - * @return Object + * @return File * @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 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
502 Bad Gateway -
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
*/ - public Object submitGenericUDFObj(String namespace, GenericUDF udf, String acceptEncoding) throws ApiException { - ApiResponse localVarResp = submitGenericUDFWithHttpInfoObj(namespace, udf, acceptEncoding); + public File submitGenericUDF(String namespace, GenericUDF udf, String acceptEncoding) throws ApiException { + ApiResponse localVarResp = submitGenericUDFWithHttpInfo(namespace, udf, acceptEncoding); return localVarResp.getData(); } /** - * + * * submit a generic UDF in the given namespace * @param namespace namespace array is in (an organization name or user's username) (required) * @param udf UDF to run (required) * @param acceptEncoding Encoding to use (optional) - * @return ApiResponse<Object> + * @return ApiResponse<File> * @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 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
502 Bad Gateway -
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
*/ - public ApiResponse submitGenericUDFWithHttpInfoObj(String namespace, GenericUDF udf, String acceptEncoding) throws ApiException { + public ApiResponse submitGenericUDFWithHttpInfo(String namespace, GenericUDF udf, String acceptEncoding) throws ApiException { okhttp3.Call localVarCall = submitGenericUDFValidateBeforeCall(namespace, udf, acceptEncoding, null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } + /** * (asynchronously) * submit a generic UDF in the given namespace @@ -1226,6 +1431,7 @@ public ApiResponse submitGenericUDFWithHttpInfoObj(String namespace, Gen +
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
502 Bad Gateway -
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
*/ @@ -1248,6 +1454,7 @@ public okhttp3.Call submitGenericUDFAsync(String namespace, GenericUDF udf, Stri +
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
502 Bad Gateway -
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
*/ @@ -1332,6 +1539,7 @@ private okhttp3.Call submitMultiArrayUDFValidateBeforeCall(String namespace, Mul +
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
502 Bad Gateway -
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
*/ @@ -1352,6 +1560,7 @@ public File submitMultiArrayUDF(String namespace, MultiArrayUDF udf, String acce +
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
502 Bad Gateway -
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
*/ @@ -1361,88 +1570,6 @@ public ApiResponse submitMultiArrayUDFWithHttpInfo(String namespace, Multi 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); - } - /** * (asynchronously) * submit a multi-array UDF in the given namespace @@ -1456,6 +1583,7 @@ public ApiResponse submitMultiArrayUDFWithHttpInfoBytes(String namespace +
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
502 Bad Gateway -
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
*/ @@ -1481,6 +1609,7 @@ public okhttp3.Call submitMultiArrayUDFAsync(String namespace, MultiArrayUDF udf +
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
502 Bad Gateway -
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
*/ @@ -1582,6 +1711,7 @@ private okhttp3.Call submitUDFValidateBeforeCall(String namespace, String array, +
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
502 Bad Gateway -
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
*/ @@ -1591,7 +1721,7 @@ public File submitUDF(String namespace, String array, MultiArrayUDF udf, String } /** - * + * * 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) @@ -1605,6 +1735,7 @@ public File submitUDF(String namespace, String array, MultiArrayUDF udf, String +
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
502 Bad Gateway -
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
*/ @@ -1614,100 +1745,6 @@ public ApiResponse submitUDFWithHttpInfo(String namespace, String array, M 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); - } - /** * (asynchronously) * send a UDF to run against a specified array/URI registered to a group/project @@ -1724,6 +1761,7 @@ public ApiResponse submitUDFWithHttpInfoBytes(String namespace, String a +
Status Code Description Response Headers
200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
502 Bad Gateway -
0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
*/ @@ -1747,6 +1785,7 @@ public okhttp3.Call submitUDFAsync(String namespace, String array, MultiArrayUDF +
Status Code Description Response Headers
200 list of timestamps in milliseconds, paginated -
502 Bad Gateway -
0 error response -
*/ @@ -1837,6 +1876,7 @@ private okhttp3.Call udfNamespaceArrayEndTimestampsGetValidateBeforeCall(String +
Status Code Description Response Headers
200 list of timestamps in milliseconds, paginated -
502 Bad Gateway -
0 error response -
*/ @@ -1858,6 +1898,7 @@ public ArrayEndTimestampData udfNamespaceArrayEndTimestampsGet(String namespace, +
Status Code Description Response Headers
200 list of timestamps in milliseconds, paginated -
502 Bad Gateway -
0 error response -
*/ @@ -1881,6 +1922,7 @@ public ApiResponse udfNamespaceArrayEndTimestampsGetWithH +
Status Code Description Response Headers
200 list of timestamps in milliseconds, paginated -
502 Bad Gateway -
0 error response -
*/ @@ -1903,6 +1945,7 @@ public okhttp3.Call udfNamespaceArrayEndTimestampsGetAsync(String namespace, Str +
Status Code Description Response Headers
204 UDF updated successfully -
502 Bad Gateway -
0 error response -
*/ @@ -1988,6 +2031,7 @@ private okhttp3.Call updateUDFInfoValidateBeforeCall(String namespace, String na +
Status Code Description Response Headers
204 UDF updated successfully -
502 Bad Gateway -
0 error response -
*/ @@ -2007,6 +2051,7 @@ public void updateUDFInfo(String namespace, String name, UDFInfoUpdate udf) thro +
Status Code Description Response Headers
204 UDF updated successfully -
502 Bad Gateway -
0 error response -
*/ @@ -2028,6 +2073,7 @@ public ApiResponse updateUDFInfoWithHttpInfo(String namespace, String name +
Status Code Description Response Headers
204 UDF updated successfully -
502 Bad Gateway -
0 error response -
*/ 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 bb17c7b..63581ef 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 @@ -13,12 +13,12 @@ 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.Pair; -import io.tiledb.cloud.rest_api.ApiCallback; import io.tiledb.cloud.rest_api.Configuration; +import io.tiledb.cloud.rest_api.Pair; import com.google.gson.reflect.TypeToken; @@ -85,6 +85,7 @@ public void setCustomBaseUrl(String customBaseUrl) { +
Status Code Description Response Headers
204 AWS keys added successfully -
502 Bad Gateway -
0 error response -
*/ @@ -163,6 +164,7 @@ private okhttp3.Call addAWSAccessCredentialsValidateBeforeCall(String namespace, +
Status Code Description Response Headers
204 AWS keys added successfully -
502 Bad Gateway -
0 error response -
*/ @@ -181,6 +183,7 @@ public void addAWSAccessCredentials(String namespace, AWSAccessCredentials awsAc +
Status Code Description Response Headers
204 AWS keys added successfully -
502 Bad Gateway -
0 error response -
*/ @@ -201,6 +204,7 @@ public ApiResponse addAWSAccessCredentialsWithHttpInfo(String namespace, A +
Status Code Description Response Headers
204 AWS keys added successfully -
502 Bad Gateway -
0 error response -
*/ @@ -221,6 +225,7 @@ public okhttp3.Call addAWSAccessCredentialsAsync(String namespace, AWSAccessCred +
Status Code Description Response Headers
204 user added to organization successfully -
502 Bad Gateway -
0 error response -
*/ @@ -299,6 +304,7 @@ private okhttp3.Call addUserToOrganizationValidateBeforeCall(String organization +
Status Code Description Response Headers
204 user added to organization successfully -
502 Bad Gateway -
0 error response -
*/ @@ -317,6 +323,7 @@ public void addUserToOrganization(String organization, OrganizationUser user) th +
Status Code Description Response Headers
204 user added to organization successfully -
502 Bad Gateway -
0 error response -
*/ @@ -337,6 +344,7 @@ public ApiResponse addUserToOrganizationWithHttpInfo(String organization, +
Status Code Description Response Headers
204 user added to organization successfully -
502 Bad Gateway -
0 error response -
*/ @@ -356,6 +364,7 @@ public okhttp3.Call addUserToOrganizationAsync(String organization, Organization +
Status Code Description Response Headers
200 AWS keys are set -
502 Bad Gateway -
0 error response -
*/ @@ -429,6 +438,7 @@ private okhttp3.Call checkAWSAccessCredentialsValidateBeforeCall(String namespac +
Status Code Description Response Headers
200 AWS keys are set -
502 Bad Gateway -
0 error response -
*/ @@ -447,6 +457,7 @@ public List checkAWSAccessCredentials(String namespace) th +
Status Code Description Response Headers
200 AWS keys are set -
502 Bad Gateway -
0 error response -
*/ @@ -467,6 +478,7 @@ public ApiResponse> checkAWSAccessCredentialsWithHttp +
Status Code Description Response Headers
200 AWS keys are set -
502 Bad Gateway -
0 error response -
*/ @@ -488,6 +500,7 @@ public okhttp3.Call checkAWSAccessCredentialsAsync(String namespace, final ApiCa +
Status Code Description Response Headers
200 AWS keys are set -
502 Bad Gateway -
0 error response -
*/ @@ -568,6 +581,7 @@ private okhttp3.Call checkAWSAccessCredentialsByNameValidateBeforeCall(String na +
Status Code Description Response Headers
200 AWS keys are set -
502 Bad Gateway -
0 error response -
*/ @@ -587,6 +601,7 @@ public AWSAccessCredentials checkAWSAccessCredentialsByName(String namespace, St +
Status Code Description Response Headers
200 AWS keys are set -
502 Bad Gateway -
0 error response -
*/ @@ -608,6 +623,7 @@ public ApiResponse checkAWSAccessCredentialsByNameWithHttp +
Status Code Description Response Headers
200 AWS keys are set -
502 Bad Gateway -
0 error response -
*/ @@ -627,6 +643,7 @@ public okhttp3.Call checkAWSAccessCredentialsByNameAsync(String namespace, Strin +
Status Code Description Response Headers
204 User email confirmed successfully -
502 Bad Gateway -
0 error response -
*/ @@ -692,6 +709,7 @@ private okhttp3.Call confirmEmailValidateBeforeCall(final ApiCallback _callback) +
Status Code Description Response Headers
204 User email confirmed successfully -
502 Bad Gateway -
0 error response -
*/ @@ -708,6 +726,7 @@ public void confirmEmail() throws ApiException { +
Status Code Description Response Headers
204 User email confirmed successfully -
502 Bad Gateway -
0 error response -
*/ @@ -726,6 +745,7 @@ public ApiResponse confirmEmailWithHttpInfo() throws ApiException { +
Status Code Description Response Headers
204 User email confirmed successfully -
502 Bad Gateway -
0 error response -
*/ @@ -745,6 +765,7 @@ public okhttp3.Call confirmEmailAsync(final ApiCallback _callback) throws +
Status Code Description Response Headers
204 user created successfully -
502 Bad Gateway -
0 error response -
*/ @@ -816,6 +837,7 @@ private okhttp3.Call createUserValidateBeforeCall(User user, final ApiCallback _ +
Status Code Description Response Headers
204 user created successfully -
502 Bad Gateway -
0 error response -
*/ @@ -833,6 +855,7 @@ public void createUser(User user) throws ApiException { +
Status Code Description Response Headers
204 user created successfully -
502 Bad Gateway -
0 error response -
*/ @@ -852,6 +875,7 @@ public ApiResponse createUserWithHttpInfo(User user) throws ApiException { +
Status Code Description Response Headers
204 user created successfully -
502 Bad Gateway -
0 error response -
*/ @@ -872,6 +896,7 @@ public okhttp3.Call createUserAsync(User user, final ApiCallback _callback +
Status Code Description Response Headers
204 AWS credentials deleted -
502 Bad Gateway -
0 error response -
*/ @@ -951,6 +976,7 @@ private okhttp3.Call deleteAWSAccessCredentialsValidateBeforeCall(String namespa +
Status Code Description Response Headers
204 AWS credentials deleted -
502 Bad Gateway -
0 error response -
*/ @@ -969,6 +995,7 @@ public void deleteAWSAccessCredentials(String namespace, String name) throws Api +
Status Code Description Response Headers
204 AWS credentials deleted -
502 Bad Gateway -
0 error response -
*/ @@ -989,6 +1016,7 @@ public ApiResponse deleteAWSAccessCredentialsWithHttpInfo(String namespace +
Status Code Description Response Headers
204 AWS credentials deleted -
502 Bad Gateway -
0 error response -
*/ @@ -1008,6 +1036,7 @@ public okhttp3.Call deleteAWSAccessCredentialsAsync(String namespace, String nam +
Status Code Description Response Headers
204 user deleted -
502 Bad Gateway -
0 error response -
*/ @@ -1080,6 +1109,7 @@ private okhttp3.Call deleteUserValidateBeforeCall(String username, final ApiCall +
Status Code Description Response Headers
204 user deleted -
502 Bad Gateway -
0 error response -
*/ @@ -1097,6 +1127,7 @@ public void deleteUser(String username) throws ApiException { +
Status Code Description Response Headers
204 user deleted -
502 Bad Gateway -
0 error response -
*/ @@ -1116,6 +1147,7 @@ public ApiResponse deleteUserWithHttpInfo(String username) throws ApiExcep +
Status Code Description Response Headers
204 user deleted -
502 Bad Gateway -
0 error response -
*/ @@ -1136,6 +1168,7 @@ public okhttp3.Call deleteUserAsync(String username, final ApiCallback _ca +
Status Code Description Response Headers
204 user delete from organization successfully -
502 Bad Gateway -
0 error response -
*/ @@ -1215,6 +1248,7 @@ private okhttp3.Call deleteUserFromOrganizationValidateBeforeCall(String organiz +
Status Code Description Response Headers
204 user delete from organization successfully -
502 Bad Gateway -
0 error response -
*/ @@ -1233,6 +1267,7 @@ public void deleteUserFromOrganization(String organization, String username) thr +
Status Code Description Response Headers
204 user delete from organization successfully -
502 Bad Gateway -
0 error response -
*/ @@ -1253,6 +1288,7 @@ public ApiResponse deleteUserFromOrganizationWithHttpInfo(String organizat +
Status Code Description Response Headers
204 user delete from organization successfully -
502 Bad Gateway -
0 error response -
*/ @@ -1274,6 +1310,7 @@ public okhttp3.Call deleteUserFromOrganizationAsync(String organization, String Status Code Description Response Headers 200 user from organization - 404 User is not in organization - + 502 Bad Gateway - 0 error response - */ @@ -1355,6 +1392,7 @@ private okhttp3.Call getOrganizationUserValidateBeforeCall(String organization, Status Code Description Response Headers 200 user from organization - 404 User is not in organization - + 502 Bad Gateway - 0 error response - */ @@ -1375,6 +1413,7 @@ public OrganizationUser getOrganizationUser(String organization, String username Status Code Description Response Headers 200 user from organization - 404 User is not in organization - + 502 Bad Gateway - 0 error response - */ @@ -1397,6 +1436,7 @@ public ApiResponse getOrganizationUserWithHttpInfo(String orga Status Code Description Response Headers 200 user from organization - 404 User is not in organization - + 502 Bad Gateway - 0 error response - */ @@ -1417,6 +1457,7 @@ public okhttp3.Call getOrganizationUserAsync(String organization, String usernam +
Status Code Description Response Headers
200 Session token -
502 Bad Gateway -
0 error response -
*/ @@ -1488,6 +1529,7 @@ private okhttp3.Call getSessionValidateBeforeCall(String rememberMe, final ApiCa +
Status Code Description Response Headers
200 Session token -
502 Bad Gateway -
0 error response -
*/ @@ -1506,6 +1548,7 @@ public Token getSession(String rememberMe) throws ApiException { +
Status Code Description Response Headers
200 Session token -
502 Bad Gateway -
0 error response -
*/ @@ -1526,6 +1569,7 @@ public ApiResponse getSessionWithHttpInfo(String rememberMe) throws ApiEx +
Status Code Description Response Headers
200 Session token -
502 Bad Gateway -
0 error response -
*/ @@ -1545,6 +1589,7 @@ public okhttp3.Call getSessionAsync(String rememberMe, final ApiCallback +
Status Code Description Response Headers
200 available token scopes -
502 Bad Gateway -
0 error response -
*/ @@ -1611,6 +1656,7 @@ private okhttp3.Call getTokenScopesValidateBeforeCall(final ApiCallback _callbac +
Status Code Description Response Headers
200 available token scopes -
502 Bad Gateway -
0 error response -
*/ @@ -1628,6 +1674,7 @@ public List getTokenScopes() throws ApiException { +
Status Code Description Response Headers
200 available token scopes -
502 Bad Gateway -
0 error response -
*/ @@ -1647,6 +1694,7 @@ public ApiResponse> getTokenScopesWithHttpInfo() throws ApiExce +
Status Code Description Response Headers
200 available token scopes -
502 Bad Gateway -
0 error response -
*/ @@ -1666,6 +1714,7 @@ public okhttp3.Call getTokenScopesAsync(final ApiCallback> _cal +
Status Code Description Response Headers
200 user details -
502 Bad Gateway -
0 error response -
*/ @@ -1732,6 +1781,7 @@ private okhttp3.Call getUserValidateBeforeCall(final ApiCallback _callback) thro +
Status Code Description Response Headers
200 user details -
502 Bad Gateway -
0 error response -
*/ @@ -1749,6 +1799,7 @@ public User getUser() throws ApiException { +
Status Code Description Response Headers
200 user details -
502 Bad Gateway -
0 error response -
*/ @@ -1768,6 +1819,7 @@ public ApiResponse getUserWithHttpInfo() throws ApiException { +
Status Code Description Response Headers
200 user details -
502 Bad Gateway -
0 error response -
*/ @@ -1789,6 +1841,7 @@ public okhttp3.Call getUserAsync(final ApiCallback _callback) throws ApiEx Status Code Description Response Headers 200 user details - 404 User does not exist - + 502 Bad Gateway - 0 error response - */ @@ -1863,6 +1916,7 @@ private okhttp3.Call getUserWithUsernameValidateBeforeCall(String username, fina Status Code Description Response Headers 200 user details - 404 User does not exist - + 502 Bad Gateway - 0 error response - */ @@ -1882,6 +1936,7 @@ public User getUserWithUsername(String username) throws ApiException { Status Code Description Response Headers 200 user details - 404 User does not exist - + 502 Bad Gateway - 0 error response - */ @@ -1903,6 +1958,7 @@ public ApiResponse getUserWithUsernameWithHttpInfo(String username) throws Status Code Description Response Headers 200 user details - 404 User does not exist - + 502 Bad Gateway - 0 error response - */ @@ -1923,6 +1979,7 @@ public okhttp3.Call getUserWithUsernameAsync(String username, final ApiCallback< +
Status Code Description Response Headers
200 token -
502 Bad Gateway -
0 error response -
*/ @@ -1990,6 +2047,7 @@ private okhttp3.Call requestTokenValidateBeforeCall(TokenRequest tokenRequest, f +
Status Code Description Response Headers
200 token -
502 Bad Gateway -
0 error response -
*/ @@ -2008,6 +2066,7 @@ public Token requestToken(TokenRequest tokenRequest) throws ApiException { +
Status Code Description Response Headers
200 token -
502 Bad Gateway -
0 error response -
*/ @@ -2028,6 +2087,7 @@ public ApiResponse requestTokenWithHttpInfo(TokenRequest tokenRequest) th +
Status Code Description Response Headers
200 token -
502 Bad Gateway -
0 error response -
*/ @@ -2049,6 +2109,7 @@ public okhttp3.Call requestTokenAsync(TokenRequest tokenRequest, final ApiCallba Status Code Description Response Headers 204 User password updated successfully - 404 User not found - + 502 Bad Gateway - 0 error response - */ @@ -2121,6 +2182,7 @@ private okhttp3.Call resetUserPasswordValidateBeforeCall(ResetUserPasswordReques Status Code Description Response Headers 204 User password updated successfully - 404 User not found - + 502 Bad Gateway - 0 error response - */ @@ -2139,6 +2201,7 @@ public void resetUserPassword(ResetUserPasswordRequest user) throws ApiException Status Code Description Response Headers 204 User password updated successfully - 404 User not found - + 502 Bad Gateway - 0 error response - */ @@ -2159,6 +2222,7 @@ public ApiResponse resetUserPasswordWithHttpInfo(ResetUserPasswordRequest Status Code Description Response Headers 204 User password updated successfully - 404 User not found - + 502 Bad Gateway - 0 error response - */ @@ -2178,6 +2242,7 @@ public okhttp3.Call resetUserPasswordAsync(ResetUserPasswordRequest user, final +
Status Code Description Response Headers
204 revokation successfully -
502 Bad Gateway -
0 error response -
*/ @@ -2250,6 +2315,7 @@ private okhttp3.Call revokeTokenValidateBeforeCall(String token, final ApiCallba +
Status Code Description Response Headers
204 revokation successfully -
502 Bad Gateway -
0 error response -
*/ @@ -2267,6 +2333,7 @@ public void revokeToken(String token) throws ApiException { +
Status Code Description Response Headers
204 revokation successfully -
502 Bad Gateway -
0 error response -
*/ @@ -2286,6 +2353,7 @@ public ApiResponse revokeTokenWithHttpInfo(String token) throws ApiExcepti +
Status Code Description Response Headers
204 revokation successfully -
502 Bad Gateway -
0 error response -
*/ @@ -2304,6 +2372,7 @@ public okhttp3.Call revokeTokenAsync(String token, final ApiCallback _call +
Status Code Description Response Headers
200 Array of user created non-session tokens -
502 Bad Gateway -
0 error response -
*/ @@ -2370,6 +2439,7 @@ private okhttp3.Call tokensGetValidateBeforeCall(final ApiCallback _callback) th +
Status Code Description Response Headers
200 Array of user created non-session tokens -
502 Bad Gateway -
0 error response -
*/ @@ -2387,6 +2457,7 @@ public List tokensGet() throws ApiException { +
Status Code Description Response Headers
200 Array of user created non-session tokens -
502 Bad Gateway -
0 error response -
*/ @@ -2406,6 +2477,7 @@ public ApiResponse> tokensGetWithHttpInfo() throws ApiException { +
Status Code Description Response Headers
200 Array of user created non-session tokens -
502 Bad Gateway -
0 error response -
*/ @@ -2425,6 +2497,7 @@ public okhttp3.Call tokensGetAsync(final ApiCallback> _callback) thr +
Status Code Description Response Headers
200 Array of user created session tokens -
502 Bad Gateway -
0 error response -
*/ @@ -2491,6 +2564,7 @@ private okhttp3.Call tokensSessionGetValidateBeforeCall(final ApiCallback _callb +
Status Code Description Response Headers
200 Array of user created session tokens -
502 Bad Gateway -
0 error response -
*/ @@ -2508,6 +2582,7 @@ public List tokensSessionGet() throws ApiException { +
Status Code Description Response Headers
200 Array of user created session tokens -
502 Bad Gateway -
0 error response -
*/ @@ -2527,6 +2602,7 @@ public ApiResponse> tokensSessionGetWithHttpInfo() throws ApiExcepti +
Status Code Description Response Headers
200 Array of user created session tokens -
502 Bad Gateway -
0 error response -
*/ @@ -2549,6 +2625,7 @@ public okhttp3.Call tokensSessionGetAsync(final ApiCallback> _callba +
Status Code Description Response Headers
204 AWS keys updated successfully -
502 Bad Gateway -
0 error response -
*/ @@ -2634,6 +2711,7 @@ private okhttp3.Call updateAWSAccessCredentialsValidateBeforeCall(String namespa +
Status Code Description Response Headers
204 AWS keys updated successfully -
502 Bad Gateway -
0 error response -
*/ @@ -2653,6 +2731,7 @@ public void updateAWSAccessCredentials(String namespace, String name, AWSAccessC +
Status Code Description Response Headers
204 AWS keys updated successfully -
502 Bad Gateway -
0 error response -
*/ @@ -2674,6 +2753,7 @@ public ApiResponse updateAWSAccessCredentialsWithHttpInfo(String namespace +
Status Code Description Response Headers
204 AWS keys updated successfully -
502 Bad Gateway -
0 error response -
*/ @@ -2694,6 +2774,7 @@ public okhttp3.Call updateAWSAccessCredentialsAsync(String namespace, String nam +
Status Code Description Response Headers
204 user updated successfully -
502 Bad Gateway -
0 error response -
*/ @@ -2772,6 +2853,7 @@ private okhttp3.Call updateUserValidateBeforeCall(String username, User user, fi +
Status Code Description Response Headers
204 user updated successfully -
502 Bad Gateway -
0 error response -
*/ @@ -2790,6 +2872,7 @@ public void updateUser(String username, User user) throws ApiException { +
Status Code Description Response Headers
204 user updated successfully -
502 Bad Gateway -
0 error response -
*/ @@ -2810,6 +2893,7 @@ public ApiResponse updateUserWithHttpInfo(String username, User user) thro +
Status Code Description Response Headers
204 user updated successfully -
502 Bad Gateway -
0 error response -
*/ @@ -2831,6 +2915,7 @@ public okhttp3.Call updateUserAsync(String username, User user, final ApiCallbac +
Status Code Description Response Headers
204 user update in organization successfully -
502 Bad Gateway -
0 error response -
*/ @@ -2916,6 +3001,7 @@ private okhttp3.Call updateUserInOrganizationValidateBeforeCall(String organizat +
Status Code Description Response Headers
204 user update in organization successfully -
502 Bad Gateway -
0 error response -
*/ @@ -2935,6 +3021,7 @@ public void updateUserInOrganization(String organization, String username, Organ +
Status Code Description Response Headers
204 user update in organization successfully -
502 Bad Gateway -
0 error response -
*/ @@ -2956,6 +3043,7 @@ public ApiResponse updateUserInOrganizationWithHttpInfo(String organizatio +
Status Code Description Response Headers
204 user update in organization successfully -
502 Bad Gateway -
0 error response -
*/ 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 2338686..0b12fd9 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 @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; @@ -59,7 +59,7 @@ public void setApiKeyPrefix(String apiKeyPrefix) { @Override public void applyToParams(List queryParams, Map headerParams, Map cookieParams, - String payload, String method, URI uri) throws ApiException { + String payload, String method, URI uri) throws ApiException { if (apiKey == null) { return; } 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 091d6b8..f7face9 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 @@ -13,8 +13,8 @@ package io.tiledb.cloud.rest_api.auth; -import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Pair; +import io.tiledb.cloud.rest_api.ApiException; import java.net.URI; import java.util.Map; 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 f85cc95..fdf71ec 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 @@ -13,8 +13,8 @@ package io.tiledb.cloud.rest_api.auth; -import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Pair; +import io.tiledb.cloud.rest_api.ApiException; import okhttp3.Credentials; 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 fc7bce6..5e79465 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 @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/src/main/java/io/tiledb/cloud/rest_api/auth/OAuth.java b/src/main/java/io/tiledb/cloud/rest_api/auth/OAuth.java index e2b0d04..8869cab 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 @@ -13,14 +13,14 @@ package io.tiledb.cloud.rest_api.auth; -import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Pair; +import io.tiledb.cloud.rest_api.ApiException; import java.net.URI; import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") 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 65869dc..85a361f 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 @@ -16,7 +16,7 @@ /** * OAuth flows that are supported by this client */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") 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 fb03754..acfd332 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 @@ -204,7 +204,7 @@ public void setTokenRequestBuilder(TokenRequestBuilder tokenRequestBuilder) { // Applying authorization to parameters is performed in the retryingIntercept method @Override public void applyToParams(List queryParams, Map headerParams, Map cookieParams, - String payload, String method, URI uri) throws ApiException { + String payload, String method, URI uri) throws ApiException { // No implementation necessary } } 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 bc09422..16f12b1 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 @@ -32,9 +32,9 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; import io.tiledb.cloud.rest_api.JSON; @@ -42,7 +42,7 @@ * Model representing aws keys or service role, service roles are currently ignored, but will be preferred option in the future */ @ApiModel(description = "Model representing aws keys or service role, service roles are currently ignored, but will be preferred option in the future") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class AWSAccessCredentials { public static final String SERIALIZED_NAME_SECRET_ACCESS_KEY = "secret_access_key"; @SerializedName(SERIALIZED_NAME_SECRET_ACCESS_KEY) @@ -76,7 +76,7 @@ public class AWSAccessCredentials { @SerializedName(SERIALIZED_NAME_UPDATED_AT) private OffsetDateTime updatedAt; - public AWSAccessCredentials() { + public AWSAccessCredentials() { } @@ -262,6 +262,41 @@ public OffsetDateTime getUpdatedAt() { + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public AWSAccessCredentials putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -280,12 +315,13 @@ public boolean equals(Object o) { Objects.equals(this._default, awSAccessCredentials._default) && Objects.equals(this.buckets, awSAccessCredentials.buckets) && Objects.equals(this.createdAt, awSAccessCredentials.createdAt) && - Objects.equals(this.updatedAt, awSAccessCredentials.updatedAt); + Objects.equals(this.updatedAt, awSAccessCredentials.updatedAt)&& + Objects.equals(this.additionalProperties, awSAccessCredentials.additionalProperties); } @Override public int hashCode() { - return Objects.hash(secretAccessKey, accessKeyId, serviceRoleArn, name, _default, buckets, createdAt, updatedAt); + return Objects.hash(secretAccessKey, accessKeyId, serviceRoleArn, name, _default, buckets, createdAt, updatedAt, additionalProperties); } @Override @@ -300,6 +336,7 @@ public String toString() { sb.append(" buckets: ").append(toIndentedString(buckets)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -349,28 +386,20 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in AWSAccessCredentials is not found in the empty JSON string", AWSAccessCredentials.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!AWSAccessCredentials.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AWSAccessCredentials` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } - if (jsonObj.get("secret_access_key") != null && !jsonObj.get("secret_access_key").isJsonPrimitive()) { + 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())); } - if (jsonObj.get("access_key_id") != null && !jsonObj.get("access_key_id").isJsonPrimitive()) { + if ((jsonObj.get("access_key_id") != null && !jsonObj.get("access_key_id").isJsonNull()) && !jsonObj.get("access_key_id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `access_key_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("access_key_id").toString())); } - if (jsonObj.get("service_role_arn") != null && !jsonObj.get("service_role_arn").isJsonPrimitive()) { + if ((jsonObj.get("service_role_arn") != null && !jsonObj.get("service_role_arn").isJsonNull()) && !jsonObj.get("service_role_arn").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `service_role_arn` to be a primitive type in the JSON string but got `%s`", jsonObj.get("service_role_arn").toString())); } - if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { + 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").isJsonArray()) { + 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())); } } @@ -390,6 +419,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, AWSAccessCredentials value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -397,7 +443,25 @@ public void write(JsonWriter out, AWSAccessCredentials value) throws IOException public AWSAccessCredentials read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + AWSAccessCredentials instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 ed6c311..8b19a5f 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 @@ -22,7 +22,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/ActivityEventType.java b/src/main/java/io/tiledb/cloud/rest_api/model/ActivityEventType.java index 8c6019f..d860b37 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 @@ -35,6 +35,8 @@ public enum ActivityEventType { QUERY_WRITE("query_write"), + QUERY_DELETE("query_delete"), + CREATE("create"), DELETE("delete"), @@ -49,7 +51,9 @@ public enum ActivityEventType { ARRAY_METADATA_UPDATE("array_metadata_update"), - ESTIMATED_RESULT_SIZES("estimated_result_sizes"); + ESTIMATED_RESULT_SIZES("estimated_result_sizes"), + + READ_FRAGMENT_INFO("read_fragment_info"); private String value; diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Array.java b/src/main/java/io/tiledb/cloud/rest_api/model/Array.java index 624fc18..e6d1bc6 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 @@ -24,23 +24,23 @@ import java.io.IOException; import java.math.BigDecimal; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class Array { public static final String SERIALIZED_NAME_TIMESTAMP = "timestamp"; @SerializedName(SERIALIZED_NAME_TIMESTAMP) @@ -54,7 +54,7 @@ public class Array { @SerializedName(SERIALIZED_NAME_URI) private String uri; - public Array() { + public Array() { } public Array timestamp(BigDecimal timestamp) { @@ -125,6 +125,41 @@ public void setUri(String uri) { this.uri = uri; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public Array putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -138,12 +173,13 @@ public boolean equals(Object o) { Array array = (Array) o; return Objects.equals(this.timestamp, array.timestamp) && Objects.equals(this.queryType, array.queryType) && - Objects.equals(this.uri, array.uri); + Objects.equals(this.uri, array.uri)&& + Objects.equals(this.additionalProperties, array.additionalProperties); } @Override public int hashCode() { - return Objects.hash(timestamp, queryType, uri); + return Objects.hash(timestamp, queryType, uri, additionalProperties); } @Override @@ -153,6 +189,7 @@ public String toString() { sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n"); sb.append(" queryType: ").append(toIndentedString(queryType)).append("\n"); sb.append(" uri: ").append(toIndentedString(uri)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -201,21 +238,13 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { } } - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!Array.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `Array` properties. JSON: %s", entry.getKey(), jsonObj.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 (jsonObj.get("uri") != null && !jsonObj.get("uri").isJsonPrimitive()) { + 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())); } } @@ -235,6 +264,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, Array value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -242,7 +288,25 @@ public void write(JsonWriter out, Array value) throws IOException { public Array read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + Array instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 9d346b8..55d283e 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 @@ -24,23 +24,23 @@ import java.io.IOException; import java.time.OffsetDateTime; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class ArrayActivityLog { public static final String SERIALIZED_NAME_EVENT_AT = "event_at"; @SerializedName(SERIALIZED_NAME_EVENT_AT) @@ -78,7 +78,7 @@ public class ArrayActivityLog { @SerializedName(SERIALIZED_NAME_QUERY_STATS) private String queryStats; - public ArrayActivityLog() { + public ArrayActivityLog() { } public ArrayActivityLog eventAt(OffsetDateTime eventAt) { @@ -287,6 +287,41 @@ public void setQueryStats(String queryStats) { this.queryStats = queryStats; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public ArrayActivityLog putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -306,12 +341,13 @@ public boolean equals(Object o) { Objects.equals(this.arrayTaskId, arrayActivityLog.arrayTaskId) && Objects.equals(this.id, arrayActivityLog.id) && Objects.equals(this.queryRanges, arrayActivityLog.queryRanges) && - Objects.equals(this.queryStats, arrayActivityLog.queryStats); + Objects.equals(this.queryStats, arrayActivityLog.queryStats)&& + Objects.equals(this.additionalProperties, arrayActivityLog.additionalProperties); } @Override public int hashCode() { - return Objects.hash(eventAt, action, username, bytesSent, bytesReceived, arrayTaskId, id, queryRanges, queryStats); + return Objects.hash(eventAt, action, username, bytesSent, bytesReceived, arrayTaskId, id, queryRanges, queryStats, additionalProperties); } @Override @@ -327,6 +363,7 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" queryRanges: ").append(toIndentedString(queryRanges)).append("\n"); sb.append(" queryStats: ").append(toIndentedString(queryStats)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -377,27 +414,19 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayActivityLog is not found in the empty JSON string", ArrayActivityLog.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!ArrayActivityLog.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ArrayActivityLog` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } - if (jsonObj.get("username") != null && !jsonObj.get("username").isJsonPrimitive()) { + 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("array_task_id") != null && !jsonObj.get("array_task_id").isJsonPrimitive()) { + 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())); } - if (jsonObj.get("id") != null && !jsonObj.get("id").isJsonPrimitive()) { + 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("query_ranges") != null && !jsonObj.get("query_ranges").isJsonPrimitive()) { + if ((jsonObj.get("query_ranges") != null && !jsonObj.get("query_ranges").isJsonNull()) && !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()) { + if ((jsonObj.get("query_stats") != null && !jsonObj.get("query_stats").isJsonNull()) && !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())); } } @@ -417,6 +446,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, ArrayActivityLog value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -424,7 +470,25 @@ public void write(JsonWriter out, ArrayActivityLog value) throws IOException { public ArrayActivityLog read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + ArrayActivityLog instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 8764cdf..a44983c 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 @@ -25,8 +25,6 @@ import java.util.ArrayList; import java.util.List; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonArray; import com.google.gson.JsonElement; @@ -34,15 +32,17 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class ArrayBrowserData { public static final String SERIALIZED_NAME_ARRAYS = "arrays"; @SerializedName(SERIALIZED_NAME_ARRAYS) @@ -52,7 +52,7 @@ public class ArrayBrowserData { @SerializedName(SERIALIZED_NAME_PAGINATION_METADATA) private PaginationMetadata paginationMetadata; - public ArrayBrowserData() { + public ArrayBrowserData() { } public ArrayBrowserData arrays(List arrays) { @@ -108,6 +108,41 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { this.paginationMetadata = paginationMetadata; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public ArrayBrowserData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -120,12 +155,13 @@ public boolean equals(Object o) { } ArrayBrowserData arrayBrowserData = (ArrayBrowserData) o; return Objects.equals(this.arrays, arrayBrowserData.arrays) && - Objects.equals(this.paginationMetadata, arrayBrowserData.paginationMetadata); + Objects.equals(this.paginationMetadata, arrayBrowserData.paginationMetadata)&& + Objects.equals(this.additionalProperties, arrayBrowserData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(arrays, paginationMetadata); + return Objects.hash(arrays, paginationMetadata, additionalProperties); } @Override @@ -134,6 +170,7 @@ public String toString() { sb.append("class ArrayBrowserData {\n"); sb.append(" arrays: ").append(toIndentedString(arrays)).append("\n"); sb.append(" paginationMetadata: ").append(toIndentedString(paginationMetadata)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -177,14 +214,6 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayBrowserData is not found in the empty JSON string", ArrayBrowserData.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!ArrayBrowserData.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ArrayBrowserData` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } JsonArray jsonArrayarrays = jsonObj.getAsJsonArray("arrays"); if (jsonArrayarrays != null) { // ensure the json data is an array @@ -198,7 +227,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { }; } // validate the optional field `pagination_metadata` - if (jsonObj.getAsJsonObject("pagination_metadata") != null) { + if (jsonObj.get("pagination_metadata") != null && !jsonObj.get("pagination_metadata").isJsonNull()) { PaginationMetadata.validateJsonObject(jsonObj.getAsJsonObject("pagination_metadata")); } } @@ -218,6 +247,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, ArrayBrowserData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -225,7 +271,25 @@ public void write(JsonWriter out, ArrayBrowserData value) throws IOException { public ArrayBrowserData read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + ArrayBrowserData instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 cfc42a6..79e83f4 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 @@ -31,9 +31,9 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; import io.tiledb.cloud.rest_api.JSON; @@ -41,7 +41,7 @@ * Object for ui array tasks browser page */ @ApiModel(description = "Object for ui array tasks browser page") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class ArrayBrowserSidebar { public static final String SERIALIZED_NAME_NAMESPACES = "namespaces"; @SerializedName(SERIALIZED_NAME_NAMESPACES) @@ -55,7 +55,7 @@ public class ArrayBrowserSidebar { @SerializedName(SERIALIZED_NAME_RESULT_COUNT_BY_NAMESPACE) private Object resultCountByNamespace; - public ArrayBrowserSidebar() { + public ArrayBrowserSidebar() { } public ArrayBrowserSidebar namespaces(List namespaces) { @@ -134,6 +134,41 @@ public void setResultCountByNamespace(Object resultCountByNamespace) { this.resultCountByNamespace = resultCountByNamespace; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public ArrayBrowserSidebar putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -147,12 +182,13 @@ public boolean equals(Object o) { ArrayBrowserSidebar arrayBrowserSidebar = (ArrayBrowserSidebar) o; return Objects.equals(this.namespaces, arrayBrowserSidebar.namespaces) && Objects.equals(this.resultCountForAll, arrayBrowserSidebar.resultCountForAll) && - Objects.equals(this.resultCountByNamespace, arrayBrowserSidebar.resultCountByNamespace); + Objects.equals(this.resultCountByNamespace, arrayBrowserSidebar.resultCountByNamespace)&& + Objects.equals(this.additionalProperties, arrayBrowserSidebar.additionalProperties); } @Override public int hashCode() { - return Objects.hash(namespaces, resultCountForAll, resultCountByNamespace); + return Objects.hash(namespaces, resultCountForAll, resultCountByNamespace, additionalProperties); } @Override @@ -162,6 +198,7 @@ public String toString() { sb.append(" namespaces: ").append(toIndentedString(namespaces)).append("\n"); sb.append(" resultCountForAll: ").append(toIndentedString(resultCountForAll)).append("\n"); sb.append(" resultCountByNamespace: ").append(toIndentedString(resultCountByNamespace)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -206,16 +243,8 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayBrowserSidebar is not found in the empty JSON string", ArrayBrowserSidebar.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!ArrayBrowserSidebar.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ArrayBrowserSidebar` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } // ensure the json data is an array - if (jsonObj.get("namespaces") != null && !jsonObj.get("namespaces").isJsonArray()) { + 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())); } } @@ -235,6 +264,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, ArrayBrowserSidebar value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -242,7 +288,25 @@ public void write(JsonWriter out, ArrayBrowserSidebar value) throws IOException public ArrayBrowserSidebar read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + ArrayBrowserSidebar instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 new file mode 100644 index 0000000..e02cf61 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayConsolidationRequest.java @@ -0,0 +1,266 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.2.19 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + +import java.util.Objects; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +import com.google.gson.Gson; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * Request to 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]") +public class ArrayConsolidationRequest { + public static final String SERIALIZED_NAME_CONFIG = "config"; + @SerializedName(SERIALIZED_NAME_CONFIG) + private TileDBConfig config; + + 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; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public ArrayConsolidationRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ArrayConsolidationRequest arrayConsolidationRequest = (ArrayConsolidationRequest) o; + return Objects.equals(this.config, arrayConsolidationRequest.config)&& + Objects.equals(this.additionalProperties, arrayConsolidationRequest.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(config, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ArrayConsolidationRequest {\n"); + sb.append(" config: ").append(toIndentedString(config)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("config"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ArrayConsolidationRequest + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (ArrayConsolidationRequest.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayConsolidationRequest is not found in the empty JSON string", ArrayConsolidationRequest.openapiRequiredFields.toString())); + } + } + // validate the optional field `config` + if (jsonObj.get("config") != null && !jsonObj.get("config").isJsonNull()) { + TileDBConfig.validateJsonObject(jsonObj.getAsJsonObject("config")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ArrayConsolidationRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ArrayConsolidationRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ArrayConsolidationRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ArrayConsolidationRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public ArrayConsolidationRequest read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + ArrayConsolidationRequest instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of 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 + */ + 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 ae7ca62..1eacdbc 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 @@ -25,23 +25,23 @@ import java.util.ArrayList; import java.util.List; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class ArrayEndTimestampData { public static final String SERIALIZED_NAME_END_TIMESTAMPS = "end_timestamps"; @SerializedName(SERIALIZED_NAME_END_TIMESTAMPS) @@ -51,7 +51,7 @@ public class ArrayEndTimestampData { @SerializedName(SERIALIZED_NAME_PAGINATION_METADATA) private PaginationMetadata paginationMetadata; - public ArrayEndTimestampData() { + public ArrayEndTimestampData() { } public ArrayEndTimestampData endTimestamps(List endTimestamps) { @@ -107,6 +107,41 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { this.paginationMetadata = paginationMetadata; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public ArrayEndTimestampData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -119,12 +154,13 @@ public boolean equals(Object o) { } ArrayEndTimestampData arrayEndTimestampData = (ArrayEndTimestampData) o; return Objects.equals(this.endTimestamps, arrayEndTimestampData.endTimestamps) && - Objects.equals(this.paginationMetadata, arrayEndTimestampData.paginationMetadata); + Objects.equals(this.paginationMetadata, arrayEndTimestampData.paginationMetadata)&& + Objects.equals(this.additionalProperties, arrayEndTimestampData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(endTimestamps, paginationMetadata); + return Objects.hash(endTimestamps, paginationMetadata, additionalProperties); } @Override @@ -133,6 +169,7 @@ public String toString() { sb.append("class ArrayEndTimestampData {\n"); sb.append(" endTimestamps: ").append(toIndentedString(endTimestamps)).append("\n"); sb.append(" paginationMetadata: ").append(toIndentedString(paginationMetadata)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -176,20 +213,12 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayEndTimestampData is not found in the empty JSON string", ArrayEndTimestampData.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!ArrayEndTimestampData.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ArrayEndTimestampData` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } // ensure the json data is an array - if (jsonObj.get("end_timestamps") != null && !jsonObj.get("end_timestamps").isJsonArray()) { + 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.getAsJsonObject("pagination_metadata") != null) { + if (jsonObj.get("pagination_metadata") != null && !jsonObj.get("pagination_metadata").isJsonNull()) { PaginationMetadata.validateJsonObject(jsonObj.getAsJsonObject("pagination_metadata")); } } @@ -209,6 +238,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, ArrayEndTimestampData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -216,7 +262,25 @@ public void write(JsonWriter out, ArrayEndTimestampData value) throws IOExceptio public ArrayEndTimestampData read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + ArrayEndTimestampData instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 a5ba6d3..389d570 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 @@ -29,9 +29,9 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; import io.tiledb.cloud.rest_api.JSON; @@ -39,7 +39,7 @@ * A user-favorite array item */ @ApiModel(description = "A user-favorite array item") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class ArrayFavorite { public static final String SERIALIZED_NAME_ARRAY_UUID = "array_uuid"; @SerializedName(SERIALIZED_NAME_ARRAY_UUID) @@ -53,7 +53,7 @@ public class ArrayFavorite { @SerializedName(SERIALIZED_NAME_NAME) private String name; - public ArrayFavorite() { + public ArrayFavorite() { } public ArrayFavorite arrayUuid(String arrayUuid) { @@ -124,6 +124,41 @@ public void setName(String name) { this.name = name; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public ArrayFavorite putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -137,12 +172,13 @@ public boolean equals(Object o) { ArrayFavorite arrayFavorite = (ArrayFavorite) o; return Objects.equals(this.arrayUuid, arrayFavorite.arrayUuid) && Objects.equals(this.namespace, arrayFavorite.namespace) && - Objects.equals(this.name, arrayFavorite.name); + Objects.equals(this.name, arrayFavorite.name)&& + Objects.equals(this.additionalProperties, arrayFavorite.additionalProperties); } @Override public int hashCode() { - return Objects.hash(arrayUuid, namespace, name); + return Objects.hash(arrayUuid, namespace, name, additionalProperties); } @Override @@ -152,6 +188,7 @@ public String toString() { sb.append(" arrayUuid: ").append(toIndentedString(arrayUuid)).append("\n"); sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -196,21 +233,13 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayFavorite is not found in the empty JSON string", ArrayFavorite.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!ArrayFavorite.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ArrayFavorite` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } - if (jsonObj.get("array_uuid") != null && !jsonObj.get("array_uuid").isJsonPrimitive()) { + 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())); } - if (jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonPrimitive()) { + 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").isJsonPrimitive()) { + 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())); } } @@ -230,6 +259,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, ArrayFavorite value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -237,7 +283,25 @@ public void write(JsonWriter out, ArrayFavorite value) throws IOException { public ArrayFavorite read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + ArrayFavorite instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 88ac785..62976de 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 @@ -32,9 +32,9 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; import io.tiledb.cloud.rest_api.JSON; @@ -42,7 +42,7 @@ * Object including array favorites and pagination metadata */ @ApiModel(description = "Object including array favorites and pagination metadata") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class ArrayFavoritesData { public static final String SERIALIZED_NAME_ARRAYS = "arrays"; @SerializedName(SERIALIZED_NAME_ARRAYS) @@ -52,7 +52,7 @@ public class ArrayFavoritesData { @SerializedName(SERIALIZED_NAME_PAGINATION_METADATA) private PaginationMetadata paginationMetadata; - public ArrayFavoritesData() { + public ArrayFavoritesData() { } public ArrayFavoritesData arrays(List arrays) { @@ -108,6 +108,41 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { this.paginationMetadata = paginationMetadata; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public ArrayFavoritesData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -120,12 +155,13 @@ public boolean equals(Object o) { } ArrayFavoritesData arrayFavoritesData = (ArrayFavoritesData) o; return Objects.equals(this.arrays, arrayFavoritesData.arrays) && - Objects.equals(this.paginationMetadata, arrayFavoritesData.paginationMetadata); + Objects.equals(this.paginationMetadata, arrayFavoritesData.paginationMetadata)&& + Objects.equals(this.additionalProperties, arrayFavoritesData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(arrays, paginationMetadata); + return Objects.hash(arrays, paginationMetadata, additionalProperties); } @Override @@ -134,6 +170,7 @@ public String toString() { sb.append("class ArrayFavoritesData {\n"); sb.append(" arrays: ").append(toIndentedString(arrays)).append("\n"); sb.append(" paginationMetadata: ").append(toIndentedString(paginationMetadata)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -177,14 +214,6 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayFavoritesData is not found in the empty JSON string", ArrayFavoritesData.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!ArrayFavoritesData.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ArrayFavoritesData` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } JsonArray jsonArrayarrays = jsonObj.getAsJsonArray("arrays"); if (jsonArrayarrays != null) { // ensure the json data is an array @@ -198,7 +227,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { }; } // validate the optional field `pagination_metadata` - if (jsonObj.getAsJsonObject("pagination_metadata") != null) { + if (jsonObj.get("pagination_metadata") != null && !jsonObj.get("pagination_metadata").isJsonNull()) { PaginationMetadata.validateJsonObject(jsonObj.getAsJsonObject("pagination_metadata")); } } @@ -218,6 +247,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, ArrayFavoritesData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -225,7 +271,25 @@ public void write(JsonWriter out, ArrayFavoritesData value) throws IOException { public ArrayFavoritesData read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + ArrayFavoritesData instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 2c922e6..6e1df1b 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 @@ -29,7 +29,6 @@ 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; @@ -40,14 +39,14 @@ import com.google.gson.reflect.TypeToken; import java.util.HashSet; -import java.util.Map.Entry; -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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class ArrayInfo { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -107,7 +106,7 @@ public class ArrayInfo { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) - private String type; + private ArrayType type; public static final String SERIALIZED_NAME_SHARE_COUNT = "share_count"; @SerializedName(SERIALIZED_NAME_SHARE_COUNT) @@ -145,7 +144,7 @@ public class ArrayInfo { @SerializedName(SERIALIZED_NAME_IS_FAVORITE) private Boolean isFavorite; - public ArrayInfo() { + public ArrayInfo() { } @@ -510,25 +509,25 @@ public void setAccessCredentialsName(String accessCredentialsName) { } - public ArrayInfo type(String type) { + public ArrayInfo type(ArrayType type) { this.type = type; return this; } /** - * Array type (dense, key-value, sparse) + * Get type * @return type **/ @javax.annotation.Nullable - @ApiModelProperty(example = "sparse", value = "Array type (dense, key-value, sparse)") + @ApiModelProperty(value = "") - public String getType() { + public ArrayType getType() { return type; } - public void setType(String type) { + public void setType(ArrayType type) { this.type = type; } @@ -738,6 +737,41 @@ public void setIsFavorite(Boolean isFavorite) { this.isFavorite = isFavorite; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public ArrayInfo putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -772,7 +806,8 @@ 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.additionalProperties, arrayInfo.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -781,7 +816,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); + 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); } private static int hashCodeNullable(JsonNullable a) { @@ -819,6 +854,7 @@ 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(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -884,31 +920,23 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayInfo is not found in the empty JSON string", ArrayInfo.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!ArrayInfo.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ArrayInfo` properties. JSON: %s", entry.getKey(), jsonObj.toString())); - } - } - if (jsonObj.get("id") != null && !jsonObj.get("id").isJsonPrimitive()) { + 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("uri") != null && !jsonObj.get("uri").isJsonPrimitive()) { + 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())); } - if (jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonPrimitive()) { + 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("description") != null && !jsonObj.get("description").isJsonPrimitive()) { + 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("name") != null && !jsonObj.get("name").isJsonPrimitive()) { + 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").isJsonArray()) { + 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"); @@ -935,28 +963,25 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { Subscription.validateJsonObject(jsonArraysubscriptions.get(i).getAsJsonObject()); }; } - if (jsonObj.get("logo") != null && !jsonObj.get("logo").isJsonPrimitive()) { + 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").isJsonPrimitive()) { + 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("type") != null && !jsonObj.get("type").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); - } - if (jsonObj.get("tiledb_uri") != null && !jsonObj.get("tiledb_uri").isJsonPrimitive()) { + 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").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").isJsonPrimitive()) { -// throw new IllegalArgumentException(String.format("Expected the field `license_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("license_id").toString())); -// } -// if (jsonObj.get("license_text") != null && !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("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()) { + throw new IllegalArgumentException(String.format("Expected the field `license_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("license_id").toString())); + } + 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())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -974,6 +999,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, ArrayInfo value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -981,7 +1023,25 @@ public void write(JsonWriter out, ArrayInfo value) throws IOException { public ArrayInfo read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + ArrayInfo instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 fde7925..621b1ec 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 @@ -27,7 +27,6 @@ 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; @@ -37,14 +36,14 @@ import com.google.gson.reflect.TypeToken; import java.util.HashSet; -import java.util.Map.Entry; -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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class ArrayInfoUpdate { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) @@ -90,7 +89,7 @@ public class ArrayInfoUpdate { @SerializedName(SERIALIZED_NAME_READ_ONLY) private Boolean readOnly; - public ArrayInfoUpdate() { + public ArrayInfoUpdate() { } public ArrayInfoUpdate description(String description) { @@ -361,6 +360,41 @@ public void setReadOnly(Boolean readOnly) { this.readOnly = readOnly; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public ArrayInfoUpdate putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -382,7 +416,8 @@ public boolean equals(Object o) { Objects.equals(this.tags, arrayInfoUpdate.tags) && Objects.equals(this.licenseId, arrayInfoUpdate.licenseId) && Objects.equals(this.licenseText, arrayInfoUpdate.licenseText) && - Objects.equals(this.readOnly, arrayInfoUpdate.readOnly); + Objects.equals(this.readOnly, arrayInfoUpdate.readOnly)&& + Objects.equals(this.additionalProperties, arrayInfoUpdate.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -391,7 +426,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(description, name, uri, fileType, fileProperties, accessCredentialsName, logo, tags, licenseId, licenseText, readOnly); + return Objects.hash(description, name, uri, fileType, fileProperties, accessCredentialsName, logo, tags, licenseId, licenseText, readOnly, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -416,6 +451,7 @@ public String toString() { sb.append(" licenseId: ").append(toIndentedString(licenseId)).append("\n"); sb.append(" licenseText: ").append(toIndentedString(licenseText)).append("\n"); sb.append(" readOnly: ").append(toIndentedString(readOnly)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -468,37 +504,29 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayInfoUpdate is not found in the empty JSON string", ArrayInfoUpdate.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!ArrayInfoUpdate.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ArrayInfoUpdate` properties. JSON: %s", entry.getKey(), jsonObj.toString())); - } - } - if (jsonObj.get("description") != null && !jsonObj.get("description").isJsonPrimitive()) { + 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("name") != null && !jsonObj.get("name").isJsonPrimitive()) { + 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("uri") != null && !jsonObj.get("uri").isJsonPrimitive()) { + 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())); } - if (jsonObj.get("access_credentials_name") != null && !jsonObj.get("access_credentials_name").isJsonPrimitive()) { + 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").isJsonPrimitive()) { + 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").isJsonArray()) { + 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").isJsonPrimitive()) { + if ((jsonObj.get("license_id") != null && !jsonObj.get("license_id").isJsonNull()) && !jsonObj.get("license_id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `license_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("license_id").toString())); } - if (jsonObj.get("license_text") != null && !jsonObj.get("license_text").isJsonPrimitive()) { + 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())); } } @@ -518,6 +546,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, ArrayInfoUpdate value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -525,7 +570,25 @@ public void write(JsonWriter out, ArrayInfoUpdate value) throws IOException { public ArrayInfoUpdate read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + ArrayInfoUpdate instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 72c05cc..defbdda 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 @@ -25,8 +25,6 @@ import java.util.ArrayList; import java.util.List; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonArray; import com.google.gson.JsonElement; @@ -34,21 +32,23 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class ArrayMetadata { public static final String SERIALIZED_NAME_ENTRIES = "entries"; @SerializedName(SERIALIZED_NAME_ENTRIES) private List entries = null; - public ArrayMetadata() { + public ArrayMetadata() { } public ArrayMetadata entries(List entries) { @@ -81,6 +81,41 @@ public void setEntries(List entries) { this.entries = entries; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public ArrayMetadata putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -92,12 +127,13 @@ public boolean equals(Object o) { return false; } ArrayMetadata arrayMetadata = (ArrayMetadata) o; - return Objects.equals(this.entries, arrayMetadata.entries); + return Objects.equals(this.entries, arrayMetadata.entries)&& + Objects.equals(this.additionalProperties, arrayMetadata.additionalProperties); } @Override public int hashCode() { - return Objects.hash(entries); + return Objects.hash(entries, additionalProperties); } @Override @@ -105,6 +141,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ArrayMetadata {\n"); sb.append(" entries: ").append(toIndentedString(entries)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -147,14 +184,6 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayMetadata is not found in the empty JSON string", ArrayMetadata.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!ArrayMetadata.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ArrayMetadata` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } JsonArray jsonArrayentries = jsonObj.getAsJsonArray("entries"); if (jsonArrayentries != null) { // ensure the json data is an array @@ -184,6 +213,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, ArrayMetadata value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -191,7 +237,25 @@ public void write(JsonWriter out, ArrayMetadata value) throws IOException { public ArrayMetadata read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + ArrayMetadata instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 75bd9d4..1c6bd36 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 @@ -31,9 +31,9 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; import io.tiledb.cloud.rest_api.JSON; @@ -41,7 +41,7 @@ * key/value pair representing an array metadata map entry */ @ApiModel(description = "key/value pair representing an array metadata map entry") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class ArrayMetadataEntry { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -63,7 +63,7 @@ public class ArrayMetadataEntry { @SerializedName(SERIALIZED_NAME_DEL) private Boolean del; - public ArrayMetadataEntry() { + public ArrayMetadataEntry() { } public ArrayMetadataEntry key(String key) { @@ -188,6 +188,41 @@ public void setDel(Boolean del) { this.del = del; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public ArrayMetadataEntry putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -203,12 +238,13 @@ public boolean equals(Object o) { Objects.equals(this.type, arrayMetadataEntry.type) && Objects.equals(this.valueNum, arrayMetadataEntry.valueNum) && Objects.equals(this.value, arrayMetadataEntry.value) && - Objects.equals(this.del, arrayMetadataEntry.del); + Objects.equals(this.del, arrayMetadataEntry.del)&& + Objects.equals(this.additionalProperties, arrayMetadataEntry.additionalProperties); } @Override public int hashCode() { - return Objects.hash(key, type, valueNum, value, del); + return Objects.hash(key, type, valueNum, value, del, additionalProperties); } @Override @@ -220,6 +256,7 @@ public String toString() { sb.append(" valueNum: ").append(toIndentedString(valueNum)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); sb.append(" del: ").append(toIndentedString(del)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -266,22 +303,14 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayMetadataEntry is not found in the empty JSON string", ArrayMetadataEntry.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!ArrayMetadataEntry.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ArrayMetadataEntry` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } - if (jsonObj.get("key") != null && !jsonObj.get("key").isJsonPrimitive()) { + 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").isJsonPrimitive()) { + 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").isJsonArray()) { + 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())); } } @@ -301,6 +330,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, ArrayMetadataEntry value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -308,7 +354,25 @@ public void write(JsonWriter out, ArrayMetadataEntry value) throws IOException { public ArrayMetadataEntry read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + ArrayMetadataEntry instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 8b8d2a8..a7f93d9 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 @@ -29,9 +29,9 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; import io.tiledb.cloud.rest_api.JSON; @@ -39,13 +39,13 @@ * Sample data from array */ @ApiModel(description = "Sample data from array") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class ArraySample { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) private Object data; - public ArraySample() { + public ArraySample() { } public ArraySample data(Object data) { @@ -70,6 +70,41 @@ public void setData(Object data) { this.data = data; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public ArraySample putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -81,12 +116,13 @@ public boolean equals(Object o) { return false; } ArraySample arraySample = (ArraySample) o; - return Objects.equals(this.data, arraySample.data); + return Objects.equals(this.data, arraySample.data)&& + Objects.equals(this.additionalProperties, arraySample.additionalProperties); } @Override public int hashCode() { - return Objects.hash(data); + return Objects.hash(data, additionalProperties); } @Override @@ -94,6 +130,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ArraySample {\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -136,14 +173,6 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in ArraySample is not found in the empty JSON string", ArraySample.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!ArraySample.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ArraySample` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -161,6 +190,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, ArraySample value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -168,7 +214,25 @@ public void write(JsonWriter out, ArraySample value) throws IOException { public ArraySample read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + ArraySample instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 f528dfe..778ff2e 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 @@ -25,8 +25,6 @@ import java.util.ArrayList; import java.util.List; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonArray; import com.google.gson.JsonElement; @@ -34,15 +32,17 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class ArraySchema { public static final String SERIALIZED_NAME_URI = "uri"; @SerializedName(SERIALIZED_NAME_URI) @@ -88,7 +88,7 @@ public class ArraySchema { @SerializedName(SERIALIZED_NAME_ALLOWS_DUPLICATES) private Boolean allowsDuplicates; - public ArraySchema() { + public ArraySchema() { } public ArraySchema uri(String uri) { @@ -353,6 +353,41 @@ public void setAllowsDuplicates(Boolean allowsDuplicates) { this.allowsDuplicates = allowsDuplicates; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public ArraySchema putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -374,12 +409,13 @@ public boolean equals(Object o) { Objects.equals(this.offsetFilterPipeline, arraySchema.offsetFilterPipeline) && Objects.equals(this.domain, arraySchema.domain) && Objects.equals(this.attributes, arraySchema.attributes) && - Objects.equals(this.allowsDuplicates, arraySchema.allowsDuplicates); + Objects.equals(this.allowsDuplicates, arraySchema.allowsDuplicates)&& + Objects.equals(this.additionalProperties, arraySchema.additionalProperties); } @Override public int hashCode() { - return Objects.hash(uri, version, arrayType, tileOrder, cellOrder, capacity, coordsFilterPipeline, offsetFilterPipeline, domain, attributes, allowsDuplicates); + return Objects.hash(uri, version, arrayType, tileOrder, cellOrder, capacity, coordsFilterPipeline, offsetFilterPipeline, domain, attributes, allowsDuplicates, additionalProperties); } @Override @@ -397,6 +433,7 @@ public String toString() { sb.append(" domain: ").append(toIndentedString(domain)).append("\n"); sb.append(" attributes: ").append(toIndentedString(attributes)).append("\n"); sb.append(" allowsDuplicates: ").append(toIndentedString(allowsDuplicates)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -459,37 +496,29 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { } } - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!ArraySchema.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ArraySchema` properties. JSON: %s", entry.getKey(), jsonObj.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 (jsonObj.get("uri") != null && !jsonObj.get("uri").isJsonPrimitive()) { + 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").isJsonArray()) { + if ((jsonObj.get("version") != null && !jsonObj.get("version").isJsonNull()) && !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.getAsJsonObject("coordsFilterPipeline") != null) { + if (jsonObj.get("coordsFilterPipeline") != null && !jsonObj.get("coordsFilterPipeline").isJsonNull()) { FilterPipeline.validateJsonObject(jsonObj.getAsJsonObject("coordsFilterPipeline")); } // validate the optional field `offsetFilterPipeline` - if (jsonObj.getAsJsonObject("offsetFilterPipeline") != null) { + if (jsonObj.get("offsetFilterPipeline") != null && !jsonObj.get("offsetFilterPipeline").isJsonNull()) { FilterPipeline.validateJsonObject(jsonObj.getAsJsonObject("offsetFilterPipeline")); } // validate the optional field `domain` - if (jsonObj.getAsJsonObject("domain") != null) { + if (jsonObj.get("domain") != null && !jsonObj.get("domain").isJsonNull()) { Domain.validateJsonObject(jsonObj.getAsJsonObject("domain")); } JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); @@ -510,28 +539,28 @@ 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(); + 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(); } } 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 e48202c..699939a 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 @@ -25,23 +25,23 @@ import java.util.ArrayList; import java.util.List; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class ArraySharing { public static final String SERIALIZED_NAME_ACTIONS = "actions"; @SerializedName(SERIALIZED_NAME_ACTIONS) @@ -55,7 +55,7 @@ public class ArraySharing { @SerializedName(SERIALIZED_NAME_NAMESPACE_TYPE) private String namespaceType; - public ArraySharing() { + public ArraySharing() { } public ArraySharing actions(List actions) { @@ -134,6 +134,41 @@ public void setNamespaceType(String namespaceType) { this.namespaceType = namespaceType; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public ArraySharing putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -147,12 +182,13 @@ public boolean equals(Object o) { ArraySharing arraySharing = (ArraySharing) o; return Objects.equals(this.actions, arraySharing.actions) && Objects.equals(this.namespace, arraySharing.namespace) && - Objects.equals(this.namespaceType, arraySharing.namespaceType); + Objects.equals(this.namespaceType, arraySharing.namespaceType)&& + Objects.equals(this.additionalProperties, arraySharing.additionalProperties); } @Override public int hashCode() { - return Objects.hash(actions, namespace, namespaceType); + return Objects.hash(actions, namespace, namespaceType, additionalProperties); } @Override @@ -162,6 +198,7 @@ public String toString() { sb.append(" actions: ").append(toIndentedString(actions)).append("\n"); sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); sb.append(" namespaceType: ").append(toIndentedString(namespaceType)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -206,22 +243,14 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in ArraySharing is not found in the empty JSON string", ArraySharing.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!ArraySharing.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ArraySharing` properties. JSON: %s", entry.getKey(), jsonObj.toString())); - } - } // ensure the json data is an array - if (jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonArray()) { + 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").isJsonPrimitive()) { + 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("namespace_type") != null && !jsonObj.get("namespace_type").isJsonPrimitive()) { + if ((jsonObj.get("namespace_type") != null && !jsonObj.get("namespace_type").isJsonNull()) && !jsonObj.get("namespace_type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `namespace_type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace_type").toString())); } } @@ -241,6 +270,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, ArraySharing value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -248,7 +294,25 @@ public void write(JsonWriter out, ArraySharing value) throws IOException { public ArraySharing read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + ArraySharing instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 8a94ae8..1ba04a5 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 @@ -27,7 +27,6 @@ import java.util.ArrayList; import java.util.List; -import io.tiledb.cloud.rest_api.JSON; import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; @@ -37,15 +36,17 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; /** * Synchronous Task to Run */ @ApiModel(description = "Synchronous Task to Run") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class ArrayTask { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -55,6 +56,10 @@ public class ArrayTask { @SerializedName(SERIALIZED_NAME_NAME) private String name; + public static final String SERIALIZED_NAME_USERNAME = "username"; + @SerializedName(SERIALIZED_NAME_USERNAME) + private String username; + public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) private String description; @@ -83,6 +88,10 @@ public class ArrayTask { @SerializedName(SERIALIZED_NAME_STATUS) private ArrayTaskStatus status; + public static final String SERIALIZED_NAME_STATUS_MESSAGE = "status_message"; + @SerializedName(SERIALIZED_NAME_STATUS_MESSAGE) + private String statusMessage; + public static final String SERIALIZED_NAME_START_TIME = "start_time"; @SerializedName(SERIALIZED_NAME_START_TIME) private OffsetDateTime startTime; @@ -155,7 +164,7 @@ public class ArrayTask { @SerializedName(SERIALIZED_NAME_CLIENT_NODE_UUID) private String clientNodeUuid; - public ArrayTask() { + public ArrayTask() { } public ArrayTask id(String id) { @@ -204,6 +213,29 @@ public void setName(String 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; @@ -365,6 +397,29 @@ public void setStatus(ArrayTaskStatus 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; @@ -802,6 +857,41 @@ public void setClientNodeUuid(String clientNodeUuid) { this.clientNodeUuid = clientNodeUuid; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public ArrayTask putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -815,6 +905,7 @@ public boolean equals(Object o) { ArrayTask arrayTask = (ArrayTask) o; return Objects.equals(this.id, arrayTask.id) && Objects.equals(this.name, arrayTask.name) && + Objects.equals(this.username, arrayTask.username) && Objects.equals(this.description, arrayTask.description) && Objects.equals(this.arrayMetadata, arrayTask.arrayMetadata) && Objects.equals(this.subarray, arrayTask.subarray) && @@ -822,6 +913,7 @@ public boolean equals(Object o) { Objects.equals(this.cpu, arrayTask.cpu) && Objects.equals(this.namespace, arrayTask.namespace) && Objects.equals(this.status, arrayTask.status) && + Objects.equals(this.statusMessage, arrayTask.statusMessage) && Objects.equals(this.startTime, arrayTask.startTime) && Objects.equals(this.finishTime, arrayTask.finishTime) && Objects.equals(this.cost, arrayTask.cost) && @@ -839,7 +931,8 @@ 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.additionalProperties, arrayTask.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -848,7 +941,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(id, name, description, arrayMetadata, subarray, memory, cpu, namespace, status, startTime, finishTime, cost, egressCost, accessCost, queryType, udfCode, udfLanguage, sqlQuery, type, activity, logs, duration, sqlInitCommands, sqlParameters, resultFormat, taskGraphUuid, clientNodeUuid); + 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); } private static int hashCodeNullable(JsonNullable a) { @@ -864,6 +957,7 @@ public String toString() { sb.append("class ArrayTask {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" username: ").append(toIndentedString(username)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" arrayMetadata: ").append(toIndentedString(arrayMetadata)).append("\n"); sb.append(" subarray: ").append(toIndentedString(subarray)).append("\n"); @@ -871,6 +965,7 @@ public String toString() { sb.append(" cpu: ").append(toIndentedString(cpu)).append("\n"); sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" statusMessage: ").append(toIndentedString(statusMessage)).append("\n"); sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n"); sb.append(" finishTime: ").append(toIndentedString(finishTime)).append("\n"); sb.append(" cost: ").append(toIndentedString(cost)).append("\n"); @@ -889,6 +984,7 @@ 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(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -913,6 +1009,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(); openapiFields.add("id"); openapiFields.add("name"); + openapiFields.add("username"); openapiFields.add("description"); openapiFields.add("array_metadata"); openapiFields.add("subarray"); @@ -920,6 +1017,7 @@ private String toIndentedString(Object o) { openapiFields.add("cpu"); openapiFields.add("namespace"); openapiFields.add("status"); + openapiFields.add("status_message"); openapiFields.add("start_time"); openapiFields.add("finish_time"); openapiFields.add("cost"); @@ -957,41 +1055,39 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayTask is not found in the empty JSON string", ArrayTask.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!ArrayTask.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ArrayTask` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } - if (jsonObj.get("id") != null && !jsonObj.get("id").isJsonPrimitive()) { + 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").isJsonPrimitive()) { + 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("description") != null && !jsonObj.get("description").isJsonPrimitive()) { + 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("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())); } // validate the optional field `array_metadata` - if (jsonObj.getAsJsonObject("array_metadata") != null) { + if (jsonObj.get("array_metadata") != null && !jsonObj.get("array_metadata").isJsonNull()) { ArrayInfo.validateJsonObject(jsonObj.getAsJsonObject("array_metadata")); } // validate the optional field `subarray` - if (jsonObj.getAsJsonObject("subarray") != null) { + if (jsonObj.get("subarray") != null && !jsonObj.get("subarray").isJsonNull()) { DomainArray.validateJsonObject(jsonObj.getAsJsonObject("subarray")); } - if (jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonPrimitive()) { + 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("udf_code") != null && !jsonObj.get("udf_code").isJsonPrimitive()) { + 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())); + } + 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())); } - if (jsonObj.get("udf_language") != null && !jsonObj.get("udf_language").isJsonPrimitive()) { + if ((jsonObj.get("udf_language") != null && !jsonObj.get("udf_language").isJsonNull()) && !jsonObj.get("udf_language").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `udf_language` to be a primitive type in the JSON string but got `%s`", jsonObj.get("udf_language").toString())); } - if (jsonObj.get("sql_query") != null && !jsonObj.get("sql_query").isJsonPrimitive()) { + 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"); @@ -1006,21 +1102,21 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { ArrayActivityLog.validateJsonObject(jsonArrayactivity.get(i).getAsJsonObject()); }; } - if (jsonObj.get("logs") != null && !jsonObj.get("logs").isJsonPrimitive()) { + 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").isJsonArray()) { + 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").isJsonArray()) { + 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())); } - if (jsonObj.get("task_graph_uuid") != null && !jsonObj.get("task_graph_uuid").isJsonPrimitive()) { + 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").isJsonPrimitive()) { + 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())); } } @@ -1040,6 +1136,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, ArrayTask value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -1047,7 +1160,25 @@ public void write(JsonWriter out, ArrayTask value) throws IOException { public ArrayTask read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + ArrayTask instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 87052a4..f4d5e3a 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 @@ -31,9 +31,9 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; import io.tiledb.cloud.rest_api.JSON; @@ -41,7 +41,7 @@ * Object for ui array tasks browser page */ @ApiModel(description = "Object for ui array tasks browser page") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class ArrayTaskBrowserSidebar { public static final String SERIALIZED_NAME_ORGANIZATIONS = "organizations"; @SerializedName(SERIALIZED_NAME_ORGANIZATIONS) @@ -55,7 +55,7 @@ public class ArrayTaskBrowserSidebar { @SerializedName(SERIALIZED_NAME_RESULT_COUNT_BY_NAMESPACE) private Object resultCountByNamespace; - public ArrayTaskBrowserSidebar() { + public ArrayTaskBrowserSidebar() { } public ArrayTaskBrowserSidebar organizations(List organizations) { @@ -134,6 +134,41 @@ public void setResultCountByNamespace(Object resultCountByNamespace) { this.resultCountByNamespace = resultCountByNamespace; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public ArrayTaskBrowserSidebar putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -147,12 +182,13 @@ public boolean equals(Object o) { ArrayTaskBrowserSidebar arrayTaskBrowserSidebar = (ArrayTaskBrowserSidebar) o; return Objects.equals(this.organizations, arrayTaskBrowserSidebar.organizations) && Objects.equals(this.resultCountForAll, arrayTaskBrowserSidebar.resultCountForAll) && - Objects.equals(this.resultCountByNamespace, arrayTaskBrowserSidebar.resultCountByNamespace); + Objects.equals(this.resultCountByNamespace, arrayTaskBrowserSidebar.resultCountByNamespace)&& + Objects.equals(this.additionalProperties, arrayTaskBrowserSidebar.additionalProperties); } @Override public int hashCode() { - return Objects.hash(organizations, resultCountForAll, resultCountByNamespace); + return Objects.hash(organizations, resultCountForAll, resultCountByNamespace, additionalProperties); } @Override @@ -162,6 +198,7 @@ public String toString() { sb.append(" organizations: ").append(toIndentedString(organizations)).append("\n"); sb.append(" resultCountForAll: ").append(toIndentedString(resultCountForAll)).append("\n"); sb.append(" resultCountByNamespace: ").append(toIndentedString(resultCountByNamespace)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -206,16 +243,8 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayTaskBrowserSidebar is not found in the empty JSON string", ArrayTaskBrowserSidebar.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!ArrayTaskBrowserSidebar.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ArrayTaskBrowserSidebar` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } // ensure the json data is an array - if (jsonObj.get("organizations") != null && !jsonObj.get("organizations").isJsonArray()) { + 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())); } } @@ -235,6 +264,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, ArrayTaskBrowserSidebar value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -242,7 +288,25 @@ public void write(JsonWriter out, ArrayTaskBrowserSidebar value) throws IOExcept public ArrayTaskBrowserSidebar read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + ArrayTaskBrowserSidebar instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 ec2d8f9..da3a4b9 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 @@ -25,8 +25,6 @@ import java.util.ArrayList; import java.util.List; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonArray; import com.google.gson.JsonElement; @@ -34,15 +32,17 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class ArrayTaskData { public static final String SERIALIZED_NAME_ARRAY_TASKS = "array_tasks"; @SerializedName(SERIALIZED_NAME_ARRAY_TASKS) @@ -52,7 +52,7 @@ public class ArrayTaskData { @SerializedName(SERIALIZED_NAME_PAGINATION_METADATA) private PaginationMetadata paginationMetadata; - public ArrayTaskData() { + public ArrayTaskData() { } public ArrayTaskData arrayTasks(List arrayTasks) { @@ -108,6 +108,41 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { this.paginationMetadata = paginationMetadata; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public ArrayTaskData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -120,12 +155,13 @@ public boolean equals(Object o) { } ArrayTaskData arrayTaskData = (ArrayTaskData) o; return Objects.equals(this.arrayTasks, arrayTaskData.arrayTasks) && - Objects.equals(this.paginationMetadata, arrayTaskData.paginationMetadata); + Objects.equals(this.paginationMetadata, arrayTaskData.paginationMetadata)&& + Objects.equals(this.additionalProperties, arrayTaskData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(arrayTasks, paginationMetadata); + return Objects.hash(arrayTasks, paginationMetadata, additionalProperties); } @Override @@ -134,6 +170,7 @@ public String toString() { sb.append("class ArrayTaskData {\n"); sb.append(" arrayTasks: ").append(toIndentedString(arrayTasks)).append("\n"); sb.append(" paginationMetadata: ").append(toIndentedString(paginationMetadata)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -177,14 +214,6 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayTaskData is not found in the empty JSON string", ArrayTaskData.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!ArrayTaskData.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ArrayTaskData` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } JsonArray jsonArrayarrayTasks = jsonObj.getAsJsonArray("array_tasks"); if (jsonArrayarrayTasks != null) { // ensure the json data is an array @@ -198,7 +227,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { }; } // validate the optional field `pagination_metadata` - if (jsonObj.getAsJsonObject("pagination_metadata") != null) { + if (jsonObj.get("pagination_metadata") != null && !jsonObj.get("pagination_metadata").isJsonNull()) { PaginationMetadata.validateJsonObject(jsonObj.getAsJsonObject("pagination_metadata")); } } @@ -218,6 +247,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, ArrayTaskData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -225,7 +271,25 @@ public void write(JsonWriter out, ArrayTaskData value) throws IOException { public ArrayTaskData read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + ArrayTaskData instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 685fe93..7e26d23 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 @@ -29,9 +29,9 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; import io.tiledb.cloud.rest_api.JSON; @@ -39,7 +39,7 @@ * Array task stderr/stdout logs */ @ApiModel(description = "Array task stderr/stdout logs") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class ArrayTaskLog { public static final String SERIALIZED_NAME_ARRAY_TASK_ID = "array_task_id"; @SerializedName(SERIALIZED_NAME_ARRAY_TASK_ID) @@ -49,7 +49,7 @@ public class ArrayTaskLog { @SerializedName(SERIALIZED_NAME_LOGS) private String logs; - public ArrayTaskLog() { + public ArrayTaskLog() { } public ArrayTaskLog arrayTaskId(String arrayTaskId) { @@ -97,6 +97,41 @@ public void setLogs(String logs) { this.logs = logs; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public ArrayTaskLog putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -109,12 +144,13 @@ public boolean equals(Object o) { } ArrayTaskLog arrayTaskLog = (ArrayTaskLog) o; return Objects.equals(this.arrayTaskId, arrayTaskLog.arrayTaskId) && - Objects.equals(this.logs, arrayTaskLog.logs); + Objects.equals(this.logs, arrayTaskLog.logs)&& + Objects.equals(this.additionalProperties, arrayTaskLog.additionalProperties); } @Override public int hashCode() { - return Objects.hash(arrayTaskId, logs); + return Objects.hash(arrayTaskId, logs, additionalProperties); } @Override @@ -123,6 +159,7 @@ public String toString() { sb.append("class ArrayTaskLog {\n"); sb.append(" arrayTaskId: ").append(toIndentedString(arrayTaskId)).append("\n"); sb.append(" logs: ").append(toIndentedString(logs)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -166,18 +203,10 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayTaskLog is not found in the empty JSON string", ArrayTaskLog.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!ArrayTaskLog.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ArrayTaskLog` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } - if (jsonObj.get("array_task_id") != null && !jsonObj.get("array_task_id").isJsonPrimitive()) { + 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())); } - if (jsonObj.get("logs") != null && !jsonObj.get("logs").isJsonPrimitive()) { + 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())); } } @@ -197,6 +226,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, ArrayTaskLog value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -204,7 +250,25 @@ public void write(JsonWriter out, ArrayTaskLog value) throws IOException { public ArrayTaskLog read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + ArrayTaskLog instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 7c9c2df..0c9ee94 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 @@ -33,6 +33,8 @@ public enum ArrayTaskType { GENERIC_UDF("GENERIC_UDF"), + BATCH_UDF("BATCH_UDF"), + CLIENT_COMPUTATION("CLIENT_COMPUTATION"); private String 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 new file mode 100644 index 0000000..b0dbffa --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/ArrayVacuumRequest.java @@ -0,0 +1,266 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.2.19 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + +import java.util.Objects; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +import com.google.gson.Gson; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * Request to 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]") +public class ArrayVacuumRequest { + public static final String SERIALIZED_NAME_CONFIG = "config"; + @SerializedName(SERIALIZED_NAME_CONFIG) + private TileDBConfig config; + + 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; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public ArrayVacuumRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ArrayVacuumRequest arrayVacuumRequest = (ArrayVacuumRequest) o; + return Objects.equals(this.config, arrayVacuumRequest.config)&& + Objects.equals(this.additionalProperties, arrayVacuumRequest.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(config, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ArrayVacuumRequest {\n"); + sb.append(" config: ").append(toIndentedString(config)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("config"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ArrayVacuumRequest + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (ArrayVacuumRequest.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayVacuumRequest is not found in the empty JSON string", ArrayVacuumRequest.openapiRequiredFields.toString())); + } + } + // validate the optional field `config` + if (jsonObj.get("config") != null && !jsonObj.get("config").isJsonNull()) { + TileDBConfig.validateJsonObject(jsonObj.getAsJsonObject("config")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ArrayVacuumRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ArrayVacuumRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ArrayVacuumRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ArrayVacuumRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public ArrayVacuumRequest read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + ArrayVacuumRequest instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of 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 + */ + 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 new file mode 100644 index 0000000..205ecf4 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/AssetLocations.java @@ -0,0 +1,470 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.2.19 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + +import java.util.Objects; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +import com.google.gson.Gson; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * 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]") +public class AssetLocations { + public static final String SERIALIZED_NAME_ARRAYS = "arrays"; + @SerializedName(SERIALIZED_NAME_ARRAYS) + private StorageLocation arrays; + + public static final String SERIALIZED_NAME_FILES = "files"; + @SerializedName(SERIALIZED_NAME_FILES) + private StorageLocation files; + + public static final String SERIALIZED_NAME_GROUPS = "groups"; + @SerializedName(SERIALIZED_NAME_GROUPS) + private StorageLocation groups; + + public static final String SERIALIZED_NAME_ML_MODELS = "ml_models"; + @SerializedName(SERIALIZED_NAME_ML_MODELS) + private StorageLocation mlModels; + + public static final String SERIALIZED_NAME_NOTEBOOKS = "notebooks"; + @SerializedName(SERIALIZED_NAME_NOTEBOOKS) + private StorageLocation notebooks; + + public static final String SERIALIZED_NAME_TASK_GRAPHS = "task_graphs"; + @SerializedName(SERIALIZED_NAME_TASK_GRAPHS) + private StorageLocation taskGraphs; + + public static final String SERIALIZED_NAME_UDFS = "udfs"; + @SerializedName(SERIALIZED_NAME_UDFS) + private StorageLocation udfs; + + 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; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public AssetLocations putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AssetLocations assetLocations = (AssetLocations) o; + return Objects.equals(this.arrays, assetLocations.arrays) && + Objects.equals(this.files, assetLocations.files) && + Objects.equals(this.groups, assetLocations.groups) && + Objects.equals(this.mlModels, assetLocations.mlModels) && + Objects.equals(this.notebooks, assetLocations.notebooks) && + Objects.equals(this.taskGraphs, assetLocations.taskGraphs) && + Objects.equals(this.udfs, assetLocations.udfs)&& + Objects.equals(this.additionalProperties, assetLocations.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(arrays, files, groups, mlModels, notebooks, taskGraphs, udfs, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AssetLocations {\n"); + sb.append(" arrays: ").append(toIndentedString(arrays)).append("\n"); + sb.append(" files: ").append(toIndentedString(files)).append("\n"); + sb.append(" groups: ").append(toIndentedString(groups)).append("\n"); + sb.append(" mlModels: ").append(toIndentedString(mlModels)).append("\n"); + sb.append(" notebooks: ").append(toIndentedString(notebooks)).append("\n"); + sb.append(" taskGraphs: ").append(toIndentedString(taskGraphs)).append("\n"); + sb.append(" udfs: ").append(toIndentedString(udfs)).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("arrays"); + openapiFields.add("files"); + openapiFields.add("groups"); + openapiFields.add("ml_models"); + openapiFields.add("notebooks"); + openapiFields.add("task_graphs"); + openapiFields.add("udfs"); + + // 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 AssetLocations + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (AssetLocations.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in AssetLocations is not found in the empty JSON string", AssetLocations.openapiRequiredFields.toString())); + } + } + // validate the optional field `arrays` + if (jsonObj.get("arrays") != null && !jsonObj.get("arrays").isJsonNull()) { + StorageLocation.validateJsonObject(jsonObj.getAsJsonObject("arrays")); + } + // validate the optional field `files` + if (jsonObj.get("files") != null && !jsonObj.get("files").isJsonNull()) { + StorageLocation.validateJsonObject(jsonObj.getAsJsonObject("files")); + } + // validate the optional field `groups` + if (jsonObj.get("groups") != null && !jsonObj.get("groups").isJsonNull()) { + StorageLocation.validateJsonObject(jsonObj.getAsJsonObject("groups")); + } + // validate the optional field `ml_models` + if (jsonObj.get("ml_models") != null && !jsonObj.get("ml_models").isJsonNull()) { + StorageLocation.validateJsonObject(jsonObj.getAsJsonObject("ml_models")); + } + // validate the optional field `notebooks` + if (jsonObj.get("notebooks") != null && !jsonObj.get("notebooks").isJsonNull()) { + StorageLocation.validateJsonObject(jsonObj.getAsJsonObject("notebooks")); + } + // validate the optional field `task_graphs` + if (jsonObj.get("task_graphs") != null && !jsonObj.get("task_graphs").isJsonNull()) { + StorageLocation.validateJsonObject(jsonObj.getAsJsonObject("task_graphs")); + } + // validate the optional field `udfs` + if (jsonObj.get("udfs") != null && !jsonObj.get("udfs").isJsonNull()) { + StorageLocation.validateJsonObject(jsonObj.getAsJsonObject("udfs")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!AssetLocations.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AssetLocations' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AssetLocations.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AssetLocations value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public AssetLocations read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + AssetLocations instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of 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 + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + 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 new file mode 100644 index 0000000..6264c63 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/AssetType.java @@ -0,0 +1,95 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.2.19 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + +import java.io.IOException; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; + +/** + * Asset types represented as TileDB arrays + */ +@JsonAdapter(AssetType.Adapter.class) +public enum AssetType { + + ARRAY("array"), + + NOTEBOOK("notebook"), + + DASHBOARD("dashboard"), + + USER_DEFINED_FUNCTION("user_defined_function"), + + ML_MODEL("ml_model"), + + FILE("file"), + + REGISTERED_TASK_GRAPH("registered_task_graph"), + + GROUP("group"), + + VCF("vcf"), + + SOMA("soma"), + + POINTCLOUD("pointcloud"), + + BIOIMG("bioimg"), + + GEOMETRY("geometry"), + + RASTER("raster"), + + VECTOR_SEARCH("vector_search"); + + private String value; + + AssetType(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static AssetType fromValue(String value) { + for (AssetType b : AssetType.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 AssetType enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public AssetType read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return 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 7c138fc..a441375 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 @@ -25,23 +25,23 @@ import java.util.ArrayList; import java.util.List; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class Attribute { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -67,7 +67,7 @@ public class Attribute { @SerializedName(SERIALIZED_NAME_FILL_VALUE) private List fillValue = null; - public Attribute() { + public Attribute() { } public Attribute name(String name) { @@ -215,6 +215,41 @@ public void setFillValue(List fillValue) { this.fillValue = fillValue; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public Attribute putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -231,12 +266,13 @@ public boolean equals(Object o) { Objects.equals(this.filterPipeline, attribute.filterPipeline) && Objects.equals(this.cellValNum, attribute.cellValNum) && Objects.equals(this.nullable, attribute.nullable) && - Objects.equals(this.fillValue, attribute.fillValue); + Objects.equals(this.fillValue, attribute.fillValue)&& + Objects.equals(this.additionalProperties, attribute.additionalProperties); } @Override public int hashCode() { - return Objects.hash(name, type, filterPipeline, cellValNum, nullable, fillValue); + return Objects.hash(name, type, filterPipeline, cellValNum, nullable, fillValue, additionalProperties); } @Override @@ -249,6 +285,7 @@ public String toString() { sb.append(" cellValNum: ").append(toIndentedString(cellValNum)).append("\n"); sb.append(" nullable: ").append(toIndentedString(nullable)).append("\n"); sb.append(" fillValue: ").append(toIndentedString(fillValue)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -301,29 +338,21 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { } } - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!Attribute.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `Attribute` properties. JSON: %s", entry.getKey(), jsonObj.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 (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { + 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 `filterPipeline` - if (jsonObj.getAsJsonObject("filterPipeline") != null) { + 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").isJsonArray()) { + 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())); } } @@ -343,6 +372,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, Attribute value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -350,7 +396,25 @@ public void write(JsonWriter out, Attribute value) throws IOException { public Attribute read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + Attribute instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 887db3a..796d0cf 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 @@ -29,9 +29,9 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; import io.tiledb.cloud.rest_api.JSON; @@ -39,7 +39,7 @@ * Represents an attribute buffer header information */ @ApiModel(description = "Represents an attribute buffer header information") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class AttributeBufferHeader { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -53,7 +53,7 @@ public class AttributeBufferHeader { @SerializedName(SERIALIZED_NAME_VAR_LEN_BUFFER_SIZE_IN_BYTES) private Integer varLenBufferSizeInBytes; - public AttributeBufferHeader() { + public AttributeBufferHeader() { } public AttributeBufferHeader name(String name) { @@ -124,6 +124,41 @@ public void setVarLenBufferSizeInBytes(Integer varLenBufferSizeInBytes) { this.varLenBufferSizeInBytes = varLenBufferSizeInBytes; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public AttributeBufferHeader putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -137,12 +172,13 @@ public boolean equals(Object o) { AttributeBufferHeader attributeBufferHeader = (AttributeBufferHeader) o; return Objects.equals(this.name, attributeBufferHeader.name) && Objects.equals(this.fixedLenBufferSizeInBytes, attributeBufferHeader.fixedLenBufferSizeInBytes) && - Objects.equals(this.varLenBufferSizeInBytes, attributeBufferHeader.varLenBufferSizeInBytes); + Objects.equals(this.varLenBufferSizeInBytes, attributeBufferHeader.varLenBufferSizeInBytes)&& + Objects.equals(this.additionalProperties, attributeBufferHeader.additionalProperties); } @Override public int hashCode() { - return Objects.hash(name, fixedLenBufferSizeInBytes, varLenBufferSizeInBytes); + return Objects.hash(name, fixedLenBufferSizeInBytes, varLenBufferSizeInBytes, additionalProperties); } @Override @@ -152,6 +188,7 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" fixedLenBufferSizeInBytes: ").append(toIndentedString(fixedLenBufferSizeInBytes)).append("\n"); sb.append(" varLenBufferSizeInBytes: ").append(toIndentedString(varLenBufferSizeInBytes)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -200,21 +237,13 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { } } - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!AttributeBufferHeader.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AttributeBufferHeader` properties. JSON: %s", entry.getKey(), jsonObj.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 (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { + 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())); } } @@ -234,6 +263,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, AttributeBufferHeader value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -241,7 +287,25 @@ public void write(JsonWriter out, AttributeBufferHeader value) throws IOExceptio public AttributeBufferHeader read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + AttributeBufferHeader instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 74f012d..df7d41f 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 @@ -29,9 +29,9 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; import io.tiledb.cloud.rest_api.JSON; @@ -39,7 +39,7 @@ * object representing buffer size of an attribute */ @ApiModel(description = "object representing buffer size of an attribute") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class AttributeBufferSize { public static final String SERIALIZED_NAME_ATTRIBUTE = "attribute"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE) @@ -53,7 +53,7 @@ public class AttributeBufferSize { @SerializedName(SERIALIZED_NAME_DATA_BYTES) private Integer dataBytes; - public AttributeBufferSize() { + public AttributeBufferSize() { } public AttributeBufferSize attribute(String attribute) { @@ -124,6 +124,41 @@ public void setDataBytes(Integer dataBytes) { this.dataBytes = dataBytes; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public AttributeBufferSize putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -137,12 +172,13 @@ public boolean equals(Object o) { AttributeBufferSize attributeBufferSize = (AttributeBufferSize) o; return Objects.equals(this.attribute, attributeBufferSize.attribute) && Objects.equals(this.offsetBytes, attributeBufferSize.offsetBytes) && - Objects.equals(this.dataBytes, attributeBufferSize.dataBytes); + Objects.equals(this.dataBytes, attributeBufferSize.dataBytes)&& + Objects.equals(this.additionalProperties, attributeBufferSize.additionalProperties); } @Override public int hashCode() { - return Objects.hash(attribute, offsetBytes, dataBytes); + return Objects.hash(attribute, offsetBytes, dataBytes, additionalProperties); } @Override @@ -152,6 +188,7 @@ public String toString() { sb.append(" attribute: ").append(toIndentedString(attribute)).append("\n"); sb.append(" offsetBytes: ").append(toIndentedString(offsetBytes)).append("\n"); sb.append(" dataBytes: ").append(toIndentedString(dataBytes)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -200,21 +237,13 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { } } - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!AttributeBufferSize.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AttributeBufferSize` properties. JSON: %s", entry.getKey(), jsonObj.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 (jsonObj.get("attribute") != null && !jsonObj.get("attribute").isJsonPrimitive()) { + if ((jsonObj.get("attribute") != null && !jsonObj.get("attribute").isJsonNull()) && !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())); } } @@ -234,6 +263,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, AttributeBufferSize value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -241,7 +287,25 @@ public void write(JsonWriter out, AttributeBufferSize value) throws IOException public AttributeBufferSize read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + AttributeBufferSize instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 new file mode 100644 index 0000000..b479999 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/Backoff.java @@ -0,0 +1,328 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.2.19 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + +import java.util.Objects; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +import com.google.gson.Gson; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * 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]") +public class Backoff { + public static final String SERIALIZED_NAME_DURATION = "duration"; + @SerializedName(SERIALIZED_NAME_DURATION) + private String duration; + + public static final String SERIALIZED_NAME_FACTOR = "factor"; + @SerializedName(SERIALIZED_NAME_FACTOR) + private Integer factor; + + public static final String SERIALIZED_NAME_MAX_DURATION = "maxDuration"; + @SerializedName(SERIALIZED_NAME_MAX_DURATION) + private String maxDuration; + + 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; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public Backoff putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Backoff backoff = (Backoff) o; + return Objects.equals(this.duration, backoff.duration) && + Objects.equals(this.factor, backoff.factor) && + Objects.equals(this.maxDuration, backoff.maxDuration)&& + Objects.equals(this.additionalProperties, backoff.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(duration, factor, maxDuration, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Backoff {\n"); + sb.append(" duration: ").append(toIndentedString(duration)).append("\n"); + sb.append(" factor: ").append(toIndentedString(factor)).append("\n"); + sb.append(" maxDuration: ").append(toIndentedString(maxDuration)).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("duration"); + openapiFields.add("factor"); + openapiFields.add("maxDuration"); + + // 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 Backoff + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (Backoff.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in Backoff is not found in the empty JSON string", Backoff.openapiRequiredFields.toString())); + } + } + 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())); + } + if ((jsonObj.get("maxDuration") != null && !jsonObj.get("maxDuration").isJsonNull()) && !jsonObj.get("maxDuration").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `maxDuration` to be a primitive type in the JSON string but got `%s`", jsonObj.get("maxDuration").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!Backoff.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Backoff' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(Backoff.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Backoff value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public Backoff read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + Backoff instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of 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 + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + 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 13a89b7..f59148b 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 @@ -23,23 +23,23 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class Dimension { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -65,7 +65,7 @@ public class Dimension { @SerializedName(SERIALIZED_NAME_FILTER_PIPELINE) private FilterPipeline filterPipeline; - public Dimension() { + public Dimension() { } public Dimension name(String name) { @@ -205,6 +205,41 @@ public void setFilterPipeline(FilterPipeline filterPipeline) { this.filterPipeline = filterPipeline; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public Dimension putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -221,12 +256,13 @@ public boolean equals(Object o) { Objects.equals(this.domain, dimension.domain) && Objects.equals(this.nullTileExtent, dimension.nullTileExtent) && Objects.equals(this.tileExtent, dimension.tileExtent) && - Objects.equals(this.filterPipeline, dimension.filterPipeline); + Objects.equals(this.filterPipeline, dimension.filterPipeline)&& + Objects.equals(this.additionalProperties, dimension.additionalProperties); } @Override public int hashCode() { - return Objects.hash(name, type, domain, nullTileExtent, tileExtent, filterPipeline); + return Objects.hash(name, type, domain, nullTileExtent, tileExtent, filterPipeline, additionalProperties); } @Override @@ -239,6 +275,7 @@ public String toString() { sb.append(" nullTileExtent: ").append(toIndentedString(nullTileExtent)).append("\n"); sb.append(" tileExtent: ").append(toIndentedString(tileExtent)).append("\n"); sb.append(" filterPipeline: ").append(toIndentedString(filterPipeline)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -290,33 +327,25 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { } } - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!Dimension.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `Dimension` properties. JSON: %s", entry.getKey(), jsonObj.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 (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { + 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.getAsJsonObject("domain") != null) { + if (jsonObj.get("domain") != null && !jsonObj.get("domain").isJsonNull()) { DomainArray.validateJsonObject(jsonObj.getAsJsonObject("domain")); } // validate the optional field `tileExtent` - if (jsonObj.getAsJsonObject("tileExtent") != null) { + if (jsonObj.get("tileExtent") != null && !jsonObj.get("tileExtent").isJsonNull()) { DimensionTileExtent.validateJsonObject(jsonObj.getAsJsonObject("tileExtent")); } // validate the optional field `filterPipeline` - if (jsonObj.getAsJsonObject("filterPipeline") != null) { + if (jsonObj.get("filterPipeline") != null && !jsonObj.get("filterPipeline").isJsonNull()) { FilterPipeline.validateJsonObject(jsonObj.getAsJsonObject("filterPipeline")); } } @@ -336,6 +365,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, Dimension value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -343,7 +389,25 @@ public void write(JsonWriter out, Dimension value) throws IOException { public Dimension read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + Dimension instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 b8acd5b..7011bd1 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 @@ -29,9 +29,9 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; import io.tiledb.cloud.rest_api.JSON; @@ -39,7 +39,7 @@ * A single, typed coordinate for a dimension */ @ApiModel(description = "A single, typed coordinate for a dimension") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class DimensionCoordinate { public static final String SERIALIZED_NAME_INT8 = "int8"; @SerializedName(SERIALIZED_NAME_INT8) @@ -81,7 +81,7 @@ public class DimensionCoordinate { @SerializedName(SERIALIZED_NAME_FLOAT64) private Double float64; - public DimensionCoordinate() { + public DimensionCoordinate() { } public DimensionCoordinate int8(Integer int8) { @@ -313,6 +313,41 @@ public void setFloat64(Double float64) { this.float64 = float64; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public DimensionCoordinate putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -333,12 +368,13 @@ public boolean equals(Object o) { Objects.equals(this.int64, dimensionCoordinate.int64) && Objects.equals(this.uint64, dimensionCoordinate.uint64) && Objects.equals(this.float32, dimensionCoordinate.float32) && - Objects.equals(this.float64, dimensionCoordinate.float64); + Objects.equals(this.float64, dimensionCoordinate.float64)&& + Objects.equals(this.additionalProperties, dimensionCoordinate.additionalProperties); } @Override public int hashCode() { - return Objects.hash(int8, uint8, int16, uint16, int32, uint32, int64, uint64, float32, float64); + return Objects.hash(int8, uint8, int16, uint16, int32, uint32, int64, uint64, float32, float64, additionalProperties); } @Override @@ -355,6 +391,7 @@ public String toString() { sb.append(" uint64: ").append(toIndentedString(uint64)).append("\n"); sb.append(" float32: ").append(toIndentedString(float32)).append("\n"); sb.append(" float64: ").append(toIndentedString(float64)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -406,14 +443,6 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in DimensionCoordinate is not found in the empty JSON string", DimensionCoordinate.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!DimensionCoordinate.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `DimensionCoordinate` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -431,6 +460,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, DimensionCoordinate value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -438,7 +484,25 @@ public void write(JsonWriter out, DimensionCoordinate value) throws IOException public DimensionCoordinate read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + DimensionCoordinate instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 a5d80dc..5d7de43 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 @@ -29,9 +29,9 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; import io.tiledb.cloud.rest_api.JSON; @@ -39,7 +39,7 @@ * Extent of tile */ @ApiModel(description = "Extent of tile") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class DimensionTileExtent { public static final String SERIALIZED_NAME_INT8 = "int8"; @SerializedName(SERIALIZED_NAME_INT8) @@ -81,7 +81,7 @@ public class DimensionTileExtent { @SerializedName(SERIALIZED_NAME_FLOAT64) private Integer float64; - public DimensionTileExtent() { + public DimensionTileExtent() { } public DimensionTileExtent int8(Integer int8) { @@ -313,6 +313,41 @@ public void setFloat64(Integer float64) { this.float64 = float64; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public DimensionTileExtent putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -333,12 +368,13 @@ public boolean equals(Object o) { Objects.equals(this.int64, dimensionTileExtent.int64) && Objects.equals(this.uint64, dimensionTileExtent.uint64) && Objects.equals(this.float32, dimensionTileExtent.float32) && - Objects.equals(this.float64, dimensionTileExtent.float64); + Objects.equals(this.float64, dimensionTileExtent.float64)&& + Objects.equals(this.additionalProperties, dimensionTileExtent.additionalProperties); } @Override public int hashCode() { - return Objects.hash(int8, uint8, int16, uint16, int32, uint32, int64, uint64, float32, float64); + return Objects.hash(int8, uint8, int16, uint16, int32, uint32, int64, uint64, float32, float64, additionalProperties); } @Override @@ -355,6 +391,7 @@ public String toString() { sb.append(" uint64: ").append(toIndentedString(uint64)).append("\n"); sb.append(" float32: ").append(toIndentedString(float32)).append("\n"); sb.append(" float64: ").append(toIndentedString(float64)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -406,14 +443,6 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in DimensionTileExtent is not found in the empty JSON string", DimensionTileExtent.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!DimensionTileExtent.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `DimensionTileExtent` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -431,6 +460,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, DimensionTileExtent value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -438,7 +484,25 @@ public void write(JsonWriter out, DimensionTileExtent value) throws IOException public DimensionTileExtent read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + DimensionTileExtent instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 5697c3f..d6b6a15 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 @@ -32,9 +32,9 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; import io.tiledb.cloud.rest_api.JSON; @@ -42,7 +42,7 @@ * Domain of array */ @ApiModel(description = "Domain of array") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class Domain { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -60,7 +60,7 @@ public class Domain { @SerializedName(SERIALIZED_NAME_DIMENSIONS) private List dimensions = new ArrayList<>(); - public Domain() { + public Domain() { } public Domain type(Datatype type) { @@ -159,6 +159,41 @@ public void setDimensions(List dimensions) { this.dimensions = dimensions; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public Domain putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -173,12 +208,13 @@ public boolean equals(Object o) { return Objects.equals(this.type, domain.type) && Objects.equals(this.tileOrder, domain.tileOrder) && Objects.equals(this.cellOrder, domain.cellOrder) && - Objects.equals(this.dimensions, domain.dimensions); + Objects.equals(this.dimensions, domain.dimensions)&& + Objects.equals(this.additionalProperties, domain.additionalProperties); } @Override public int hashCode() { - return Objects.hash(type, tileOrder, cellOrder, dimensions); + return Objects.hash(type, tileOrder, cellOrder, dimensions, additionalProperties); } @Override @@ -189,6 +225,7 @@ public String toString() { sb.append(" tileOrder: ").append(toIndentedString(tileOrder)).append("\n"); sb.append(" cellOrder: ").append(toIndentedString(cellOrder)).append("\n"); sb.append(" dimensions: ").append(toIndentedString(dimensions)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -239,14 +276,6 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { } } - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!Domain.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `Domain` properties. JSON: %s", entry.getKey(), jsonObj.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) { @@ -282,6 +311,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, Domain value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -289,7 +335,25 @@ public void write(JsonWriter out, Domain value) throws IOException { public Domain read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + Domain instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 601b404..864474a 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 @@ -31,9 +31,9 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; import io.tiledb.cloud.rest_api.JSON; @@ -41,7 +41,7 @@ * Domain object for an array of each type */ @ApiModel(description = "Domain object for an array of each type") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class DomainArray { public static final String SERIALIZED_NAME_INT8 = "int8"; @SerializedName(SERIALIZED_NAME_INT8) @@ -83,7 +83,7 @@ public class DomainArray { @SerializedName(SERIALIZED_NAME_FLOAT64) private List float64 = null; - public DomainArray() { + public DomainArray() { } public DomainArray int8(List int8) { @@ -395,6 +395,41 @@ public void setFloat64(List float64) { this.float64 = float64; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public DomainArray putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -415,12 +450,13 @@ public boolean equals(Object o) { Objects.equals(this.int64, domainArray.int64) && Objects.equals(this.uint64, domainArray.uint64) && Objects.equals(this.float32, domainArray.float32) && - Objects.equals(this.float64, domainArray.float64); + Objects.equals(this.float64, domainArray.float64)&& + Objects.equals(this.additionalProperties, domainArray.additionalProperties); } @Override public int hashCode() { - return Objects.hash(int8, uint8, int16, uint16, int32, uint32, int64, uint64, float32, float64); + return Objects.hash(int8, uint8, int16, uint16, int32, uint32, int64, uint64, float32, float64, additionalProperties); } @Override @@ -437,6 +473,7 @@ public String toString() { sb.append(" uint64: ").append(toIndentedString(uint64)).append("\n"); sb.append(" float32: ").append(toIndentedString(float32)).append("\n"); sb.append(" float64: ").append(toIndentedString(float64)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -488,52 +525,44 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in DomainArray is not found in the empty JSON string", DomainArray.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!DomainArray.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `DomainArray` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } // ensure the json data is an array - if (jsonObj.get("int8") != null && !jsonObj.get("int8").isJsonArray()) { + 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").isJsonArray()) { + 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").isJsonArray()) { + 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").isJsonArray()) { + 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").isJsonArray()) { + 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").isJsonArray()) { + 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").isJsonArray()) { + 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").isJsonArray()) { + 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").isJsonArray()) { + 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").isJsonArray()) { + 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())); } } @@ -553,6 +582,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, DomainArray value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -560,7 +606,25 @@ public void write(JsonWriter out, DomainArray value) throws IOException { public DomainArray read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + DomainArray instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 new file mode 100644 index 0000000..07d164f --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/DomainCheckResult.java @@ -0,0 +1,293 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.2.19 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + +import java.util.Objects; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.time.OffsetDateTime; + +import com.google.gson.Gson; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * 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]") +public class DomainCheckResult { + public static final String SERIALIZED_NAME_TIME = "time"; + @SerializedName(SERIALIZED_NAME_TIME) + private OffsetDateTime time; + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + private DomainCheckStatus status; + + 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; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public DomainCheckResult putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DomainCheckResult domainCheckResult = (DomainCheckResult) o; + return Objects.equals(this.time, domainCheckResult.time) && + Objects.equals(this.status, domainCheckResult.status)&& + Objects.equals(this.additionalProperties, domainCheckResult.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(time, status, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DomainCheckResult {\n"); + sb.append(" time: ").append(toIndentedString(time)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).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("time"); + openapiFields.add("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 DomainCheckResult + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (DomainCheckResult.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in DomainCheckResult is not found in the empty JSON string", DomainCheckResult.openapiRequiredFields.toString())); + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!DomainCheckResult.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DomainCheckResult' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DomainCheckResult.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DomainCheckResult value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public DomainCheckResult read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + DomainCheckResult instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of 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 + */ + 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 new file mode 100644 index 0000000..4a95b20 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/DomainCheckStatus.java @@ -0,0 +1,71 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.2.19 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + +import java.io.IOException; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; + +/** + * The status of a single check on a domain's status. + */ +@JsonAdapter(DomainCheckStatus.Adapter.class) +public enum DomainCheckStatus { + + VERIFIED("verified"), + + FAILED("failed"), + + ERROR("error"); + + private String value; + + DomainCheckStatus(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static DomainCheckStatus fromValue(String value) { + for (DomainCheckStatus b : DomainCheckStatus.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 DomainCheckStatus enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public DomainCheckStatus read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return 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 new file mode 100644 index 0000000..f88c59c --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/DomainVerificationStatus.java @@ -0,0 +1,73 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.2.19 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + +import java.io.IOException; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; + +/** + * The current status of the claim on the domain. + */ +@JsonAdapter(DomainVerificationStatus.Adapter.class) +public enum DomainVerificationStatus { + + UNVERIFIED("unverified"), + + VERIFIED("verified"), + + GRACE_PERIOD("grace_period"), + + FAILED("failed"); + + private String value; + + DomainVerificationStatus(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static DomainVerificationStatus fromValue(String value) { + for (DomainVerificationStatus b : DomainVerificationStatus.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 DomainVerificationStatus enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public DomainVerificationStatus read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return DomainVerificationStatus.fromValue(value); + } + } +} + 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 db802ea..2189a99 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 @@ -28,16 +28,16 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; import io.tiledb.cloud.rest_api.JSON; /** * Error */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class Error { public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) @@ -51,7 +51,7 @@ public class Error { @SerializedName(SERIALIZED_NAME_REQUEST_ID) private String requestId; - public Error() { + public Error() { } public Error code(Long code) { @@ -122,6 +122,41 @@ public void setRequestId(String requestId) { this.requestId = requestId; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public Error putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -135,12 +170,13 @@ public boolean equals(Object o) { Error error = (Error) o; return Objects.equals(this.code, error.code) && Objects.equals(this.message, error.message) && - Objects.equals(this.requestId, error.requestId); + Objects.equals(this.requestId, error.requestId)&& + Objects.equals(this.additionalProperties, error.additionalProperties); } @Override public int hashCode() { - return Objects.hash(code, message, requestId); + return Objects.hash(code, message, requestId, additionalProperties); } @Override @@ -150,6 +186,7 @@ public String toString() { sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" message: ").append(toIndentedString(message)).append("\n"); sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -194,18 +231,10 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in Error is not found in the empty JSON string", Error.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!Error.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `Error` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } - if (jsonObj.get("message") != null && !jsonObj.get("message").isJsonPrimitive()) { + 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())); } - if (jsonObj.get("request_id") != null && !jsonObj.get("request_id").isJsonPrimitive()) { + if ((jsonObj.get("request_id") != null && !jsonObj.get("request_id").isJsonNull()) && !jsonObj.get("request_id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `request_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("request_id").toString())); } } @@ -225,6 +254,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, Error value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -232,7 +278,25 @@ public void write(JsonWriter out, Error value) throws IOException { public Error read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + Error instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 f7f4458..f59ce78 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 @@ -29,9 +29,9 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; import io.tiledb.cloud.rest_api.JSON; @@ -39,7 +39,7 @@ * Input/Output information required to create a new file */ @ApiModel(description = "Input/Output information required to create a new file") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class FileCreate { public static final String SERIALIZED_NAME_INPUT_URI = "input_uri"; @SerializedName(SERIALIZED_NAME_INPUT_URI) @@ -53,7 +53,7 @@ public class FileCreate { @SerializedName(SERIALIZED_NAME_NAME) private String name; - public FileCreate() { + public FileCreate() { } public FileCreate inputUri(String inputUri) { @@ -124,6 +124,41 @@ public void setName(String name) { this.name = name; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public FileCreate putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -137,12 +172,13 @@ public boolean equals(Object o) { FileCreate fileCreate = (FileCreate) o; return Objects.equals(this.inputUri, fileCreate.inputUri) && Objects.equals(this.outputUri, fileCreate.outputUri) && - Objects.equals(this.name, fileCreate.name); + Objects.equals(this.name, fileCreate.name)&& + Objects.equals(this.additionalProperties, fileCreate.additionalProperties); } @Override public int hashCode() { - return Objects.hash(inputUri, outputUri, name); + return Objects.hash(inputUri, outputUri, name, additionalProperties); } @Override @@ -152,6 +188,7 @@ public String toString() { sb.append(" inputUri: ").append(toIndentedString(inputUri)).append("\n"); sb.append(" outputUri: ").append(toIndentedString(outputUri)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -196,21 +233,13 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in FileCreate is not found in the empty JSON string", FileCreate.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!FileCreate.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `FileCreate` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } - if (jsonObj.get("input_uri") != null && !jsonObj.get("input_uri").isJsonPrimitive()) { + 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())); } - if (jsonObj.get("output_uri") != null && !jsonObj.get("output_uri").isJsonPrimitive()) { + 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("name") != null && !jsonObj.get("name").isJsonPrimitive()) { + 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())); } } @@ -230,6 +259,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, FileCreate value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -237,7 +283,25 @@ public void write(JsonWriter out, FileCreate value) throws IOException { public FileCreate read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + FileCreate instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 2cd1357..4065473 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 @@ -29,9 +29,9 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; import io.tiledb.cloud.rest_api.JSON; @@ -39,7 +39,7 @@ * Created file name and information */ @ApiModel(description = "Created file name and information") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class FileCreated { public static final String SERIALIZED_NAME_OUTPUT_URI = "output_uri"; @SerializedName(SERIALIZED_NAME_OUTPUT_URI) @@ -49,7 +49,7 @@ public class FileCreated { @SerializedName(SERIALIZED_NAME_FILE_NAME) private String fileName; - public FileCreated() { + public FileCreated() { } public FileCreated outputUri(String outputUri) { @@ -97,6 +97,41 @@ public void setFileName(String fileName) { this.fileName = fileName; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public FileCreated putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -109,12 +144,13 @@ public boolean equals(Object o) { } FileCreated fileCreated = (FileCreated) o; return Objects.equals(this.outputUri, fileCreated.outputUri) && - Objects.equals(this.fileName, fileCreated.fileName); + Objects.equals(this.fileName, fileCreated.fileName)&& + Objects.equals(this.additionalProperties, fileCreated.additionalProperties); } @Override public int hashCode() { - return Objects.hash(outputUri, fileName); + return Objects.hash(outputUri, fileName, additionalProperties); } @Override @@ -123,6 +159,7 @@ public String toString() { sb.append("class FileCreated {\n"); sb.append(" outputUri: ").append(toIndentedString(outputUri)).append("\n"); sb.append(" fileName: ").append(toIndentedString(fileName)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -166,18 +203,10 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in FileCreated is not found in the empty JSON string", FileCreated.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!FileCreated.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `FileCreated` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } - if (jsonObj.get("output_uri") != null && !jsonObj.get("output_uri").isJsonPrimitive()) { + 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").isJsonPrimitive()) { + 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())); } } @@ -197,6 +226,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, FileCreated value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -204,7 +250,25 @@ public void write(JsonWriter out, FileCreated value) throws IOException { public FileCreated read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + FileCreated instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 aa39cfa..5dcc4bc 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 @@ -29,9 +29,9 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; import io.tiledb.cloud.rest_api.JSON; @@ -39,13 +39,13 @@ * 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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class FileExport { public static final String SERIALIZED_NAME_OUTPUT_URI = "output_uri"; @SerializedName(SERIALIZED_NAME_OUTPUT_URI) private String outputUri; - public FileExport() { + public FileExport() { } public FileExport outputUri(String outputUri) { @@ -70,6 +70,41 @@ public void setOutputUri(String outputUri) { this.outputUri = outputUri; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public FileExport putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -81,12 +116,13 @@ public boolean equals(Object o) { return false; } FileExport fileExport = (FileExport) o; - return Objects.equals(this.outputUri, fileExport.outputUri); + return Objects.equals(this.outputUri, fileExport.outputUri)&& + Objects.equals(this.additionalProperties, fileExport.additionalProperties); } @Override public int hashCode() { - return Objects.hash(outputUri); + return Objects.hash(outputUri, additionalProperties); } @Override @@ -94,6 +130,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FileExport {\n"); sb.append(" outputUri: ").append(toIndentedString(outputUri)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -136,15 +173,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in FileExport is not found in the empty JSON string", FileExport.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!FileExport.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `FileExport` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } - if (jsonObj.get("output_uri") != null && !jsonObj.get("output_uri").isJsonPrimitive()) { + 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())); } } @@ -164,6 +193,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, FileExport value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -171,7 +217,25 @@ public void write(JsonWriter out, FileExport value) throws IOException { public FileExport read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + FileExport instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 3643165..427c35a 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 @@ -29,9 +29,9 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; import io.tiledb.cloud.rest_api.JSON; @@ -39,13 +39,13 @@ * Output uri of the exported file */ @ApiModel(description = "Output uri of the exported file") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class FileExported { public static final String SERIALIZED_NAME_OUTPUT_URI = "output_uri"; @SerializedName(SERIALIZED_NAME_OUTPUT_URI) private String outputUri; - public FileExported() { + public FileExported() { } public FileExported outputUri(String outputUri) { @@ -70,6 +70,41 @@ public void setOutputUri(String outputUri) { this.outputUri = outputUri; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public FileExported putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -81,12 +116,13 @@ public boolean equals(Object o) { return false; } FileExported fileExported = (FileExported) o; - return Objects.equals(this.outputUri, fileExported.outputUri); + return Objects.equals(this.outputUri, fileExported.outputUri)&& + Objects.equals(this.additionalProperties, fileExported.additionalProperties); } @Override public int hashCode() { - return Objects.hash(outputUri); + return Objects.hash(outputUri, additionalProperties); } @Override @@ -94,6 +130,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FileExported {\n"); sb.append(" outputUri: ").append(toIndentedString(outputUri)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -136,15 +173,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in FileExported is not found in the empty JSON string", FileExported.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!FileExported.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `FileExported` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } - if (jsonObj.get("output_uri") != null && !jsonObj.get("output_uri").isJsonPrimitive()) { + 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())); } } @@ -164,6 +193,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, FileExported value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -171,7 +217,25 @@ public void write(JsonWriter out, FileExported value) throws IOException { public FileExported read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + FileExported instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 8849849..b6a0be4 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 @@ -33,7 +33,11 @@ public enum FilePropertyName { UDF_LANGUAGE("udf_language"), - IS_DASHBOARD("is_dashboard"); + IS_DASHBOARD("is_dashboard"), + + VERSION_PRUNING_LIMIT("version_pruning_limit"), + + VERSION_PRUNING_ENABLED("version_pruning_enabled"); private String 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 4293453..c77dcad 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 @@ -29,9 +29,9 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; import io.tiledb.cloud.rest_api.JSON; @@ -39,7 +39,7 @@ * Uploaded file name and information */ @ApiModel(description = "Uploaded file name and information") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class FileUploaded { public static final String SERIALIZED_NAME_OUTPUT_URI = "output_uri"; @SerializedName(SERIALIZED_NAME_OUTPUT_URI) @@ -53,7 +53,7 @@ public class FileUploaded { @SerializedName(SERIALIZED_NAME_ID) private String id; - public FileUploaded() { + public FileUploaded() { } public FileUploaded outputUri(String outputUri) { @@ -124,6 +124,41 @@ public void setId(String id) { this.id = id; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public FileUploaded putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -137,12 +172,13 @@ public boolean equals(Object o) { FileUploaded fileUploaded = (FileUploaded) o; return Objects.equals(this.outputUri, fileUploaded.outputUri) && Objects.equals(this.fileName, fileUploaded.fileName) && - Objects.equals(this.id, fileUploaded.id); + Objects.equals(this.id, fileUploaded.id)&& + Objects.equals(this.additionalProperties, fileUploaded.additionalProperties); } @Override public int hashCode() { - return Objects.hash(outputUri, fileName, id); + return Objects.hash(outputUri, fileName, id, additionalProperties); } @Override @@ -152,6 +188,7 @@ public String toString() { sb.append(" outputUri: ").append(toIndentedString(outputUri)).append("\n"); sb.append(" fileName: ").append(toIndentedString(fileName)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -198,27 +235,19 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { } } - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!FileUploaded.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `FileUploaded` properties. JSON: %s", entry.getKey(), jsonObj.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 (jsonObj.get("output_uri") != null && !jsonObj.get("output_uri").isJsonPrimitive()) { + 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").isJsonPrimitive()) { + 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").isJsonPrimitive()) { + 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())); } } @@ -238,6 +267,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, FileUploaded value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -245,7 +291,25 @@ public void write(JsonWriter out, FileUploaded value) throws IOException { public FileUploaded read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + FileUploaded instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 3935594..f593eff 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 @@ -29,9 +29,9 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; import io.tiledb.cloud.rest_api.JSON; @@ -39,7 +39,7 @@ * Filter */ @ApiModel(description = "Filter") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class Filter { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -49,7 +49,7 @@ public class Filter { @SerializedName(SERIALIZED_NAME_DATA) private FilterData data; - public Filter() { + public Filter() { } public Filter type(FilterType type) { @@ -97,6 +97,41 @@ public void setData(FilterData data) { this.data = data; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public Filter putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -109,12 +144,13 @@ public boolean equals(Object o) { } Filter filter = (Filter) o; return Objects.equals(this.type, filter.type) && - Objects.equals(this.data, filter.data); + Objects.equals(this.data, filter.data)&& + Objects.equals(this.additionalProperties, filter.additionalProperties); } @Override public int hashCode() { - return Objects.hash(type, data); + return Objects.hash(type, data, additionalProperties); } @Override @@ -123,6 +159,7 @@ public String toString() { sb.append("class Filter {\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -168,14 +205,6 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { } } - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!Filter.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `Filter` properties. JSON: %s", entry.getKey(), jsonObj.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) { @@ -183,7 +212,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { } } // validate the optional field `data` - if (jsonObj.getAsJsonObject("data") != null) { + if (jsonObj.get("data") != null && !jsonObj.get("data").isJsonNull()) { FilterData.validateJsonObject(jsonObj.getAsJsonObject("data")); } } @@ -203,6 +232,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, Filter value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -210,7 +256,25 @@ public void write(JsonWriter out, Filter value) throws IOException { public Filter read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + Filter instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 3e0be8d..74efd6d 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 @@ -29,9 +29,9 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; import io.tiledb.cloud.rest_api.JSON; @@ -39,7 +39,7 @@ * Filter data */ @ApiModel(description = "Filter data") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class FilterData { public static final String SERIALIZED_NAME_INT8 = "int8"; @SerializedName(SERIALIZED_NAME_INT8) @@ -81,7 +81,7 @@ public class FilterData { @SerializedName(SERIALIZED_NAME_FLOAT64) private Integer float64; - public FilterData() { + public FilterData() { } public FilterData int8(Integer int8) { @@ -313,6 +313,41 @@ public void setFloat64(Integer float64) { this.float64 = float64; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public FilterData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -333,12 +368,13 @@ public boolean equals(Object o) { Objects.equals(this.int64, filterData.int64) && Objects.equals(this.uint64, filterData.uint64) && Objects.equals(this.float32, filterData.float32) && - Objects.equals(this.float64, filterData.float64); + Objects.equals(this.float64, filterData.float64)&& + Objects.equals(this.additionalProperties, filterData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(int8, uint8, int16, uint16, int32, uint32, int64, uint64, float32, float64); + return Objects.hash(int8, uint8, int16, uint16, int32, uint32, int64, uint64, float32, float64, additionalProperties); } @Override @@ -355,6 +391,7 @@ public String toString() { sb.append(" uint64: ").append(toIndentedString(uint64)).append("\n"); sb.append(" float32: ").append(toIndentedString(float32)).append("\n"); sb.append(" float64: ").append(toIndentedString(float64)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -406,14 +443,6 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in FilterData is not found in the empty JSON string", FilterData.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!FilterData.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `FilterData` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -431,6 +460,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, FilterData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -438,7 +484,25 @@ public void write(JsonWriter out, FilterData value) throws IOException { public FilterData read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + FilterData instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 ac2cd7d..dc65bb1 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 @@ -25,8 +25,6 @@ import java.util.ArrayList; import java.util.List; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonArray; import com.google.gson.JsonElement; @@ -34,21 +32,23 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class FilterPipeline { public static final String SERIALIZED_NAME_FILTERS = "filters"; @SerializedName(SERIALIZED_NAME_FILTERS) private List filters = null; - public FilterPipeline() { + public FilterPipeline() { } public FilterPipeline filters(List filters) { @@ -81,6 +81,41 @@ public void setFilters(List filters) { this.filters = filters; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public FilterPipeline putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -92,12 +127,13 @@ public boolean equals(Object o) { return false; } FilterPipeline filterPipeline = (FilterPipeline) o; - return Objects.equals(this.filters, filterPipeline.filters); + return Objects.equals(this.filters, filterPipeline.filters)&& + Objects.equals(this.additionalProperties, filterPipeline.additionalProperties); } @Override public int hashCode() { - return Objects.hash(filters); + return Objects.hash(filters, additionalProperties); } @Override @@ -105,6 +141,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FilterPipeline {\n"); sb.append(" filters: ").append(toIndentedString(filters)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -147,14 +184,6 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in FilterPipeline is not found in the empty JSON string", FilterPipeline.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!FilterPipeline.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `FilterPipeline` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } JsonArray jsonArrayfilters = jsonObj.getAsJsonArray("filters"); if (jsonArrayfilters != null) { // ensure the json data is an array @@ -184,6 +213,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, FilterPipeline value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -191,7 +237,25 @@ public void write(JsonWriter out, FilterPipeline value) throws IOException { public FilterPipeline read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + FilterPipeline instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 new file mode 100644 index 0000000..31a51b0 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/FragmentInfo.java @@ -0,0 +1,365 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.2.19 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + +import java.util.Objects; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import com.google.gson.Gson; +import com.google.gson.JsonArray; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.util.HashSet; + +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]") +public class FragmentInfo { + public static final String SERIALIZED_NAME_ARRAY_SCHEMA_ALL = "arraySchemaAll"; + @SerializedName(SERIALIZED_NAME_ARRAY_SCHEMA_ALL) + private Map arraySchemaAll = null; + + public static final String SERIALIZED_NAME_FRAGMENT_INFO = "fragmentInfo"; + @SerializedName(SERIALIZED_NAME_FRAGMENT_INFO) + private List fragmentInfo = null; + + public static final String SERIALIZED_NAME_TO_VACUUM = "toVacuum"; + @SerializedName(SERIALIZED_NAME_TO_VACUUM) + private List toVacuum = null; + + public FragmentInfo() { + } + + public FragmentInfo arraySchemaAll(Map arraySchemaAll) { + + this.arraySchemaAll = arraySchemaAll; + return this; + } + + public FragmentInfo putArraySchemaAllItem(String key, ArraySchema arraySchemaAllItem) { + if (this.arraySchemaAll == null) { + this.arraySchemaAll = new HashMap<>(); + } + this.arraySchemaAll.put(key, arraySchemaAllItem); + 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; + } + + public FragmentInfo addFragmentInfoItem(SingleFragmentInfo fragmentInfoItem) { + if (this.fragmentInfo == null) { + this.fragmentInfo = new ArrayList<>(); + } + this.fragmentInfo.add(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; + } + + public FragmentInfo addToVacuumItem(String toVacuumItem) { + if (this.toVacuum == null) { + this.toVacuum = new ArrayList<>(); + } + this.toVacuum.add(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; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public FragmentInfo putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FragmentInfo fragmentInfo = (FragmentInfo) o; + return Objects.equals(this.arraySchemaAll, fragmentInfo.arraySchemaAll) && + Objects.equals(this.fragmentInfo, fragmentInfo.fragmentInfo) && + Objects.equals(this.toVacuum, fragmentInfo.toVacuum)&& + Objects.equals(this.additionalProperties, fragmentInfo.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(arraySchemaAll, fragmentInfo, toVacuum, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FragmentInfo {\n"); + sb.append(" arraySchemaAll: ").append(toIndentedString(arraySchemaAll)).append("\n"); + sb.append(" fragmentInfo: ").append(toIndentedString(fragmentInfo)).append("\n"); + sb.append(" toVacuum: ").append(toIndentedString(toVacuum)).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("arraySchemaAll"); + openapiFields.add("fragmentInfo"); + openapiFields.add("toVacuum"); + + // 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 FragmentInfo + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (FragmentInfo.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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())); + } + + // 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()) { + throw new IllegalArgumentException(String.format("Expected the field `toVacuum` to be an array in the JSON string but got `%s`", jsonObj.get("toVacuum").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!FragmentInfo.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'FragmentInfo' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(FragmentInfo.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, FragmentInfo value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public FragmentInfo read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + FragmentInfo instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of 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 + */ + 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 new file mode 100644 index 0000000..0bc0f1f --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/FragmentInfoRequest.java @@ -0,0 +1,266 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.2.19 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + +import java.util.Objects; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +import com.google.gson.Gson; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * 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]") +public class FragmentInfoRequest { + public static final String SERIALIZED_NAME_CONFIG = "config"; + @SerializedName(SERIALIZED_NAME_CONFIG) + private TileDBConfig config; + + 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; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public FragmentInfoRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FragmentInfoRequest fragmentInfoRequest = (FragmentInfoRequest) o; + return Objects.equals(this.config, fragmentInfoRequest.config)&& + Objects.equals(this.additionalProperties, fragmentInfoRequest.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(config, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FragmentInfoRequest {\n"); + sb.append(" config: ").append(toIndentedString(config)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("config"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to FragmentInfoRequest + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (FragmentInfoRequest.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in FragmentInfoRequest is not found in the empty JSON string", FragmentInfoRequest.openapiRequiredFields.toString())); + } + } + // validate the optional field `config` + if (jsonObj.get("config") != null && !jsonObj.get("config").isJsonNull()) { + TileDBConfig.validateJsonObject(jsonObj.getAsJsonObject("config")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!FragmentInfoRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'FragmentInfoRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(FragmentInfoRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, FragmentInfoRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public FragmentInfoRequest read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + FragmentInfoRequest instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of 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 + */ + 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 new file mode 100644 index 0000000..7de1e32 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/FragmentMetadata.java @@ -0,0 +1,1203 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.2.19 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + +import java.util.Objects; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * 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]") +public class FragmentMetadata { + public static final String SERIALIZED_NAME_FILE_SIZES = "fileSizes"; + @SerializedName(SERIALIZED_NAME_FILE_SIZES) + private List fileSizes = null; + + public static final String SERIALIZED_NAME_FILE_VAR_SIZES = "fileVarSizes"; + @SerializedName(SERIALIZED_NAME_FILE_VAR_SIZES) + private List fileVarSizes = null; + + public static final String SERIALIZED_NAME_FILE_VALIDITY_SIZES = "fileValiditySizes"; + @SerializedName(SERIALIZED_NAME_FILE_VALIDITY_SIZES) + private List fileValiditySizes = null; + + public static final String SERIALIZED_NAME_FRAGMENT_URI = "fragmentUri"; + @SerializedName(SERIALIZED_NAME_FRAGMENT_URI) + private String fragmentUri; + + public static final String SERIALIZED_NAME_HAS_TIMESTAMPS = "hasTimestamps"; + @SerializedName(SERIALIZED_NAME_HAS_TIMESTAMPS) + private Boolean hasTimestamps; + + public static final String SERIALIZED_NAME_HAS_DELETE_META = "hasDeleteMeta"; + @SerializedName(SERIALIZED_NAME_HAS_DELETE_META) + private Boolean hasDeleteMeta; + + public static final String SERIALIZED_NAME_SPARSE_TILE_NUM = "sparseTileNum"; + @SerializedName(SERIALIZED_NAME_SPARSE_TILE_NUM) + private Integer sparseTileNum; + + public static final String SERIALIZED_NAME_TILE_INDEX_BASE = "tileIndexBase"; + @SerializedName(SERIALIZED_NAME_TILE_INDEX_BASE) + private Integer tileIndexBase; + + public static final String SERIALIZED_NAME_TILE_OFFSETS = "tileOffsets"; + @SerializedName(SERIALIZED_NAME_TILE_OFFSETS) + private List> tileOffsets = null; + + public static final String SERIALIZED_NAME_TILE_VAR_OFFSETS = "tileVarOffsets"; + @SerializedName(SERIALIZED_NAME_TILE_VAR_OFFSETS) + private List> tileVarOffsets = null; + + public static final String SERIALIZED_NAME_TILE_VAR_SIZES = "tileVarSizes"; + @SerializedName(SERIALIZED_NAME_TILE_VAR_SIZES) + private List> tileVarSizes = null; + + public static final String SERIALIZED_NAME_TILE_VALIDITY_OFFSETS = "tileValidityOffsets"; + @SerializedName(SERIALIZED_NAME_TILE_VALIDITY_OFFSETS) + private List> tileValidityOffsets = null; + + public static final String SERIALIZED_NAME_TILE_MIN_BUFFER = "tileMinBuffer"; + @SerializedName(SERIALIZED_NAME_TILE_MIN_BUFFER) + private List> tileMinBuffer = null; + + public static final String SERIALIZED_NAME_TILE_MIN_VAR_BUFFER = "tileMinVarBuffer"; + @SerializedName(SERIALIZED_NAME_TILE_MIN_VAR_BUFFER) + private List> tileMinVarBuffer = null; + + public static final String SERIALIZED_NAME_TILE_MAX_BUFFER = "tileMaxBuffer"; + @SerializedName(SERIALIZED_NAME_TILE_MAX_BUFFER) + private List> tileMaxBuffer = null; + + public static final String SERIALIZED_NAME_TILE_MAX_VAR_BUFFER = "tileMaxVarBuffer"; + @SerializedName(SERIALIZED_NAME_TILE_MAX_VAR_BUFFER) + private List> tileMaxVarBuffer = null; + + public static final String SERIALIZED_NAME_TILE_SUMS = "tileSums"; + @SerializedName(SERIALIZED_NAME_TILE_SUMS) + private List> tileSums = null; + + public static final String SERIALIZED_NAME_TILE_NULL_COUNTS = "tileNullCounts"; + @SerializedName(SERIALIZED_NAME_TILE_NULL_COUNTS) + private List> tileNullCounts = null; + + public static final String SERIALIZED_NAME_FRAGMENT_MINS = "fragmentMins"; + @SerializedName(SERIALIZED_NAME_FRAGMENT_MINS) + private List> fragmentMins = null; + + public static final String SERIALIZED_NAME_FRAGMENT_MAXS = "fragmentMaxs"; + @SerializedName(SERIALIZED_NAME_FRAGMENT_MAXS) + private List> fragmentMaxs = null; + + public static final String SERIALIZED_NAME_FRAGMENT_SUMS = "fragmentSums"; + @SerializedName(SERIALIZED_NAME_FRAGMENT_SUMS) + private List fragmentSums = null; + + public static final String SERIALIZED_NAME_FRAGMENT_NULL_COUNTS = "fragmentNullCounts"; + @SerializedName(SERIALIZED_NAME_FRAGMENT_NULL_COUNTS) + private List fragmentNullCounts = null; + + public static final String SERIALIZED_NAME_VERSION = "version"; + @SerializedName(SERIALIZED_NAME_VERSION) + private Integer version; + + public static final String SERIALIZED_NAME_TIMESTAMP_RANGE = "timestampRange"; + @SerializedName(SERIALIZED_NAME_TIMESTAMP_RANGE) + private List timestampRange = null; + + public static final String SERIALIZED_NAME_LAST_TILE_CELL_NUM = "lastTileCellNum"; + @SerializedName(SERIALIZED_NAME_LAST_TILE_CELL_NUM) + private Integer lastTileCellNum; + + public FragmentMetadata() { + } + + public FragmentMetadata fileSizes(List fileSizes) { + + this.fileSizes = fileSizes; + return this; + } + + public FragmentMetadata addFileSizesItem(Integer fileSizesItem) { + if (this.fileSizes == null) { + this.fileSizes = new ArrayList<>(); + } + this.fileSizes.add(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; + } + + public FragmentMetadata addFileVarSizesItem(Integer fileVarSizesItem) { + if (this.fileVarSizes == null) { + this.fileVarSizes = new ArrayList<>(); + } + this.fileVarSizes.add(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; + } + + public FragmentMetadata addFileValiditySizesItem(Integer fileValiditySizesItem) { + if (this.fileValiditySizes == null) { + this.fileValiditySizes = new ArrayList<>(); + } + this.fileValiditySizes.add(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; + } + + public FragmentMetadata addTileOffsetsItem(List tileOffsetsItem) { + if (this.tileOffsets == null) { + this.tileOffsets = new ArrayList<>(); + } + this.tileOffsets.add(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; + } + + public FragmentMetadata addTileVarOffsetsItem(List tileVarOffsetsItem) { + if (this.tileVarOffsets == null) { + this.tileVarOffsets = new ArrayList<>(); + } + this.tileVarOffsets.add(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; + } + + public FragmentMetadata addTileVarSizesItem(List tileVarSizesItem) { + if (this.tileVarSizes == null) { + this.tileVarSizes = new ArrayList<>(); + } + this.tileVarSizes.add(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; + } + + public FragmentMetadata addTileValidityOffsetsItem(List tileValidityOffsetsItem) { + if (this.tileValidityOffsets == null) { + this.tileValidityOffsets = new ArrayList<>(); + } + this.tileValidityOffsets.add(tileValidityOffsetsItem); + 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; + } + + public FragmentMetadata addTileMinBufferItem(List tileMinBufferItem) { + if (this.tileMinBuffer == null) { + this.tileMinBuffer = new ArrayList<>(); + } + this.tileMinBuffer.add(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; + } + + public FragmentMetadata addTileMinVarBufferItem(List tileMinVarBufferItem) { + if (this.tileMinVarBuffer == null) { + this.tileMinVarBuffer = new ArrayList<>(); + } + this.tileMinVarBuffer.add(tileMinVarBufferItem); + 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; + } + + public FragmentMetadata addTileMaxBufferItem(List tileMaxBufferItem) { + if (this.tileMaxBuffer == null) { + this.tileMaxBuffer = new ArrayList<>(); + } + this.tileMaxBuffer.add(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; + } + + public FragmentMetadata addTileMaxVarBufferItem(List tileMaxVarBufferItem) { + if (this.tileMaxVarBuffer == null) { + this.tileMaxVarBuffer = new ArrayList<>(); + } + this.tileMaxVarBuffer.add(tileMaxVarBufferItem); + 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; + } + + public FragmentMetadata addTileSumsItem(List tileSumsItem) { + if (this.tileSums == null) { + this.tileSums = new ArrayList<>(); + } + this.tileSums.add(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; + } + + public FragmentMetadata addTileNullCountsItem(List tileNullCountsItem) { + if (this.tileNullCounts == null) { + this.tileNullCounts = new ArrayList<>(); + } + this.tileNullCounts.add(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; + } + + public FragmentMetadata addFragmentMinsItem(List fragmentMinsItem) { + if (this.fragmentMins == null) { + this.fragmentMins = new ArrayList<>(); + } + this.fragmentMins.add(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; + } + + public FragmentMetadata addFragmentMaxsItem(List fragmentMaxsItem) { + if (this.fragmentMaxs == null) { + this.fragmentMaxs = new ArrayList<>(); + } + this.fragmentMaxs.add(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; + } + + public FragmentMetadata addFragmentSumsItem(Integer fragmentSumsItem) { + if (this.fragmentSums == null) { + this.fragmentSums = new ArrayList<>(); + } + this.fragmentSums.add(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; + } + + public FragmentMetadata addFragmentNullCountsItem(Integer fragmentNullCountsItem) { + if (this.fragmentNullCounts == null) { + this.fragmentNullCounts = new ArrayList<>(); + } + this.fragmentNullCounts.add(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; + } + + public FragmentMetadata addTimestampRangeItem(Integer timestampRangeItem) { + if (this.timestampRange == null) { + this.timestampRange = new ArrayList<>(); + } + this.timestampRange.add(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; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public FragmentMetadata putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FragmentMetadata fragmentMetadata = (FragmentMetadata) o; + return Objects.equals(this.fileSizes, fragmentMetadata.fileSizes) && + Objects.equals(this.fileVarSizes, fragmentMetadata.fileVarSizes) && + Objects.equals(this.fileValiditySizes, fragmentMetadata.fileValiditySizes) && + Objects.equals(this.fragmentUri, fragmentMetadata.fragmentUri) && + Objects.equals(this.hasTimestamps, fragmentMetadata.hasTimestamps) && + Objects.equals(this.hasDeleteMeta, fragmentMetadata.hasDeleteMeta) && + Objects.equals(this.sparseTileNum, fragmentMetadata.sparseTileNum) && + Objects.equals(this.tileIndexBase, fragmentMetadata.tileIndexBase) && + Objects.equals(this.tileOffsets, fragmentMetadata.tileOffsets) && + Objects.equals(this.tileVarOffsets, fragmentMetadata.tileVarOffsets) && + Objects.equals(this.tileVarSizes, fragmentMetadata.tileVarSizes) && + Objects.equals(this.tileValidityOffsets, fragmentMetadata.tileValidityOffsets) && + Objects.equals(this.tileMinBuffer, fragmentMetadata.tileMinBuffer) && + Objects.equals(this.tileMinVarBuffer, fragmentMetadata.tileMinVarBuffer) && + Objects.equals(this.tileMaxBuffer, fragmentMetadata.tileMaxBuffer) && + Objects.equals(this.tileMaxVarBuffer, fragmentMetadata.tileMaxVarBuffer) && + Objects.equals(this.tileSums, fragmentMetadata.tileSums) && + Objects.equals(this.tileNullCounts, fragmentMetadata.tileNullCounts) && + Objects.equals(this.fragmentMins, fragmentMetadata.fragmentMins) && + Objects.equals(this.fragmentMaxs, fragmentMetadata.fragmentMaxs) && + Objects.equals(this.fragmentSums, fragmentMetadata.fragmentSums) && + Objects.equals(this.fragmentNullCounts, fragmentMetadata.fragmentNullCounts) && + Objects.equals(this.version, fragmentMetadata.version) && + Objects.equals(this.timestampRange, fragmentMetadata.timestampRange) && + Objects.equals(this.lastTileCellNum, fragmentMetadata.lastTileCellNum)&& + Objects.equals(this.additionalProperties, fragmentMetadata.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(fileSizes, fileVarSizes, fileValiditySizes, fragmentUri, hasTimestamps, hasDeleteMeta, sparseTileNum, tileIndexBase, tileOffsets, tileVarOffsets, tileVarSizes, tileValidityOffsets, tileMinBuffer, tileMinVarBuffer, tileMaxBuffer, tileMaxVarBuffer, tileSums, tileNullCounts, fragmentMins, fragmentMaxs, fragmentSums, fragmentNullCounts, version, timestampRange, lastTileCellNum, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FragmentMetadata {\n"); + sb.append(" fileSizes: ").append(toIndentedString(fileSizes)).append("\n"); + sb.append(" fileVarSizes: ").append(toIndentedString(fileVarSizes)).append("\n"); + sb.append(" fileValiditySizes: ").append(toIndentedString(fileValiditySizes)).append("\n"); + sb.append(" fragmentUri: ").append(toIndentedString(fragmentUri)).append("\n"); + sb.append(" hasTimestamps: ").append(toIndentedString(hasTimestamps)).append("\n"); + sb.append(" hasDeleteMeta: ").append(toIndentedString(hasDeleteMeta)).append("\n"); + sb.append(" sparseTileNum: ").append(toIndentedString(sparseTileNum)).append("\n"); + sb.append(" tileIndexBase: ").append(toIndentedString(tileIndexBase)).append("\n"); + sb.append(" tileOffsets: ").append(toIndentedString(tileOffsets)).append("\n"); + sb.append(" tileVarOffsets: ").append(toIndentedString(tileVarOffsets)).append("\n"); + sb.append(" tileVarSizes: ").append(toIndentedString(tileVarSizes)).append("\n"); + sb.append(" tileValidityOffsets: ").append(toIndentedString(tileValidityOffsets)).append("\n"); + sb.append(" tileMinBuffer: ").append(toIndentedString(tileMinBuffer)).append("\n"); + sb.append(" tileMinVarBuffer: ").append(toIndentedString(tileMinVarBuffer)).append("\n"); + sb.append(" tileMaxBuffer: ").append(toIndentedString(tileMaxBuffer)).append("\n"); + sb.append(" tileMaxVarBuffer: ").append(toIndentedString(tileMaxVarBuffer)).append("\n"); + sb.append(" tileSums: ").append(toIndentedString(tileSums)).append("\n"); + sb.append(" tileNullCounts: ").append(toIndentedString(tileNullCounts)).append("\n"); + sb.append(" fragmentMins: ").append(toIndentedString(fragmentMins)).append("\n"); + sb.append(" fragmentMaxs: ").append(toIndentedString(fragmentMaxs)).append("\n"); + sb.append(" fragmentSums: ").append(toIndentedString(fragmentSums)).append("\n"); + sb.append(" fragmentNullCounts: ").append(toIndentedString(fragmentNullCounts)).append("\n"); + sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" timestampRange: ").append(toIndentedString(timestampRange)).append("\n"); + sb.append(" lastTileCellNum: ").append(toIndentedString(lastTileCellNum)).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("fileSizes"); + openapiFields.add("fileVarSizes"); + openapiFields.add("fileValiditySizes"); + openapiFields.add("fragmentUri"); + openapiFields.add("hasTimestamps"); + openapiFields.add("hasDeleteMeta"); + openapiFields.add("sparseTileNum"); + openapiFields.add("tileIndexBase"); + openapiFields.add("tileOffsets"); + openapiFields.add("tileVarOffsets"); + openapiFields.add("tileVarSizes"); + openapiFields.add("tileValidityOffsets"); + openapiFields.add("tileMinBuffer"); + openapiFields.add("tileMinVarBuffer"); + openapiFields.add("tileMaxBuffer"); + openapiFields.add("tileMaxVarBuffer"); + openapiFields.add("tileSums"); + openapiFields.add("tileNullCounts"); + openapiFields.add("fragmentMins"); + openapiFields.add("fragmentMaxs"); + openapiFields.add("fragmentSums"); + openapiFields.add("fragmentNullCounts"); + openapiFields.add("version"); + openapiFields.add("timestampRange"); + openapiFields.add("lastTileCellNum"); + + // 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 FragmentMetadata + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (FragmentMetadata.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + throw new IllegalArgumentException(String.format("Expected the field `timestampRange` to be an array in the JSON string but got `%s`", jsonObj.get("timestampRange").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!FragmentMetadata.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'FragmentMetadata' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(FragmentMetadata.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, FragmentMetadata value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public FragmentMetadata read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + FragmentMetadata instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of 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 + */ + 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 39c3dab..2642b82 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 @@ -25,23 +25,23 @@ import java.util.ArrayList; import java.util.List; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; /** * User-defined function */ @ApiModel(description = "User-defined function") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class GenericUDF { public static final String SERIALIZED_NAME_UDF_INFO_NAME = "udf_info_name"; @SerializedName(SERIALIZED_NAME_UDF_INFO_NAME) @@ -59,6 +59,10 @@ public class GenericUDF { @SerializedName(SERIALIZED_NAME_IMAGE_NAME) private String imageName; + public static final String SERIALIZED_NAME_ACCESS_CREDENTIALS_NAME = "access_credentials_name"; + @SerializedName(SERIALIZED_NAME_ACCESS_CREDENTIALS_NAME) + private String accessCredentialsName; + public static final String SERIALIZED_NAME_RESOURCE_CLASS = "resource_class"; @SerializedName(SERIALIZED_NAME_RESOURCE_CLASS) private String resourceClass; @@ -107,7 +111,7 @@ public class GenericUDF { @SerializedName(SERIALIZED_NAME_CLIENT_NODE_UUID) private String clientNodeUuid; - public GenericUDF() { + public GenericUDF() { } public GenericUDF udfInfoName(String udfInfoName) { @@ -202,6 +206,29 @@ public void setImageName(String 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; @@ -485,6 +512,41 @@ public void setClientNodeUuid(String clientNodeUuid) { this.clientNodeUuid = clientNodeUuid; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public GenericUDF putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -500,6 +562,7 @@ public boolean equals(Object o) { Objects.equals(this.language, genericUDF.language) && Objects.equals(this.version, genericUDF.version) && Objects.equals(this.imageName, genericUDF.imageName) && + Objects.equals(this.accessCredentialsName, genericUDF.accessCredentialsName) && Objects.equals(this.resourceClass, genericUDF.resourceClass) && Objects.equals(this.exec, genericUDF.exec) && Objects.equals(this.execRaw, genericUDF.execRaw) && @@ -511,12 +574,13 @@ public boolean equals(Object o) { Objects.equals(this.timeout, genericUDF.timeout) && Objects.equals(this.dontDownloadResults, genericUDF.dontDownloadResults) && Objects.equals(this.taskGraphUuid, genericUDF.taskGraphUuid) && - Objects.equals(this.clientNodeUuid, genericUDF.clientNodeUuid); + Objects.equals(this.clientNodeUuid, genericUDF.clientNodeUuid)&& + Objects.equals(this.additionalProperties, genericUDF.additionalProperties); } @Override public int hashCode() { - return Objects.hash(udfInfoName, language, version, imageName, resourceClass, exec, execRaw, argument, storedParamUuids, resultFormat, taskName, storeResults, timeout, dontDownloadResults, taskGraphUuid, clientNodeUuid); + return Objects.hash(udfInfoName, language, version, imageName, accessCredentialsName, resourceClass, exec, execRaw, argument, storedParamUuids, resultFormat, taskName, storeResults, timeout, dontDownloadResults, taskGraphUuid, clientNodeUuid, additionalProperties); } @Override @@ -527,6 +591,7 @@ public String toString() { sb.append(" language: ").append(toIndentedString(language)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" imageName: ").append(toIndentedString(imageName)).append("\n"); + sb.append(" accessCredentialsName: ").append(toIndentedString(accessCredentialsName)).append("\n"); sb.append(" resourceClass: ").append(toIndentedString(resourceClass)).append("\n"); sb.append(" exec: ").append(toIndentedString(exec)).append("\n"); sb.append(" execRaw: ").append(toIndentedString(execRaw)).append("\n"); @@ -539,6 +604,7 @@ public String toString() { sb.append(" dontDownloadResults: ").append(toIndentedString(dontDownloadResults)).append("\n"); sb.append(" taskGraphUuid: ").append(toIndentedString(taskGraphUuid)).append("\n"); sb.append(" clientNodeUuid: ").append(toIndentedString(clientNodeUuid)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -565,6 +631,7 @@ private String toIndentedString(Object o) { openapiFields.add("language"); openapiFields.add("version"); openapiFields.add("image_name"); + openapiFields.add("access_credentials_name"); openapiFields.add("resource_class"); openapiFields.add("exec"); openapiFields.add("exec_raw"); @@ -596,46 +663,41 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in GenericUDF is not found in the empty JSON string", GenericUDF.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!GenericUDF.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `GenericUDF` properties. JSON: %s", entry.getKey(), jsonObj.toString())); - } - } - if (jsonObj.get("udf_info_name") != null && !jsonObj.get("udf_info_name").isJsonPrimitive()) { + 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())); } - if (jsonObj.get("version") != null && !jsonObj.get("version").isJsonPrimitive()) { + 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").isJsonPrimitive()) { + 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())); } - if (jsonObj.get("resource_class") != null && !jsonObj.get("resource_class").isJsonPrimitive()) { + 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("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())); } - if (jsonObj.get("exec") != null && !jsonObj.get("exec").isJsonPrimitive()) { + 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())); } - if (jsonObj.get("exec_raw") != null && !jsonObj.get("exec_raw").isJsonPrimitive()) { + 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())); } - if (jsonObj.get("argument") != null && !jsonObj.get("argument").isJsonPrimitive()) { + 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").isJsonArray()) { + 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())); } - if (jsonObj.get("task_name") != null && !jsonObj.get("task_name").isJsonPrimitive()) { + 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("task_graph_uuid") != null && !jsonObj.get("task_graph_uuid").isJsonPrimitive()) { + 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").isJsonPrimitive()) { + 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())); } } @@ -655,6 +717,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, GenericUDF value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -662,7 +741,25 @@ public void write(JsonWriter out, GenericUDF value) throws IOException { public GenericUDF read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + GenericUDF instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 1335ffc..0b03927 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 @@ -28,22 +28,22 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; import io.tiledb.cloud.rest_api.JSON; /** * GetTiledbStats200Response */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class GetTiledbStats200Response { public static final String SERIALIZED_NAME_STATS = "stats"; @SerializedName(SERIALIZED_NAME_STATS) private String stats; - public GetTiledbStats200Response() { + public GetTiledbStats200Response() { } public GetTiledbStats200Response stats(String stats) { @@ -68,6 +68,41 @@ public void setStats(String stats) { this.stats = stats; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public GetTiledbStats200Response putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -79,12 +114,13 @@ public boolean equals(Object o) { return false; } GetTiledbStats200Response getTiledbStats200Response = (GetTiledbStats200Response) o; - return Objects.equals(this.stats, getTiledbStats200Response.stats); + return Objects.equals(this.stats, getTiledbStats200Response.stats)&& + Objects.equals(this.additionalProperties, getTiledbStats200Response.additionalProperties); } @Override public int hashCode() { - return Objects.hash(stats); + return Objects.hash(stats, additionalProperties); } @Override @@ -92,6 +128,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GetTiledbStats200Response {\n"); sb.append(" stats: ").append(toIndentedString(stats)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -134,15 +171,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in GetTiledbStats200Response is not found in the empty JSON string", GetTiledbStats200Response.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!GetTiledbStats200Response.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `GetTiledbStats200Response` properties. JSON: %s", entry.getKey(), jsonObj.toString())); - } - } - if (jsonObj.get("stats") != null && !jsonObj.get("stats").isJsonPrimitive()) { + 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())); } } @@ -162,6 +191,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, GetTiledbStats200Response value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -169,7 +215,25 @@ public void write(JsonWriter out, GetTiledbStats200Response value) throws IOExce public GetTiledbStats200Response read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + GetTiledbStats200Response instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/GroupActivity.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupActivity.java new file mode 100644 index 0000000..2e121ce --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupActivity.java @@ -0,0 +1,300 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.2.19 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + +import java.util.Objects; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +import com.google.gson.Gson; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * Object containing activity of an asset of a group + */ +@ApiModel(description = "Object containing activity of an asset of a group") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +public class GroupActivity { + public static final String SERIALIZED_NAME_ASSET = "asset"; + @SerializedName(SERIALIZED_NAME_ASSET) + private GroupActivityAsset asset; + + public static final String SERIALIZED_NAME_ACTIVITY_LOG = "activity_log"; + @SerializedName(SERIALIZED_NAME_ACTIVITY_LOG) + private ArrayActivityLog activityLog; + + public GroupActivity() { + } + + public GroupActivity asset(GroupActivityAsset asset) { + + this.asset = asset; + return this; + } + + /** + * Get asset + * @return asset + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public GroupActivityAsset getAsset() { + return asset; + } + + + public void setAsset(GroupActivityAsset asset) { + this.asset = asset; + } + + + public GroupActivity activityLog(ArrayActivityLog activityLog) { + + this.activityLog = activityLog; + return this; + } + + /** + * Get activityLog + * @return activityLog + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public ArrayActivityLog getActivityLog() { + return activityLog; + } + + + public void setActivityLog(ArrayActivityLog activityLog) { + this.activityLog = activityLog; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public GroupActivity putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GroupActivity groupActivity = (GroupActivity) o; + return Objects.equals(this.asset, groupActivity.asset) && + Objects.equals(this.activityLog, groupActivity.activityLog)&& + Objects.equals(this.additionalProperties, groupActivity.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(asset, activityLog, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GroupActivity {\n"); + sb.append(" asset: ").append(toIndentedString(asset)).append("\n"); + sb.append(" activityLog: ").append(toIndentedString(activityLog)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("asset"); + openapiFields.add("activity_log"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to GroupActivity + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (GroupActivity.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in GroupActivity is not found in the empty JSON string", GroupActivity.openapiRequiredFields.toString())); + } + } + // validate the optional field `asset` + if (jsonObj.get("asset") != null && !jsonObj.get("asset").isJsonNull()) { + GroupActivityAsset.validateJsonObject(jsonObj.getAsJsonObject("asset")); + } + // validate the optional field `activity_log` + if (jsonObj.get("activity_log") != null && !jsonObj.get("activity_log").isJsonNull()) { + ArrayActivityLog.validateJsonObject(jsonObj.getAsJsonObject("activity_log")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GroupActivity.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GroupActivity' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GroupActivity.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GroupActivity value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public GroupActivity read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + GroupActivity instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of GroupActivity given an JSON string + * + * @param jsonString JSON string + * @return An instance of GroupActivity + * @throws IOException if the JSON string is invalid with respect to GroupActivity + */ + public static GroupActivity fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GroupActivity.class); + } + + /** + * Convert an instance of GroupActivity 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/GroupActivityAsset.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupActivityAsset.java new file mode 100644 index 0000000..f4302a5 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupActivityAsset.java @@ -0,0 +1,361 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.2.19 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + +import java.util.Objects; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +import com.google.gson.Gson; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * The asset details + */ +@ApiModel(description = "The asset details") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +public class GroupActivityAsset { + 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 GroupActivityAsset() { + } + + public GroupActivityAsset id(String id) { + + this.id = id; + return this; + } + + /** + * The asset ID + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The asset ID") + + public String getId() { + return id; + } + + + public void setId(String id) { + this.id = id; + } + + + public GroupActivityAsset name(String name) { + + this.name = name; + return this; + } + + /** + * The asset name + * @return name + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The asset name") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public GroupActivityAsset namespace(String namespace) { + + this.namespace = namespace; + return this; + } + + /** + * The namespace that the asset belongs to + * @return namespace + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The namespace that the asset belongs to") + + public String getNamespace() { + return namespace; + } + + + public void setNamespace(String namespace) { + this.namespace = namespace; + } + + + public GroupActivityAsset assetType(AssetType assetType) { + + this.assetType = assetType; + return this; + } + + /** + * Get assetType + * @return assetType + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public AssetType getAssetType() { + return assetType; + } + + + public void setAssetType(AssetType assetType) { + this.assetType = assetType; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public GroupActivityAsset putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GroupActivityAsset groupActivityAsset = (GroupActivityAsset) o; + return Objects.equals(this.id, groupActivityAsset.id) && + Objects.equals(this.name, groupActivityAsset.name) && + Objects.equals(this.namespace, groupActivityAsset.namespace) && + Objects.equals(this.assetType, groupActivityAsset.assetType)&& + Objects.equals(this.additionalProperties, groupActivityAsset.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, namespace, assetType, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GroupActivityAsset {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); + sb.append(" assetType: ").append(toIndentedString(assetType)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("id"); + openapiFields.add("name"); + openapiFields.add("namespace"); + openapiFields.add("asset_type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to GroupActivityAsset + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (GroupActivityAsset.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in GroupActivityAsset is not found in the empty JSON string", GroupActivityAsset.openapiRequiredFields.toString())); + } + } + if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); + } + if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonNull()) && !jsonObj.get("namespace").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `namespace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GroupActivityAsset.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GroupActivityAsset' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GroupActivityAsset.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GroupActivityAsset value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public GroupActivityAsset read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + GroupActivityAsset instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of GroupActivityAsset given an JSON string + * + * @param jsonString JSON string + * @return An instance of GroupActivityAsset + * @throws IOException if the JSON string is invalid with respect to GroupActivityAsset + */ + public static GroupActivityAsset fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GroupActivityAsset.class); + } + + /** + * Convert an instance of GroupActivityAsset 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/GroupActivityResponse.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupActivityResponse.java new file mode 100644 index 0000000..8cd3c58 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupActivityResponse.java @@ -0,0 +1,319 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.2.19 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + +import java.util.Objects; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.JsonArray; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * Object containing activity logs of group content along with the pagination metadata + */ +@ApiModel(description = "Object containing activity logs of group content along with the pagination metadata") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +public class GroupActivityResponse { + public static final String SERIALIZED_NAME_ACTIVITY = "activity"; + @SerializedName(SERIALIZED_NAME_ACTIVITY) + private List activity = null; + + public static final String SERIALIZED_NAME_PAGINATION_METADATA = "pagination_metadata"; + @SerializedName(SERIALIZED_NAME_PAGINATION_METADATA) + private PaginationMetadata paginationMetadata; + + public GroupActivityResponse() { + } + + public GroupActivityResponse activity(List activity) { + + this.activity = activity; + return this; + } + + public GroupActivityResponse addActivityItem(GroupActivity activityItem) { + if (this.activity == null) { + this.activity = new ArrayList<>(); + } + this.activity.add(activityItem); + return this; + } + + /** + * Activity of a group's content + * @return activity + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Activity of a group's content") + + public List getActivity() { + return activity; + } + + + public void setActivity(List activity) { + this.activity = activity; + } + + + public GroupActivityResponse paginationMetadata(PaginationMetadata paginationMetadata) { + + this.paginationMetadata = paginationMetadata; + return this; + } + + /** + * Get paginationMetadata + * @return paginationMetadata + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public PaginationMetadata getPaginationMetadata() { + return paginationMetadata; + } + + + public void setPaginationMetadata(PaginationMetadata paginationMetadata) { + this.paginationMetadata = paginationMetadata; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public GroupActivityResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GroupActivityResponse groupActivityResponse = (GroupActivityResponse) o; + return Objects.equals(this.activity, groupActivityResponse.activity) && + Objects.equals(this.paginationMetadata, groupActivityResponse.paginationMetadata)&& + Objects.equals(this.additionalProperties, groupActivityResponse.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(activity, paginationMetadata, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GroupActivityResponse {\n"); + sb.append(" activity: ").append(toIndentedString(activity)).append("\n"); + sb.append(" paginationMetadata: ").append(toIndentedString(paginationMetadata)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("activity"); + openapiFields.add("pagination_metadata"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to GroupActivityResponse + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (GroupActivityResponse.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in GroupActivityResponse is not found in the empty JSON string", GroupActivityResponse.openapiRequiredFields.toString())); + } + } + JsonArray jsonArrayactivity = jsonObj.getAsJsonArray("activity"); + if (jsonArrayactivity != null) { + // ensure the json data is an array + if (!jsonObj.get("activity").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `activity` to be an array in the JSON string but got `%s`", jsonObj.get("activity").toString())); + } + + // validate the optional field `activity` (array) + for (int i = 0; i < jsonArrayactivity.size(); i++) { + GroupActivity.validateJsonObject(jsonArrayactivity.get(i).getAsJsonObject()); + }; + } + // validate the optional field `pagination_metadata` + if (jsonObj.get("pagination_metadata") != null && !jsonObj.get("pagination_metadata").isJsonNull()) { + PaginationMetadata.validateJsonObject(jsonObj.getAsJsonObject("pagination_metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GroupActivityResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GroupActivityResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GroupActivityResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GroupActivityResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public GroupActivityResponse read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + GroupActivityResponse instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of GroupActivityResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of GroupActivityResponse + * @throws IOException if the JSON string is invalid with respect to GroupActivityResponse + */ + public static GroupActivityResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GroupActivityResponse.class); + } + + /** + * Convert an instance of GroupActivityResponse 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/GroupBrowserData.java b/src/main/java/io/tiledb/cloud/rest_api/model/GroupBrowserData.java index 829ec6f..3408976 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 @@ -25,8 +25,6 @@ import java.util.ArrayList; import java.util.List; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonArray; import com.google.gson.JsonElement; @@ -34,15 +32,17 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class GroupBrowserData { public static final String SERIALIZED_NAME_GROUPS = "groups"; @SerializedName(SERIALIZED_NAME_GROUPS) @@ -52,7 +52,7 @@ public class GroupBrowserData { @SerializedName(SERIALIZED_NAME_PAGINATION_METADATA) private PaginationMetadata paginationMetadata; - public GroupBrowserData() { + public GroupBrowserData() { } public GroupBrowserData groups(List groups) { @@ -108,6 +108,41 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { this.paginationMetadata = paginationMetadata; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public GroupBrowserData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -120,12 +155,13 @@ public boolean equals(Object o) { } GroupBrowserData groupBrowserData = (GroupBrowserData) o; return Objects.equals(this.groups, groupBrowserData.groups) && - Objects.equals(this.paginationMetadata, groupBrowserData.paginationMetadata); + Objects.equals(this.paginationMetadata, groupBrowserData.paginationMetadata)&& + Objects.equals(this.additionalProperties, groupBrowserData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(groups, paginationMetadata); + return Objects.hash(groups, paginationMetadata, additionalProperties); } @Override @@ -134,6 +170,7 @@ public String toString() { sb.append("class GroupBrowserData {\n"); sb.append(" groups: ").append(toIndentedString(groups)).append("\n"); sb.append(" paginationMetadata: ").append(toIndentedString(paginationMetadata)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -177,14 +214,6 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in GroupBrowserData is not found in the empty JSON string", GroupBrowserData.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!GroupBrowserData.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `GroupBrowserData` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } JsonArray jsonArraygroups = jsonObj.getAsJsonArray("groups"); if (jsonArraygroups != null) { // ensure the json data is an array @@ -198,7 +227,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { }; } // validate the optional field `pagination_metadata` - if (jsonObj.getAsJsonObject("pagination_metadata") != null) { + if (jsonObj.get("pagination_metadata") != null && !jsonObj.get("pagination_metadata").isJsonNull()) { PaginationMetadata.validateJsonObject(jsonObj.getAsJsonObject("pagination_metadata")); } } @@ -218,6 +247,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, GroupBrowserData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -225,7 +271,25 @@ public void write(JsonWriter out, GroupBrowserData value) throws IOException { public GroupBrowserData read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + GroupBrowserData instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 c9c1e11..b37aff4 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 @@ -31,9 +31,9 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; import io.tiledb.cloud.rest_api.JSON; @@ -41,13 +41,17 @@ * 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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class GroupBrowserFilterData { public static final String SERIALIZED_NAME_NAMESPACES = "namespaces"; @SerializedName(SERIALIZED_NAME_NAMESPACES) private List namespaces = null; - public GroupBrowserFilterData() { + public static final String SERIALIZED_NAME_GROUP_TYPES = "group_types"; + @SerializedName(SERIALIZED_NAME_GROUP_TYPES) + private List groupTypes = null; + + public GroupBrowserFilterData() { } public GroupBrowserFilterData namespaces(List namespaces) { @@ -81,6 +85,72 @@ public void setNamespaces(List namespaces) { } + public GroupBrowserFilterData groupTypes(List groupTypes) { + + this.groupTypes = groupTypes; + return this; + } + + public GroupBrowserFilterData addGroupTypesItem(GroupType groupTypesItem) { + if (this.groupTypes == null) { + this.groupTypes = new ArrayList<>(); + } + this.groupTypes.add(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; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public GroupBrowserFilterData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + @Override public boolean equals(Object o) { @@ -91,12 +161,14 @@ public boolean equals(Object o) { return false; } GroupBrowserFilterData groupBrowserFilterData = (GroupBrowserFilterData) o; - return Objects.equals(this.namespaces, groupBrowserFilterData.namespaces); + return Objects.equals(this.namespaces, groupBrowserFilterData.namespaces) && + Objects.equals(this.groupTypes, groupBrowserFilterData.groupTypes)&& + Objects.equals(this.additionalProperties, groupBrowserFilterData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(namespaces); + return Objects.hash(namespaces, groupTypes, additionalProperties); } @Override @@ -104,6 +176,8 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GroupBrowserFilterData {\n"); sb.append(" namespaces: ").append(toIndentedString(namespaces)).append("\n"); + sb.append(" groupTypes: ").append(toIndentedString(groupTypes)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -127,6 +201,7 @@ private String toIndentedString(Object o) { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); openapiFields.add("namespaces"); + openapiFields.add("group_types"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -146,18 +221,14 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in GroupBrowserFilterData is not found in the empty JSON string", GroupBrowserFilterData.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!GroupBrowserFilterData.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `GroupBrowserFilterData` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } // ensure the json data is an array - if (jsonObj.get("namespaces") != null && !jsonObj.get("namespaces").isJsonArray()) { + 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()) { + 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())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -175,6 +246,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, GroupBrowserFilterData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -182,7 +270,25 @@ public void write(JsonWriter out, GroupBrowserFilterData value) throws IOExcepti public GroupBrowserFilterData read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + GroupBrowserFilterData instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 0d10649..0f63349 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 @@ -25,8 +25,6 @@ import java.util.ArrayList; import java.util.List; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonArray; import com.google.gson.JsonElement; @@ -34,15 +32,17 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class GroupChanges { public static final String SERIALIZED_NAME_ADD = "add"; @SerializedName(SERIALIZED_NAME_ADD) @@ -52,7 +52,7 @@ public class GroupChanges { @SerializedName(SERIALIZED_NAME_REMOVE) private List remove = null; - public GroupChanges() { + public GroupChanges() { } public GroupChanges add(List add) { @@ -116,6 +116,41 @@ public void setRemove(List remove) { this.remove = remove; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public GroupChanges putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -128,12 +163,13 @@ public boolean equals(Object o) { } GroupChanges groupChanges = (GroupChanges) o; return Objects.equals(this.add, groupChanges.add) && - Objects.equals(this.remove, groupChanges.remove); + Objects.equals(this.remove, groupChanges.remove)&& + Objects.equals(this.additionalProperties, groupChanges.additionalProperties); } @Override public int hashCode() { - return Objects.hash(add, remove); + return Objects.hash(add, remove, additionalProperties); } @Override @@ -142,6 +178,7 @@ public String toString() { sb.append("class GroupChanges {\n"); sb.append(" add: ").append(toIndentedString(add)).append("\n"); sb.append(" remove: ").append(toIndentedString(remove)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -185,14 +222,6 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in GroupChanges is not found in the empty JSON string", GroupChanges.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!GroupChanges.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `GroupChanges` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } JsonArray jsonArrayadd = jsonObj.getAsJsonArray("add"); if (jsonArrayadd != null) { // ensure the json data is an array @@ -234,6 +263,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, GroupChanges value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -241,7 +287,25 @@ public void write(JsonWriter out, GroupChanges value) throws IOException { public GroupChanges read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + GroupChanges instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 1443572..8edd821 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 @@ -25,8 +25,6 @@ import java.util.ArrayList; import java.util.List; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonArray; import com.google.gson.JsonElement; @@ -34,15 +32,17 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class GroupContents { public static final String SERIALIZED_NAME_ENTRIES = "entries"; @SerializedName(SERIALIZED_NAME_ENTRIES) @@ -52,7 +52,7 @@ public class GroupContents { @SerializedName(SERIALIZED_NAME_PAGINATION_METADATA) private PaginationMetadata paginationMetadata; - public GroupContents() { + public GroupContents() { } public GroupContents entries(List entries) { @@ -108,6 +108,41 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { this.paginationMetadata = paginationMetadata; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public GroupContents putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -120,12 +155,13 @@ public boolean equals(Object o) { } GroupContents groupContents = (GroupContents) o; return Objects.equals(this.entries, groupContents.entries) && - Objects.equals(this.paginationMetadata, groupContents.paginationMetadata); + Objects.equals(this.paginationMetadata, groupContents.paginationMetadata)&& + Objects.equals(this.additionalProperties, groupContents.additionalProperties); } @Override public int hashCode() { - return Objects.hash(entries, paginationMetadata); + return Objects.hash(entries, paginationMetadata, additionalProperties); } @Override @@ -134,6 +170,7 @@ public String toString() { sb.append("class GroupContents {\n"); sb.append(" entries: ").append(toIndentedString(entries)).append("\n"); sb.append(" paginationMetadata: ").append(toIndentedString(paginationMetadata)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -177,14 +214,6 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in GroupContents is not found in the empty JSON string", GroupContents.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!GroupContents.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `GroupContents` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } JsonArray jsonArrayentries = jsonObj.getAsJsonArray("entries"); if (jsonArrayentries != null) { // ensure the json data is an array @@ -198,7 +227,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { }; } // validate the optional field `pagination_metadata` - if (jsonObj.getAsJsonObject("pagination_metadata") != null) { + if (jsonObj.get("pagination_metadata") != null && !jsonObj.get("pagination_metadata").isJsonNull()) { PaginationMetadata.validateJsonObject(jsonObj.getAsJsonObject("pagination_metadata")); } } @@ -218,6 +247,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, GroupContents value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -225,7 +271,25 @@ public void write(JsonWriter out, GroupContents value) throws IOException { public GroupContents read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + GroupContents instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 7bdc1d7..2c2c072 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 @@ -31,9 +31,9 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; import io.tiledb.cloud.rest_api.JSON; @@ -41,13 +41,13 @@ * 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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class GroupContentsFilterData { public static final String SERIALIZED_NAME_NAMESPACES = "namespaces"; @SerializedName(SERIALIZED_NAME_NAMESPACES) private List namespaces = null; - public GroupContentsFilterData() { + public GroupContentsFilterData() { } public GroupContentsFilterData namespaces(List namespaces) { @@ -80,6 +80,41 @@ public void setNamespaces(List namespaces) { this.namespaces = namespaces; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public GroupContentsFilterData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -91,12 +126,13 @@ public boolean equals(Object o) { return false; } GroupContentsFilterData groupContentsFilterData = (GroupContentsFilterData) o; - return Objects.equals(this.namespaces, groupContentsFilterData.namespaces); + return Objects.equals(this.namespaces, groupContentsFilterData.namespaces)&& + Objects.equals(this.additionalProperties, groupContentsFilterData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(namespaces); + return Objects.hash(namespaces, additionalProperties); } @Override @@ -104,6 +140,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GroupContentsFilterData {\n"); sb.append(" namespaces: ").append(toIndentedString(namespaces)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -146,16 +183,8 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in GroupContentsFilterData is not found in the empty JSON string", GroupContentsFilterData.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!GroupContentsFilterData.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `GroupContentsFilterData` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } // ensure the json data is an array - if (jsonObj.get("namespaces") != null && !jsonObj.get("namespaces").isJsonArray()) { + 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())); } } @@ -175,6 +204,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, GroupContentsFilterData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -182,7 +228,25 @@ public void write(JsonWriter out, GroupContentsFilterData value) throws IOExcept public GroupContentsFilterData read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + GroupContentsFilterData instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 c2b58a6..f10112b 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 @@ -31,9 +31,9 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; import io.tiledb.cloud.rest_api.JSON; @@ -41,7 +41,7 @@ * Initial attributes for the creation of a group. */ @ApiModel(description = "Initial attributes for the creation of a group.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class GroupCreate { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) @@ -79,7 +79,7 @@ public class GroupCreate { @SerializedName(SERIALIZED_NAME_LICENSE_TEXT) private String licenseText; - public GroupCreate() { + public GroupCreate() { } public GroupCreate description(String description) { @@ -296,6 +296,41 @@ public void setLicenseText(String licenseText) { this.licenseText = licenseText; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public GroupCreate putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -315,12 +350,13 @@ public boolean equals(Object o) { Objects.equals(this.accessCredentialsName, groupCreate.accessCredentialsName) && Objects.equals(this.tags, groupCreate.tags) && Objects.equals(this.licenseId, groupCreate.licenseId) && - Objects.equals(this.licenseText, groupCreate.licenseText); + Objects.equals(this.licenseText, groupCreate.licenseText)&& + Objects.equals(this.additionalProperties, groupCreate.additionalProperties); } @Override public int hashCode() { - return Objects.hash(description, name, parent, uri, logo, accessCredentialsName, tags, licenseId, licenseText); + return Objects.hash(description, name, parent, uri, logo, accessCredentialsName, tags, licenseId, licenseText, additionalProperties); } @Override @@ -336,6 +372,7 @@ 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(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -386,40 +423,32 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in GroupCreate is not found in the empty JSON string", GroupCreate.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!GroupCreate.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `GroupCreate` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } - if (jsonObj.get("description") != null && !jsonObj.get("description").isJsonPrimitive()) { + 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("name") != null && !jsonObj.get("name").isJsonPrimitive()) { + 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("parent") != null && !jsonObj.get("parent").isJsonPrimitive()) { + if ((jsonObj.get("parent") != null && !jsonObj.get("parent").isJsonNull()) && !jsonObj.get("parent").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `parent` to be a primitive type in the JSON string but got `%s`", jsonObj.get("parent").toString())); } - if (jsonObj.get("uri") != null && !jsonObj.get("uri").isJsonPrimitive()) { + 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())); } - if (jsonObj.get("logo") != null && !jsonObj.get("logo").isJsonPrimitive()) { + 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").isJsonPrimitive()) { + 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").isJsonArray()) { + 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").isJsonPrimitive()) { + if ((jsonObj.get("license_id") != null && !jsonObj.get("license_id").isJsonNull()) && !jsonObj.get("license_id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `license_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("license_id").toString())); } - if (jsonObj.get("license_text") != null && !jsonObj.get("license_text").isJsonPrimitive()) { + 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())); } } @@ -439,6 +468,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, GroupCreate value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -446,7 +492,25 @@ public void write(JsonWriter out, GroupCreate value) throws IOException { public GroupCreate read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + GroupCreate instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 857fbc6..8928aea 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 @@ -23,23 +23,23 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class GroupEntry { public static final String SERIALIZED_NAME_MEMBER_ID = "member_id"; @SerializedName(SERIALIZED_NAME_MEMBER_ID) @@ -53,7 +53,7 @@ public class GroupEntry { @SerializedName(SERIALIZED_NAME_ARRAY) private ArrayInfo array; - public GroupEntry() { + public GroupEntry() { } @@ -123,6 +123,41 @@ public void setArray(ArrayInfo array) { this.array = array; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public GroupEntry putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -136,12 +171,13 @@ public boolean equals(Object o) { GroupEntry groupEntry = (GroupEntry) o; return Objects.equals(this.memberId, groupEntry.memberId) && Objects.equals(this.group, groupEntry.group) && - Objects.equals(this.array, groupEntry.array); + Objects.equals(this.array, groupEntry.array)&& + Objects.equals(this.additionalProperties, groupEntry.additionalProperties); } @Override public int hashCode() { - return Objects.hash(memberId, group, array); + return Objects.hash(memberId, group, array, additionalProperties); } @Override @@ -151,6 +187,7 @@ public String toString() { sb.append(" memberId: ").append(toIndentedString(memberId)).append("\n"); sb.append(" group: ").append(toIndentedString(group)).append("\n"); sb.append(" array: ").append(toIndentedString(array)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -195,23 +232,15 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in GroupEntry is not found in the empty JSON string", GroupEntry.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!GroupEntry.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `GroupEntry` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } - if (jsonObj.get("member_id") != null && !jsonObj.get("member_id").isJsonPrimitive()) { + 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.getAsJsonObject("group") != null) { + if (jsonObj.get("group") != null && !jsonObj.get("group").isJsonNull()) { GroupInfo.validateJsonObject(jsonObj.getAsJsonObject("group")); } // validate the optional field `array` - if (jsonObj.getAsJsonObject("array") != null) { + if (jsonObj.get("array") != null && !jsonObj.get("array").isJsonNull()) { ArrayInfo.validateJsonObject(jsonObj.getAsJsonObject("array")); } } @@ -231,6 +260,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, GroupEntry value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -238,7 +284,25 @@ public void write(JsonWriter out, GroupEntry value) throws IOException { public GroupEntry read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + GroupEntry instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 a3b2f87..885ef53 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 @@ -27,7 +27,6 @@ import java.util.ArrayList; import java.util.List; -import io.tiledb.cloud.rest_api.JSON; import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; @@ -36,15 +35,17 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; /** * metadata of a group */ @ApiModel(description = "metadata of a group") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class GroupInfo { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -90,6 +91,10 @@ public class GroupInfo { @SerializedName(SERIALIZED_NAME_ALLOWED_ACTIONS) private List allowedActions = null; + public static final String SERIALIZED_NAME_GROUP_TYPE = "group_type"; + @SerializedName(SERIALIZED_NAME_GROUP_TYPE) + private GroupType groupType; + public static final String SERIALIZED_NAME_LOGO = "logo"; @SerializedName(SERIALIZED_NAME_LOGO) private String logo; @@ -118,7 +123,7 @@ public class GroupInfo { @SerializedName(SERIALIZED_NAME_LICENSE_TEXT) private String licenseText; - public GroupInfo() { + public GroupInfo() { } public GroupInfo id(String id) { @@ -382,6 +387,29 @@ public void setAllowedActions(List 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; @@ -550,6 +578,41 @@ public void setLicenseText(String licenseText) { this.licenseText = licenseText; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public GroupInfo putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -572,13 +635,15 @@ public boolean equals(Object o) { Objects.equals(this.size, groupInfo.size) && Objects.equals(this.lastAccessed, groupInfo.lastAccessed) && Objects.equals(this.allowedActions, groupInfo.allowedActions) && + Objects.equals(this.groupType, groupInfo.groupType) && Objects.equals(this.logo, groupInfo.logo) && Objects.equals(this.accessCredentialsName, groupInfo.accessCredentialsName) && Objects.equals(this.shareCount, groupInfo.shareCount) && 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.additionalProperties, groupInfo.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -587,7 +652,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, logo, accessCredentialsName, shareCount, publicShare, tags, licenseId, licenseText); + return Objects.hash(id, namespace, name, description, uri, tiledbUri, assetCount, groupCount, size, lastAccessed, allowedActions, groupType, logo, accessCredentialsName, shareCount, publicShare, tags, licenseId, licenseText, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -612,6 +677,7 @@ public String toString() { sb.append(" size: ").append(toIndentedString(size)).append("\n"); sb.append(" lastAccessed: ").append(toIndentedString(lastAccessed)).append("\n"); sb.append(" allowedActions: ").append(toIndentedString(allowedActions)).append("\n"); + sb.append(" groupType: ").append(toIndentedString(groupType)).append("\n"); sb.append(" logo: ").append(toIndentedString(logo)).append("\n"); sb.append(" accessCredentialsName: ").append(toIndentedString(accessCredentialsName)).append("\n"); sb.append(" shareCount: ").append(toIndentedString(shareCount)).append("\n"); @@ -619,6 +685,7 @@ 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(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -652,6 +719,7 @@ private String toIndentedString(Object o) { openapiFields.add("size"); openapiFields.add("last_accessed"); openapiFields.add("allowed_actions"); + openapiFields.add("group_type"); openapiFields.add("logo"); openapiFields.add("access_credentials_name"); openapiFields.add("share_count"); @@ -659,7 +727,6 @@ private String toIndentedString(Object o) { openapiFields.add("tags"); openapiFields.add("license_id"); openapiFields.add("license_text"); - openapiFields.add("group_type"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -679,50 +746,42 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in GroupInfo is not found in the empty JSON string", GroupInfo.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!GroupInfo.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `GroupInfo` properties. JSON: %s", entry.getKey(), jsonObj.toString())); - } - } - if (jsonObj.get("id") != null && !jsonObj.get("id").isJsonPrimitive()) { + 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("namespace") != null && !jsonObj.get("namespace").isJsonPrimitive()) { + 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").isJsonPrimitive()) { + 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("description") != null && !jsonObj.get("description").isJsonPrimitive()) { + 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("uri") != null && !jsonObj.get("uri").isJsonPrimitive()) { + 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())); } - if (jsonObj.get("tiledb_uri") != null && !jsonObj.get("tiledb_uri").isJsonPrimitive()) { + 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").isJsonArray()) { + 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())); } - if (jsonObj.get("logo") != null && !jsonObj.get("logo").isJsonPrimitive()) { + 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").isJsonPrimitive()) { + 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").isJsonArray()) { + 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").isJsonPrimitive()) { + if ((jsonObj.get("license_id") != null && !jsonObj.get("license_id").isJsonNull()) && !jsonObj.get("license_id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `license_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("license_id").toString())); } - if (jsonObj.get("license_text") != null && !jsonObj.get("license_text").isJsonPrimitive()) { + 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())); } } @@ -742,6 +801,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, GroupInfo value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -749,7 +825,25 @@ public void write(JsonWriter out, GroupInfo value) throws IOException { public GroupInfo read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + GroupInfo instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 9e37763..df2b9b1 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 @@ -23,23 +23,23 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class GroupMember { public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) @@ -53,7 +53,7 @@ public class GroupMember { @SerializedName(SERIALIZED_NAME_MEMBER_TYPE) private GroupMemberType memberType; - public GroupMember() { + public GroupMember() { } public GroupMember namespace(String namespace) { @@ -124,6 +124,41 @@ public void setMemberType(GroupMemberType memberType) { this.memberType = memberType; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public GroupMember putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -137,12 +172,13 @@ public boolean equals(Object o) { GroupMember groupMember = (GroupMember) o; return Objects.equals(this.namespace, groupMember.namespace) && Objects.equals(this.name, groupMember.name) && - Objects.equals(this.memberType, groupMember.memberType); + Objects.equals(this.memberType, groupMember.memberType)&& + Objects.equals(this.additionalProperties, groupMember.additionalProperties); } @Override public int hashCode() { - return Objects.hash(namespace, name, memberType); + return Objects.hash(namespace, name, memberType, additionalProperties); } @Override @@ -152,6 +188,7 @@ public String toString() { sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" memberType: ").append(toIndentedString(memberType)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -196,18 +233,10 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in GroupMember is not found in the empty JSON string", GroupMember.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!GroupMember.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `GroupMember` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } - if (jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonPrimitive()) { + 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").isJsonPrimitive()) { + 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())); } } @@ -227,6 +256,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, GroupMember value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -234,7 +280,25 @@ public void write(JsonWriter out, GroupMember value) throws IOException { public GroupMember read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + GroupMember instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 816d2c9..079806a 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 @@ -37,7 +37,21 @@ public enum GroupMemberAssetType { ML_MODEL("ml_model"), - FILE("file"); + FILE("file"), + + BIOIMG("bioimg"), + + SOMA("soma"), + + VCF("vcf"), + + POINTCLOUD("pointcloud"), + + RASTER("raster"), + + GEOMETRY("geometry"), + + VECTOR_SEARCH("vector_search"); private String 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 b5d3467..cb9e953 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 @@ -31,9 +31,9 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; import io.tiledb.cloud.rest_api.JSON; @@ -41,7 +41,7 @@ * Initial attributes for the registration of a an existing group. */ @ApiModel(description = "Initial attributes for the registration of a an existing group.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class GroupRegister { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) @@ -79,7 +79,7 @@ public class GroupRegister { @SerializedName(SERIALIZED_NAME_LICENSE_TEXT) private String licenseText; - public GroupRegister() { + public GroupRegister() { } public GroupRegister description(String description) { @@ -296,6 +296,41 @@ public void setLicenseText(String licenseText) { this.licenseText = licenseText; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public GroupRegister putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -315,12 +350,13 @@ public boolean equals(Object o) { Objects.equals(this.accessCredentialsName, groupRegister.accessCredentialsName) && Objects.equals(this.tags, groupRegister.tags) && Objects.equals(this.licenseId, groupRegister.licenseId) && - Objects.equals(this.licenseText, groupRegister.licenseText); + Objects.equals(this.licenseText, groupRegister.licenseText)&& + Objects.equals(this.additionalProperties, groupRegister.additionalProperties); } @Override public int hashCode() { - return Objects.hash(description, name, parent, uri, logo, accessCredentialsName, tags, licenseId, licenseText); + return Objects.hash(description, name, parent, uri, logo, accessCredentialsName, tags, licenseId, licenseText, additionalProperties); } @Override @@ -336,6 +372,7 @@ 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(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -386,40 +423,32 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in GroupRegister is not found in the empty JSON string", GroupRegister.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!GroupRegister.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `GroupRegister` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } - if (jsonObj.get("description") != null && !jsonObj.get("description").isJsonPrimitive()) { + 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("name") != null && !jsonObj.get("name").isJsonPrimitive()) { + 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("parent") != null && !jsonObj.get("parent").isJsonPrimitive()) { + if ((jsonObj.get("parent") != null && !jsonObj.get("parent").isJsonNull()) && !jsonObj.get("parent").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `parent` to be a primitive type in the JSON string but got `%s`", jsonObj.get("parent").toString())); } - if (jsonObj.get("uri") != null && !jsonObj.get("uri").isJsonPrimitive()) { + 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())); } - if (jsonObj.get("logo") != null && !jsonObj.get("logo").isJsonPrimitive()) { + 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").isJsonPrimitive()) { + 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").isJsonArray()) { + 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").isJsonPrimitive()) { + if ((jsonObj.get("license_id") != null && !jsonObj.get("license_id").isJsonNull()) && !jsonObj.get("license_id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `license_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("license_id").toString())); } - if (jsonObj.get("license_text") != null && !jsonObj.get("license_text").isJsonPrimitive()) { + 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())); } } @@ -439,6 +468,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, GroupRegister value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -446,7 +492,25 @@ public void write(JsonWriter out, GroupRegister value) throws IOException { public GroupRegister read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + GroupRegister instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 a4c64a7..731ac3a 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 @@ -25,23 +25,23 @@ import java.util.ArrayList; import java.util.List; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class GroupSharing { public static final String SERIALIZED_NAME_GROUP_ACTIONS = "group_actions"; @SerializedName(SERIALIZED_NAME_GROUP_ACTIONS) @@ -59,7 +59,7 @@ public class GroupSharing { @SerializedName(SERIALIZED_NAME_NAMESPACE_TYPE) private String namespaceType; - public GroupSharing() { + public GroupSharing() { } public GroupSharing groupActions(List groupActions) { @@ -169,6 +169,41 @@ public void setNamespaceType(String namespaceType) { this.namespaceType = namespaceType; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public GroupSharing putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -183,12 +218,13 @@ public boolean equals(Object o) { return Objects.equals(this.groupActions, groupSharing.groupActions) && Objects.equals(this.arrayActions, groupSharing.arrayActions) && Objects.equals(this.namespace, groupSharing.namespace) && - Objects.equals(this.namespaceType, groupSharing.namespaceType); + Objects.equals(this.namespaceType, groupSharing.namespaceType)&& + Objects.equals(this.additionalProperties, groupSharing.additionalProperties); } @Override public int hashCode() { - return Objects.hash(groupActions, arrayActions, namespace, namespaceType); + return Objects.hash(groupActions, arrayActions, namespace, namespaceType, additionalProperties); } @Override @@ -199,6 +235,7 @@ public String toString() { sb.append(" arrayActions: ").append(toIndentedString(arrayActions)).append("\n"); sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); sb.append(" namespaceType: ").append(toIndentedString(namespaceType)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -244,26 +281,18 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in GroupSharing is not found in the empty JSON string", GroupSharing.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!GroupSharing.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `GroupSharing` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } // ensure the json data is an array - if (jsonObj.get("group_actions") != null && !jsonObj.get("group_actions").isJsonArray()) { + 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").isJsonArray()) { + 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").isJsonPrimitive()) { + 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("namespace_type") != null && !jsonObj.get("namespace_type").isJsonPrimitive()) { + if ((jsonObj.get("namespace_type") != null && !jsonObj.get("namespace_type").isJsonNull()) && !jsonObj.get("namespace_type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `namespace_type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace_type").toString())); } } @@ -283,6 +312,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, GroupSharing value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -290,7 +336,25 @@ public void write(JsonWriter out, GroupSharing value) throws IOException { public GroupSharing read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + GroupSharing instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 782e1b9..c5b8d56 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 @@ -25,23 +25,23 @@ import java.util.ArrayList; import java.util.List; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class GroupSharingRequest { public static final String SERIALIZED_NAME_GROUP_ACTIONS = "group_actions"; @SerializedName(SERIALIZED_NAME_GROUP_ACTIONS) @@ -55,7 +55,7 @@ public class GroupSharingRequest { @SerializedName(SERIALIZED_NAME_NAMESPACE) private String namespace; - public GroupSharingRequest() { + public GroupSharingRequest() { } public GroupSharingRequest groupActions(List groupActions) { @@ -142,6 +142,41 @@ public void setNamespace(String namespace) { this.namespace = namespace; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public GroupSharingRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -155,12 +190,13 @@ public boolean equals(Object o) { GroupSharingRequest groupSharingRequest = (GroupSharingRequest) o; return Objects.equals(this.groupActions, groupSharingRequest.groupActions) && Objects.equals(this.arrayActions, groupSharingRequest.arrayActions) && - Objects.equals(this.namespace, groupSharingRequest.namespace); + Objects.equals(this.namespace, groupSharingRequest.namespace)&& + Objects.equals(this.additionalProperties, groupSharingRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(groupActions, arrayActions, namespace); + return Objects.hash(groupActions, arrayActions, namespace, additionalProperties); } @Override @@ -170,6 +206,7 @@ public String toString() { sb.append(" groupActions: ").append(toIndentedString(groupActions)).append("\n"); sb.append(" arrayActions: ").append(toIndentedString(arrayActions)).append("\n"); sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -214,23 +251,15 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in GroupSharingRequest is not found in the empty JSON string", GroupSharingRequest.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!GroupSharingRequest.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `GroupSharingRequest` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } // ensure the json data is an array - if (jsonObj.get("group_actions") != null && !jsonObj.get("group_actions").isJsonArray()) { + 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").isJsonArray()) { + 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").isJsonPrimitive()) { + 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())); } } @@ -250,6 +279,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, GroupSharingRequest value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -257,7 +303,25 @@ public void write(JsonWriter out, GroupSharingRequest value) throws IOException public GroupSharingRequest read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + GroupSharingRequest instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 new file mode 100644 index 0000000..42869a4 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupType.java @@ -0,0 +1,81 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.2.19 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + +import java.io.IOException; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; + +/** + * Group type is a hint for the groups contents and TileDB Cloud may use a specialized viewer for each type + */ +@JsonAdapter(GroupType.Adapter.class) +public enum GroupType { + + GENERIC("generic"), + + VCF("vcf"), + + SOMA("soma"), + + BIOIMG("bioimg"), + + POINTCLOUD("pointcloud"), + + RASTER("raster"), + + GEOMETRY("geometry"), + + VECTOR_SEARCH("vector_search"); + + private String value; + + GroupType(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static GroupType fromValue(String value) { + for (GroupType b : GroupType.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 GroupType enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public GroupType read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return 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 new file mode 100644 index 0000000..9ddc9e0 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/GroupTypeMetadataKey.java @@ -0,0 +1,67 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.2.19 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + +import java.io.IOException; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; + +/** + * A group type is stored in the group metadata using this key + */ +@JsonAdapter(GroupTypeMetadataKey.Adapter.class) +public enum GroupTypeMetadataKey { + + DATASET_TYPE("dataset_type"); + + private String value; + + GroupTypeMetadataKey(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static GroupTypeMetadataKey fromValue(String value) { + for (GroupTypeMetadataKey b : GroupTypeMetadataKey.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 GroupTypeMetadataKey enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public GroupTypeMetadataKey read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return 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 275a7be..33c1d12 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 @@ -24,8 +24,6 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; - -import io.tiledb.cloud.rest_api.JSON; import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; @@ -34,15 +32,17 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class GroupUpdate { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) @@ -72,7 +72,7 @@ public class GroupUpdate { @SerializedName(SERIALIZED_NAME_LICENSE_TEXT) private String licenseText; - public GroupUpdate() { + public GroupUpdate() { } public GroupUpdate description(String description) { @@ -243,6 +243,41 @@ public void setLicenseText(String licenseText) { this.licenseText = licenseText; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public GroupUpdate putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -260,7 +295,8 @@ public boolean equals(Object o) { Objects.equals(this.accessCredentialsName, groupUpdate.accessCredentialsName) && Objects.equals(this.tags, groupUpdate.tags) && Objects.equals(this.licenseId, groupUpdate.licenseId) && - Objects.equals(this.licenseText, groupUpdate.licenseText); + Objects.equals(this.licenseText, groupUpdate.licenseText)&& + Objects.equals(this.additionalProperties, groupUpdate.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -269,7 +305,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(description, name, logo, accessCredentialsName, tags, licenseId, licenseText); + return Objects.hash(description, name, logo, accessCredentialsName, tags, licenseId, licenseText, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -290,6 +326,7 @@ 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(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -338,34 +375,26 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in GroupUpdate is not found in the empty JSON string", GroupUpdate.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!GroupUpdate.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `GroupUpdate` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } - if (jsonObj.get("description") != null && !jsonObj.get("description").isJsonPrimitive()) { + 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("name") != null && !jsonObj.get("name").isJsonPrimitive()) { + 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").isJsonPrimitive()) { + 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").isJsonPrimitive()) { + 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").isJsonArray()) { + 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").isJsonPrimitive()) { + if ((jsonObj.get("license_id") != null && !jsonObj.get("license_id").isJsonNull()) && !jsonObj.get("license_id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `license_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("license_id").toString())); } - if (jsonObj.get("license_text") != null && !jsonObj.get("license_text").isJsonPrimitive()) { + 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())); } } @@ -385,6 +414,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, GroupUpdate value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -392,7 +438,25 @@ public void write(JsonWriter out, GroupUpdate value) throws IOException { public GroupUpdate read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + GroupUpdate instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/InlineObject.java b/src/main/java/io/tiledb/cloud/rest_api/model/InlineObject.java deleted file mode 100644 index d3493d3..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/model/InlineObject.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; - -/** - * Password to update - */ -@ApiModel(description = "Password to update") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") -public class InlineObject { - public static final String SERIALIZED_NAME_PASSWORD = "password"; - @SerializedName(SERIALIZED_NAME_PASSWORD) - private String password; - - public InlineObject() { - } - - public InlineObject 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; - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - InlineObject inlineObject = (InlineObject) o; - return Objects.equals(this.password, inlineObject.password); - } - - @Override - public int hashCode() { - return Objects.hash(password); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class InlineObject {\n"); - sb.append(" password: ").append(toIndentedString(password)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/InlineResponse200.java b/src/main/java/io/tiledb/cloud/rest_api/model/InlineResponse200.java deleted file mode 100644 index a325679..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/model/InlineResponse200.java +++ /dev/null @@ -1,94 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 io.swagger.annotations.ApiModelProperty; - -/** - * InlineResponse200 - */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") -public class InlineResponse200 { - public static final String SERIALIZED_NAME_STATS = "stats"; - @SerializedName(SERIALIZED_NAME_STATS) - private String stats; - - public InlineResponse200() { - } - - public InlineResponse200 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; - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - InlineResponse200 inlineResponse200 = (InlineResponse200) o; - return Objects.equals(this.stats, inlineResponse200.stats); - } - - @Override - public int hashCode() { - return Objects.hash(stats); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class InlineResponse200 {\n"); - sb.append(" stats: ").append(toIndentedString(stats)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/Invitation.java b/src/main/java/io/tiledb/cloud/rest_api/model/Invitation.java index 7c5d816..84e3a0e 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 @@ -24,23 +24,23 @@ import java.io.IOException; import java.time.OffsetDateTime; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class Invitation { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -54,6 +54,10 @@ public class Invitation { @SerializedName(SERIALIZED_NAME_OWNER_NAMESPACE_UUID) private String ownerNamespaceUuid; + public static final String SERIALIZED_NAME_INVITER_UUID = "inviter_uuid"; + @SerializedName(SERIALIZED_NAME_INVITER_UUID) + private String inviterUuid; + public static final String SERIALIZED_NAME_USER_NAMESPACE_UUID = "user_namespace_uuid"; @SerializedName(SERIALIZED_NAME_USER_NAMESPACE_UUID) private String userNamespaceUuid; @@ -70,10 +74,18 @@ public class Invitation { @SerializedName(SERIALIZED_NAME_ORGANIZATION_ROLE) private OrganizationRoles organizationRole; + public static final String SERIALIZED_NAME_ORGANIZATION_UUID = "organization_uuid"; + @SerializedName(SERIALIZED_NAME_ORGANIZATION_UUID) + private String organizationUuid; + public static final String SERIALIZED_NAME_ARRAY_UUID = "array_uuid"; @SerializedName(SERIALIZED_NAME_ARRAY_UUID) private String arrayUuid; + public static final String SERIALIZED_NAME_GROUP_UUID = "group_uuid"; + @SerializedName(SERIALIZED_NAME_GROUP_UUID) + private String groupUuid; + public static final String SERIALIZED_NAME_ARRAY_NAME = "array_name"; @SerializedName(SERIALIZED_NAME_ARRAY_NAME) private String arrayName; @@ -86,6 +98,10 @@ public class Invitation { @SerializedName(SERIALIZED_NAME_ACTIONS) private String actions; + public static final String SERIALIZED_NAME_GROUP_ACTIONS = "group_actions"; + @SerializedName(SERIALIZED_NAME_GROUP_ACTIONS) + private String groupActions; + public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) private InvitationStatus status; @@ -102,7 +118,11 @@ public class Invitation { @SerializedName(SERIALIZED_NAME_ACCEPTED_AT) private OffsetDateTime acceptedAt; - public Invitation() { + public static final String SERIALIZED_NAME_NAMESPACE_INVITED = "namespace_invited"; + @SerializedName(SERIALIZED_NAME_NAMESPACE_INVITED) + private String namespaceInvited; + + public Invitation() { } public Invitation id(String id) { @@ -174,6 +194,29 @@ public void setOwnerNamespaceUuid(String 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; @@ -266,6 +309,29 @@ public void setOrganizationRole(OrganizationRoles 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; @@ -289,6 +355,29 @@ public void setArrayUuid(String 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; @@ -358,6 +447,29 @@ public void setActions(String 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; @@ -450,6 +562,64 @@ public void setAcceptedAt(OffsetDateTime 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; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public Invitation putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + @Override public boolean equals(Object o) { @@ -463,23 +633,29 @@ public boolean equals(Object o) { return Objects.equals(this.id, invitation.id) && Objects.equals(this.invitationType, invitation.invitationType) && Objects.equals(this.ownerNamespaceUuid, invitation.ownerNamespaceUuid) && + Objects.equals(this.inviterUuid, invitation.inviterUuid) && Objects.equals(this.userNamespaceUuid, invitation.userNamespaceUuid) && Objects.equals(this.organizationUserUuid, invitation.organizationUserUuid) && Objects.equals(this.organizationName, invitation.organizationName) && Objects.equals(this.organizationRole, invitation.organizationRole) && + Objects.equals(this.organizationUuid, invitation.organizationUuid) && Objects.equals(this.arrayUuid, invitation.arrayUuid) && + Objects.equals(this.groupUuid, invitation.groupUuid) && Objects.equals(this.arrayName, invitation.arrayName) && Objects.equals(this.email, invitation.email) && Objects.equals(this.actions, invitation.actions) && + Objects.equals(this.groupActions, invitation.groupActions) && Objects.equals(this.status, invitation.status) && Objects.equals(this.createdAt, invitation.createdAt) && Objects.equals(this.expiresAt, invitation.expiresAt) && - Objects.equals(this.acceptedAt, invitation.acceptedAt); + Objects.equals(this.acceptedAt, invitation.acceptedAt) && + Objects.equals(this.namespaceInvited, invitation.namespaceInvited)&& + Objects.equals(this.additionalProperties, invitation.additionalProperties); } @Override public int hashCode() { - return Objects.hash(id, invitationType, ownerNamespaceUuid, userNamespaceUuid, organizationUserUuid, organizationName, organizationRole, arrayUuid, arrayName, email, actions, status, createdAt, expiresAt, acceptedAt); + return Objects.hash(id, invitationType, ownerNamespaceUuid, inviterUuid, userNamespaceUuid, organizationUserUuid, organizationName, organizationRole, organizationUuid, arrayUuid, groupUuid, arrayName, email, actions, groupActions, status, createdAt, expiresAt, acceptedAt, namespaceInvited, additionalProperties); } @Override @@ -489,18 +665,24 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" invitationType: ").append(toIndentedString(invitationType)).append("\n"); sb.append(" ownerNamespaceUuid: ").append(toIndentedString(ownerNamespaceUuid)).append("\n"); + sb.append(" inviterUuid: ").append(toIndentedString(inviterUuid)).append("\n"); sb.append(" userNamespaceUuid: ").append(toIndentedString(userNamespaceUuid)).append("\n"); sb.append(" organizationUserUuid: ").append(toIndentedString(organizationUserUuid)).append("\n"); sb.append(" organizationName: ").append(toIndentedString(organizationName)).append("\n"); sb.append(" organizationRole: ").append(toIndentedString(organizationRole)).append("\n"); + sb.append(" organizationUuid: ").append(toIndentedString(organizationUuid)).append("\n"); sb.append(" arrayUuid: ").append(toIndentedString(arrayUuid)).append("\n"); + sb.append(" groupUuid: ").append(toIndentedString(groupUuid)).append("\n"); sb.append(" arrayName: ").append(toIndentedString(arrayName)).append("\n"); sb.append(" email: ").append(toIndentedString(email)).append("\n"); sb.append(" actions: ").append(toIndentedString(actions)).append("\n"); + sb.append(" groupActions: ").append(toIndentedString(groupActions)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" expiresAt: ").append(toIndentedString(expiresAt)).append("\n"); sb.append(" acceptedAt: ").append(toIndentedString(acceptedAt)).append("\n"); + sb.append(" namespaceInvited: ").append(toIndentedString(namespaceInvited)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -526,18 +708,23 @@ private String toIndentedString(Object o) { openapiFields.add("id"); openapiFields.add("invitation_type"); openapiFields.add("owner_namespace_uuid"); + openapiFields.add("inviter_uuid"); openapiFields.add("user_namespace_uuid"); openapiFields.add("organization_user_uuid"); openapiFields.add("organization_name"); openapiFields.add("organization_role"); + openapiFields.add("organization_uuid"); openapiFields.add("array_uuid"); + openapiFields.add("group_uuid"); openapiFields.add("array_name"); openapiFields.add("email"); openapiFields.add("actions"); + openapiFields.add("group_actions"); openapiFields.add("status"); openapiFields.add("created_at"); openapiFields.add("expires_at"); openapiFields.add("accepted_at"); + openapiFields.add("namespace_invited"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -557,41 +744,48 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in Invitation is not found in the empty JSON string", Invitation.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!Invitation.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `Invitation` properties. JSON: %s", entry.getKey(), jsonObj.toString())); - } - } - if (jsonObj.get("id") != null && !jsonObj.get("id").isJsonPrimitive()) { + 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("owner_namespace_uuid") != null && !jsonObj.get("owner_namespace_uuid").isJsonPrimitive()) { + 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())); } - if (jsonObj.get("user_namespace_uuid") != null && !jsonObj.get("user_namespace_uuid").isJsonPrimitive()) { + if ((jsonObj.get("inviter_uuid") != null && !jsonObj.get("inviter_uuid").isJsonNull()) && !jsonObj.get("inviter_uuid").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `inviter_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("inviter_uuid").toString())); + } + if ((jsonObj.get("user_namespace_uuid") != null && !jsonObj.get("user_namespace_uuid").isJsonNull()) && !jsonObj.get("user_namespace_uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `user_namespace_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("user_namespace_uuid").toString())); } - if (jsonObj.get("organization_user_uuid") != null && !jsonObj.get("organization_user_uuid").isJsonPrimitive()) { + if ((jsonObj.get("organization_user_uuid") != null && !jsonObj.get("organization_user_uuid").isJsonNull()) && !jsonObj.get("organization_user_uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `organization_user_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("organization_user_uuid").toString())); } - if (jsonObj.get("organization_name") != null && !jsonObj.get("organization_name").isJsonPrimitive()) { + 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())); } - if (jsonObj.get("array_uuid") != null && !jsonObj.get("array_uuid").isJsonPrimitive()) { + 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())); + } + 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())); } - if (jsonObj.get("array_name") != null && !jsonObj.get("array_name").isJsonPrimitive()) { + if ((jsonObj.get("group_uuid") != null && !jsonObj.get("group_uuid").isJsonNull()) && !jsonObj.get("group_uuid").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `group_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("group_uuid").toString())); + } + if ((jsonObj.get("array_name") != null && !jsonObj.get("array_name").isJsonNull()) && !jsonObj.get("array_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `array_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("array_name").toString())); } - if (jsonObj.get("email") != null && !jsonObj.get("email").isJsonPrimitive()) { + if ((jsonObj.get("email") != null && !jsonObj.get("email").isJsonNull()) && !jsonObj.get("email").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `email` to be a primitive type in the JSON string but got `%s`", jsonObj.get("email").toString())); } - if (jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonPrimitive()) { + if ((jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonNull()) && !jsonObj.get("actions").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `actions` to be a primitive type in the JSON string but got `%s`", jsonObj.get("actions").toString())); } + 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())); + } + 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())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -609,6 +803,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, Invitation value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -616,7 +827,25 @@ public void write(JsonWriter out, Invitation value) throws IOException { public Invitation read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + Invitation instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 46bc53e..ab800d2 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 @@ -25,23 +25,23 @@ import java.util.ArrayList; import java.util.List; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class InvitationArrayShareEmail { public static final String SERIALIZED_NAME_ACTIONS = "actions"; @SerializedName(SERIALIZED_NAME_ACTIONS) @@ -51,7 +51,7 @@ public class InvitationArrayShareEmail { @SerializedName(SERIALIZED_NAME_INVITEE_EMAIL) private List inviteeEmail = new ArrayList<>(); - public InvitationArrayShareEmail() { + public InvitationArrayShareEmail() { } public InvitationArrayShareEmail actions(List actions) { @@ -109,6 +109,41 @@ public void setInviteeEmail(List inviteeEmail) { this.inviteeEmail = inviteeEmail; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public InvitationArrayShareEmail putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -121,12 +156,13 @@ public boolean equals(Object o) { } InvitationArrayShareEmail invitationArrayShareEmail = (InvitationArrayShareEmail) o; return Objects.equals(this.actions, invitationArrayShareEmail.actions) && - Objects.equals(this.inviteeEmail, invitationArrayShareEmail.inviteeEmail); + Objects.equals(this.inviteeEmail, invitationArrayShareEmail.inviteeEmail)&& + Objects.equals(this.additionalProperties, invitationArrayShareEmail.additionalProperties); } @Override public int hashCode() { - return Objects.hash(actions, inviteeEmail); + return Objects.hash(actions, inviteeEmail, additionalProperties); } @Override @@ -135,6 +171,7 @@ public String toString() { sb.append("class InvitationArrayShareEmail {\n"); sb.append(" actions: ").append(toIndentedString(actions)).append("\n"); sb.append(" inviteeEmail: ").append(toIndentedString(inviteeEmail)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -181,14 +218,6 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { } } - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!InvitationArrayShareEmail.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `InvitationArrayShareEmail` properties. JSON: %s", entry.getKey(), jsonObj.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) { @@ -196,11 +225,11 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { } } // ensure the json data is an array - if (jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonArray()) { + 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").isJsonArray()) { + if ((jsonObj.get("invitee_email") != null && !jsonObj.get("invitee_email").isJsonNull()) && !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())); } } @@ -220,6 +249,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, InvitationArrayShareEmail value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -227,7 +273,25 @@ public void write(JsonWriter out, InvitationArrayShareEmail value) throws IOExce public InvitationArrayShareEmail read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + InvitationArrayShareEmail instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 1201a5d..aa30c70 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 @@ -25,8 +25,6 @@ import java.util.ArrayList; import java.util.List; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonArray; import com.google.gson.JsonElement; @@ -34,15 +32,17 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class InvitationData { public static final String SERIALIZED_NAME_INVITATIONS = "invitations"; @SerializedName(SERIALIZED_NAME_INVITATIONS) @@ -52,7 +52,7 @@ public class InvitationData { @SerializedName(SERIALIZED_NAME_PAGINATION_METADATA) private PaginationMetadata paginationMetadata; - public InvitationData() { + public InvitationData() { } public InvitationData invitations(List invitations) { @@ -108,6 +108,41 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { this.paginationMetadata = paginationMetadata; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public InvitationData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -120,12 +155,13 @@ public boolean equals(Object o) { } InvitationData invitationData = (InvitationData) o; return Objects.equals(this.invitations, invitationData.invitations) && - Objects.equals(this.paginationMetadata, invitationData.paginationMetadata); + Objects.equals(this.paginationMetadata, invitationData.paginationMetadata)&& + Objects.equals(this.additionalProperties, invitationData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(invitations, paginationMetadata); + return Objects.hash(invitations, paginationMetadata, additionalProperties); } @Override @@ -134,6 +170,7 @@ public String toString() { sb.append("class InvitationData {\n"); sb.append(" invitations: ").append(toIndentedString(invitations)).append("\n"); sb.append(" paginationMetadata: ").append(toIndentedString(paginationMetadata)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -177,14 +214,6 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in InvitationData is not found in the empty JSON string", InvitationData.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!InvitationData.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `InvitationData` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } JsonArray jsonArrayinvitations = jsonObj.getAsJsonArray("invitations"); if (jsonArrayinvitations != null) { // ensure the json data is an array @@ -198,7 +227,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { }; } // validate the optional field `pagination_metadata` - if (jsonObj.getAsJsonObject("pagination_metadata") != null) { + if (jsonObj.get("pagination_metadata") != null && !jsonObj.get("pagination_metadata").isJsonNull()) { PaginationMetadata.validateJsonObject(jsonObj.getAsJsonObject("pagination_metadata")); } } @@ -218,6 +247,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, InvitationData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -225,7 +271,25 @@ public void write(JsonWriter out, InvitationData value) throws IOException { public InvitationData read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + InvitationData instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 new file mode 100644 index 0000000..caff6b6 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/InvitationFailedRecipients.java @@ -0,0 +1,281 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.2.19 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + +import java.util.Objects; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * 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]") +public class InvitationFailedRecipients { + public static final String SERIALIZED_NAME_FAILED_RECIPIENTS = "failed_recipients"; + @SerializedName(SERIALIZED_NAME_FAILED_RECIPIENTS) + private List failedRecipients = new ArrayList<>(); + + public InvitationFailedRecipients() { + } + + public InvitationFailedRecipients failedRecipients(List failedRecipients) { + + this.failedRecipients = failedRecipients; + return this; + } + + public InvitationFailedRecipients addFailedRecipientsItem(String failedRecipientsItem) { + 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; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public InvitationFailedRecipients putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InvitationFailedRecipients invitationFailedRecipients = (InvitationFailedRecipients) o; + return Objects.equals(this.failedRecipients, invitationFailedRecipients.failedRecipients)&& + Objects.equals(this.additionalProperties, invitationFailedRecipients.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(failedRecipients, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InvitationFailedRecipients {\n"); + sb.append(" failedRecipients: ").append(toIndentedString(failedRecipients)).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("failed_recipients"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + 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 + 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())); + } + } + // ensure the json data is an array + if ((jsonObj.get("failed_recipients") != null && !jsonObj.get("failed_recipients").isJsonNull()) && !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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!InvitationFailedRecipients.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'InvitationFailedRecipients' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(InvitationFailedRecipients.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, InvitationFailedRecipients value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public InvitationFailedRecipients read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + InvitationFailedRecipients instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of 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 + */ + 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 new file mode 100644 index 0000000..946f4db --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/InvitationGroupShareEmail.java @@ -0,0 +1,361 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.2.19 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + +import java.util.Objects; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * 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]") +public class InvitationGroupShareEmail { + public static final String SERIALIZED_NAME_ARRAY_ACTIONS = "array_actions"; + @SerializedName(SERIALIZED_NAME_ARRAY_ACTIONS) + private List arrayActions = new ArrayList<>(); + + public static final String SERIALIZED_NAME_GROUP_ACTIONS = "group_actions"; + @SerializedName(SERIALIZED_NAME_GROUP_ACTIONS) + private List groupActions = new ArrayList<>(); + + public static final String SERIALIZED_NAME_INVITEE_EMAIL_OR_NAME = "invitee_email_or_name"; + @SerializedName(SERIALIZED_NAME_INVITEE_EMAIL_OR_NAME) + private List inviteeEmailOrName = new ArrayList<>(); + + public InvitationGroupShareEmail() { + } + + public InvitationGroupShareEmail arrayActions(List arrayActions) { + + this.arrayActions = arrayActions; + return this; + } + + public InvitationGroupShareEmail addArrayActionsItem(ArrayActions arrayActionsItem) { + 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) { + 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) { + 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; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public InvitationGroupShareEmail putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InvitationGroupShareEmail invitationGroupShareEmail = (InvitationGroupShareEmail) o; + return Objects.equals(this.arrayActions, invitationGroupShareEmail.arrayActions) && + Objects.equals(this.groupActions, invitationGroupShareEmail.groupActions) && + Objects.equals(this.inviteeEmailOrName, invitationGroupShareEmail.inviteeEmailOrName)&& + Objects.equals(this.additionalProperties, invitationGroupShareEmail.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(arrayActions, groupActions, inviteeEmailOrName, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InvitationGroupShareEmail {\n"); + sb.append(" arrayActions: ").append(toIndentedString(arrayActions)).append("\n"); + sb.append(" groupActions: ").append(toIndentedString(groupActions)).append("\n"); + sb.append(" inviteeEmailOrName: ").append(toIndentedString(inviteeEmailOrName)).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("array_actions"); + openapiFields.add("group_actions"); + openapiFields.add("invitee_email_or_name"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("array_actions"); + openapiRequiredFields.add("group_actions"); + 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 + 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())); + } + } + // ensure the json data is an array + 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())); + } + // ensure the json data is an array + 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("invitee_email_or_name") != null && !jsonObj.get("invitee_email_or_name").isJsonNull()) && !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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!InvitationGroupShareEmail.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'InvitationGroupShareEmail' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(InvitationGroupShareEmail.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, InvitationGroupShareEmail value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public InvitationGroupShareEmail read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + InvitationGroupShareEmail instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of 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 + */ + 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 bc971ca..4a00e16 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 @@ -25,23 +25,23 @@ import java.util.ArrayList; import java.util.List; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class InvitationOrganizationJoinEmail { public static final String SERIALIZED_NAME_ACTIONS = "actions"; @SerializedName(SERIALIZED_NAME_ACTIONS) @@ -55,7 +55,7 @@ public class InvitationOrganizationJoinEmail { @SerializedName(SERIALIZED_NAME_INVITEE_EMAIL) private List inviteeEmail = new ArrayList<>(); - public InvitationOrganizationJoinEmail() { + public InvitationOrganizationJoinEmail() { } public InvitationOrganizationJoinEmail actions(List actions) { @@ -139,6 +139,41 @@ public void setInviteeEmail(List inviteeEmail) { this.inviteeEmail = inviteeEmail; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public InvitationOrganizationJoinEmail putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -152,12 +187,13 @@ public boolean equals(Object o) { InvitationOrganizationJoinEmail invitationOrganizationJoinEmail = (InvitationOrganizationJoinEmail) o; return Objects.equals(this.actions, invitationOrganizationJoinEmail.actions) && Objects.equals(this.organizationRole, invitationOrganizationJoinEmail.organizationRole) && - Objects.equals(this.inviteeEmail, invitationOrganizationJoinEmail.inviteeEmail); + Objects.equals(this.inviteeEmail, invitationOrganizationJoinEmail.inviteeEmail)&& + Objects.equals(this.additionalProperties, invitationOrganizationJoinEmail.additionalProperties); } @Override public int hashCode() { - return Objects.hash(actions, organizationRole, inviteeEmail); + return Objects.hash(actions, organizationRole, inviteeEmail, additionalProperties); } @Override @@ -167,6 +203,7 @@ public String toString() { sb.append(" actions: ").append(toIndentedString(actions)).append("\n"); sb.append(" organizationRole: ").append(toIndentedString(organizationRole)).append("\n"); sb.append(" inviteeEmail: ").append(toIndentedString(inviteeEmail)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -214,14 +251,6 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { } } - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!InvitationOrganizationJoinEmail.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `InvitationOrganizationJoinEmail` properties. JSON: %s", entry.getKey(), jsonObj.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) { @@ -229,11 +258,11 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { } } // ensure the json data is an array - if (jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonArray()) { + 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").isJsonArray()) { + if ((jsonObj.get("invitee_email") != null && !jsonObj.get("invitee_email").isJsonNull()) && !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())); } } @@ -253,6 +282,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, InvitationOrganizationJoinEmail value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -260,7 +306,25 @@ public void write(JsonWriter out, InvitationOrganizationJoinEmail value) throws public InvitationOrganizationJoinEmail read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + InvitationOrganizationJoinEmail instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 f09b002..4b73767 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 @@ -27,6 +27,8 @@ public enum InvitationType { ARRAY_SHARE("ARRAY_SHARE"), + GROUP_SHARE("GROUP_SHARE"), + JOIN_ORGANIZATION("JOIN_ORGANIZATION"); private String value; diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/LastAccessedArray.java b/src/main/java/io/tiledb/cloud/rest_api/model/LastAccessedArray.java index f0a3b75..f538f94 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 @@ -24,23 +24,23 @@ import java.io.IOException; import java.math.BigDecimal; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class LastAccessedArray { public static final String SERIALIZED_NAME_ARRAY_ID = "array_id"; @SerializedName(SERIALIZED_NAME_ARRAY_ID) @@ -62,7 +62,7 @@ public class LastAccessedArray { @SerializedName(SERIALIZED_NAME_ACCESS_TYPE) private ActivityEventType accessType; - public LastAccessedArray() { + public LastAccessedArray() { } public LastAccessedArray arrayId(String arrayId) { @@ -179,6 +179,41 @@ public void setAccessType(ActivityEventType accessType) { this.accessType = accessType; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public LastAccessedArray putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -194,12 +229,13 @@ public boolean equals(Object o) { Objects.equals(this.arrayName, lastAccessedArray.arrayName) && Objects.equals(this.namespace, lastAccessedArray.namespace) && Objects.equals(this.accessedTime, lastAccessedArray.accessedTime) && - Objects.equals(this.accessType, lastAccessedArray.accessType); + Objects.equals(this.accessType, lastAccessedArray.accessType)&& + Objects.equals(this.additionalProperties, lastAccessedArray.additionalProperties); } @Override public int hashCode() { - return Objects.hash(arrayId, arrayName, namespace, accessedTime, accessType); + return Objects.hash(arrayId, arrayName, namespace, accessedTime, accessType, additionalProperties); } @Override @@ -211,6 +247,7 @@ public String toString() { sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); sb.append(" accessedTime: ").append(toIndentedString(accessedTime)).append("\n"); sb.append(" accessType: ").append(toIndentedString(accessType)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -257,21 +294,13 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in LastAccessedArray is not found in the empty JSON string", LastAccessedArray.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!LastAccessedArray.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `LastAccessedArray` properties. JSON: %s", entry.getKey(), jsonObj.toString())); - } - } - if (jsonObj.get("array_id") != null && !jsonObj.get("array_id").isJsonPrimitive()) { + 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())); } - if (jsonObj.get("array_name") != null && !jsonObj.get("array_name").isJsonPrimitive()) { + if ((jsonObj.get("array_name") != null && !jsonObj.get("array_name").isJsonNull()) && !jsonObj.get("array_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `array_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("array_name").toString())); } - if (jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonPrimitive()) { + 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())); } } @@ -291,6 +320,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, LastAccessedArray value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -298,7 +344,25 @@ public void write(JsonWriter out, LastAccessedArray value) throws IOException { public LastAccessedArray read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + LastAccessedArray instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 10e360e..b2e1648 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 @@ -29,9 +29,9 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; import io.tiledb.cloud.rest_api.JSON; @@ -39,7 +39,7 @@ * A user-favorite MLModel item */ @ApiModel(description = "A user-favorite MLModel item") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class MLModelFavorite { public static final String SERIALIZED_NAME_MLMODEL_UUID = "mlmodel_uuid"; @SerializedName(SERIALIZED_NAME_MLMODEL_UUID) @@ -53,7 +53,7 @@ public class MLModelFavorite { @SerializedName(SERIALIZED_NAME_NAME) private String name; - public MLModelFavorite() { + public MLModelFavorite() { } public MLModelFavorite mlmodelUuid(String mlmodelUuid) { @@ -124,6 +124,41 @@ public void setName(String name) { this.name = name; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public MLModelFavorite putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -137,12 +172,13 @@ public boolean equals(Object o) { MLModelFavorite mlModelFavorite = (MLModelFavorite) o; return Objects.equals(this.mlmodelUuid, mlModelFavorite.mlmodelUuid) && Objects.equals(this.namespace, mlModelFavorite.namespace) && - Objects.equals(this.name, mlModelFavorite.name); + Objects.equals(this.name, mlModelFavorite.name)&& + Objects.equals(this.additionalProperties, mlModelFavorite.additionalProperties); } @Override public int hashCode() { - return Objects.hash(mlmodelUuid, namespace, name); + return Objects.hash(mlmodelUuid, namespace, name, additionalProperties); } @Override @@ -152,6 +188,7 @@ public String toString() { sb.append(" mlmodelUuid: ").append(toIndentedString(mlmodelUuid)).append("\n"); sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -196,21 +233,13 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in MLModelFavorite is not found in the empty JSON string", MLModelFavorite.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!MLModelFavorite.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `MLModelFavorite` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } - if (jsonObj.get("mlmodel_uuid") != null && !jsonObj.get("mlmodel_uuid").isJsonPrimitive()) { + 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())); } - if (jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonPrimitive()) { + 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").isJsonPrimitive()) { + 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())); } } @@ -230,6 +259,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, MLModelFavorite value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -237,7 +283,25 @@ public void write(JsonWriter out, MLModelFavorite value) throws IOException { public MLModelFavorite read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + MLModelFavorite instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 04e16f7..d17853c 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 @@ -25,8 +25,6 @@ import java.util.ArrayList; import java.util.List; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonArray; import com.google.gson.JsonElement; @@ -34,15 +32,17 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class MLModelFavoritesData { public static final String SERIALIZED_NAME_MLMODELS = "mlmodels"; @SerializedName(SERIALIZED_NAME_MLMODELS) @@ -52,7 +52,7 @@ public class MLModelFavoritesData { @SerializedName(SERIALIZED_NAME_PAGINATION_METADATA) private PaginationMetadata paginationMetadata; - public MLModelFavoritesData() { + public MLModelFavoritesData() { } public MLModelFavoritesData mlmodels(List mlmodels) { @@ -108,6 +108,41 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { this.paginationMetadata = paginationMetadata; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public MLModelFavoritesData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -120,12 +155,13 @@ public boolean equals(Object o) { } MLModelFavoritesData mlModelFavoritesData = (MLModelFavoritesData) o; return Objects.equals(this.mlmodels, mlModelFavoritesData.mlmodels) && - Objects.equals(this.paginationMetadata, mlModelFavoritesData.paginationMetadata); + Objects.equals(this.paginationMetadata, mlModelFavoritesData.paginationMetadata)&& + Objects.equals(this.additionalProperties, mlModelFavoritesData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(mlmodels, paginationMetadata); + return Objects.hash(mlmodels, paginationMetadata, additionalProperties); } @Override @@ -134,6 +170,7 @@ public String toString() { sb.append("class MLModelFavoritesData {\n"); sb.append(" mlmodels: ").append(toIndentedString(mlmodels)).append("\n"); sb.append(" paginationMetadata: ").append(toIndentedString(paginationMetadata)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -177,14 +214,6 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in MLModelFavoritesData is not found in the empty JSON string", MLModelFavoritesData.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!MLModelFavoritesData.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `MLModelFavoritesData` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } JsonArray jsonArraymlmodels = jsonObj.getAsJsonArray("mlmodels"); if (jsonArraymlmodels != null) { // ensure the json data is an array @@ -198,7 +227,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { }; } // validate the optional field `pagination_metadata` - if (jsonObj.getAsJsonObject("pagination_metadata") != null) { + if (jsonObj.get("pagination_metadata") != null && !jsonObj.get("pagination_metadata").isJsonNull()) { PaginationMetadata.validateJsonObject(jsonObj.getAsJsonObject("pagination_metadata")); } } @@ -218,6 +247,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, MLModelFavoritesData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -225,7 +271,25 @@ public void write(JsonWriter out, MLModelFavoritesData value) throws IOException public MLModelFavoritesData read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + MLModelFavoritesData instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 67dfd84..e82a328 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 @@ -25,8 +25,6 @@ import java.util.ArrayList; import java.util.List; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonArray; import com.google.gson.JsonElement; @@ -34,21 +32,23 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class MaxBufferSizes { public static final String SERIALIZED_NAME_MAX_BUFFER_SIZES = "maxBufferSizes"; @SerializedName(SERIALIZED_NAME_MAX_BUFFER_SIZES) private List maxBufferSizes = null; - public MaxBufferSizes() { + public MaxBufferSizes() { } public MaxBufferSizes maxBufferSizes(List maxBufferSizes) { @@ -81,6 +81,41 @@ public void setMaxBufferSizes(List maxBufferSizes) { this.maxBufferSizes = maxBufferSizes; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public MaxBufferSizes putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -92,12 +127,13 @@ public boolean equals(Object o) { return false; } MaxBufferSizes maxBufferSizes = (MaxBufferSizes) o; - return Objects.equals(this.maxBufferSizes, maxBufferSizes.maxBufferSizes); + return Objects.equals(this.maxBufferSizes, maxBufferSizes.maxBufferSizes)&& + Objects.equals(this.additionalProperties, maxBufferSizes.additionalProperties); } @Override public int hashCode() { - return Objects.hash(maxBufferSizes); + return Objects.hash(maxBufferSizes, additionalProperties); } @Override @@ -105,6 +141,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class MaxBufferSizes {\n"); sb.append(" maxBufferSizes: ").append(toIndentedString(maxBufferSizes)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -147,14 +184,6 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in MaxBufferSizes is not found in the empty JSON string", MaxBufferSizes.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!MaxBufferSizes.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `MaxBufferSizes` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } JsonArray jsonArraymaxBufferSizes = jsonObj.getAsJsonArray("maxBufferSizes"); if (jsonArraymaxBufferSizes != null) { // ensure the json data is an array @@ -184,6 +213,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, MaxBufferSizes value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -191,7 +237,25 @@ public void write(JsonWriter out, MaxBufferSizes value) throws IOException { public MaxBufferSizes read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + MaxBufferSizes instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 4688f86..71f12c4 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 @@ -34,9 +34,9 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; import io.tiledb.cloud.rest_api.JSON; @@ -44,7 +44,7 @@ * User-defined function */ @ApiModel(description = "User-defined function") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class MultiArrayUDF { public static final String SERIALIZED_NAME_UDF_INFO_NAME = "udf_info_name"; @SerializedName(SERIALIZED_NAME_UDF_INFO_NAME) @@ -62,6 +62,10 @@ public class MultiArrayUDF { @SerializedName(SERIALIZED_NAME_IMAGE_NAME) private String imageName; + public static final String SERIALIZED_NAME_ACCESS_CREDENTIALS_NAME = "access_credentials_name"; + @SerializedName(SERIALIZED_NAME_ACCESS_CREDENTIALS_NAME) + private String accessCredentialsName; + public static final String SERIALIZED_NAME_RESOURCE_CLASS = "resource_class"; @SerializedName(SERIALIZED_NAME_RESOURCE_CLASS) private String resourceClass; @@ -130,7 +134,7 @@ public class MultiArrayUDF { @SerializedName(SERIALIZED_NAME_CLIENT_NODE_UUID) private String clientNodeUuid; - public MultiArrayUDF() { + public MultiArrayUDF() { } public MultiArrayUDF udfInfoName(String udfInfoName) { @@ -225,6 +229,29 @@ public void setImageName(String 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; @@ -647,6 +674,41 @@ public void setClientNodeUuid(String clientNodeUuid) { this.clientNodeUuid = clientNodeUuid; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public MultiArrayUDF putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -662,6 +724,7 @@ public boolean equals(Object o) { Objects.equals(this.language, multiArrayUDF.language) && Objects.equals(this.version, multiArrayUDF.version) && Objects.equals(this.imageName, multiArrayUDF.imageName) && + Objects.equals(this.accessCredentialsName, multiArrayUDF.accessCredentialsName) && Objects.equals(this.resourceClass, multiArrayUDF.resourceClass) && Objects.equals(this.exec, multiArrayUDF.exec) && Objects.equals(this.execRaw, multiArrayUDF.execRaw) && @@ -678,7 +741,8 @@ public boolean equals(Object o) { Objects.equals(this.arrays, multiArrayUDF.arrays) && Objects.equals(this.timeout, multiArrayUDF.timeout) && Objects.equals(this.taskGraphUuid, multiArrayUDF.taskGraphUuid) && - Objects.equals(this.clientNodeUuid, multiArrayUDF.clientNodeUuid); + Objects.equals(this.clientNodeUuid, multiArrayUDF.clientNodeUuid)&& + Objects.equals(this.additionalProperties, multiArrayUDF.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -687,7 +751,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(udfInfoName, language, version, imageName, resourceClass, exec, execRaw, resultFormat, taskName, argument, argumentsJson, storedParamUuids, storeResults, dontDownloadResults, ranges, subarray, buffers, arrays, timeout, taskGraphUuid, clientNodeUuid); + return Objects.hash(udfInfoName, language, version, imageName, accessCredentialsName, resourceClass, exec, execRaw, resultFormat, taskName, argument, argumentsJson, storedParamUuids, storeResults, dontDownloadResults, ranges, subarray, buffers, arrays, timeout, taskGraphUuid, clientNodeUuid, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -705,6 +769,7 @@ public String toString() { sb.append(" language: ").append(toIndentedString(language)).append("\n"); sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" imageName: ").append(toIndentedString(imageName)).append("\n"); + sb.append(" accessCredentialsName: ").append(toIndentedString(accessCredentialsName)).append("\n"); sb.append(" resourceClass: ").append(toIndentedString(resourceClass)).append("\n"); sb.append(" exec: ").append(toIndentedString(exec)).append("\n"); sb.append(" execRaw: ").append(toIndentedString(execRaw)).append("\n"); @@ -722,6 +787,7 @@ public String toString() { sb.append(" timeout: ").append(toIndentedString(timeout)).append("\n"); sb.append(" taskGraphUuid: ").append(toIndentedString(taskGraphUuid)).append("\n"); sb.append(" clientNodeUuid: ").append(toIndentedString(clientNodeUuid)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -748,6 +814,7 @@ private String toIndentedString(Object o) { openapiFields.add("language"); openapiFields.add("version"); openapiFields.add("image_name"); + openapiFields.add("access_credentials_name"); openapiFields.add("resource_class"); openapiFields.add("exec"); openapiFields.add("exec_raw"); @@ -784,36 +851,31 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in MultiArrayUDF is not found in the empty JSON string", MultiArrayUDF.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!MultiArrayUDF.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `MultiArrayUDF` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } - if (jsonObj.get("udf_info_name") != null && !jsonObj.get("udf_info_name").isJsonPrimitive()) { + 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())); } - if (jsonObj.get("version") != null && !jsonObj.get("version").isJsonPrimitive()) { + 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").isJsonPrimitive()) { + 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())); } - if (jsonObj.get("resource_class") != null && !jsonObj.get("resource_class").isJsonPrimitive()) { + 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("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())); } - if (jsonObj.get("exec") != null && !jsonObj.get("exec").isJsonPrimitive()) { + 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())); } - if (jsonObj.get("exec_raw") != null && !jsonObj.get("exec_raw").isJsonPrimitive()) { + 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())); } - if (jsonObj.get("task_name") != null && !jsonObj.get("task_name").isJsonPrimitive()) { + 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").isJsonPrimitive()) { + 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"); @@ -829,19 +891,19 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { }; } // ensure the json data is an array - if (jsonObj.get("stored_param_uuids") != null && !jsonObj.get("stored_param_uuids").isJsonArray()) { + 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.getAsJsonObject("ranges") != null) { + if (jsonObj.get("ranges") != null && !jsonObj.get("ranges").isJsonNull()) { QueryRanges.validateJsonObject(jsonObj.getAsJsonObject("ranges")); } // validate the optional field `subarray` - if (jsonObj.getAsJsonObject("subarray") != null) { + if (jsonObj.get("subarray") != null && !jsonObj.get("subarray").isJsonNull()) { UDFSubarray.validateJsonObject(jsonObj.getAsJsonObject("subarray")); } // ensure the json data is an array - if (jsonObj.get("buffers") != null && !jsonObj.get("buffers").isJsonArray()) { + 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"); @@ -856,10 +918,10 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { UDFArrayDetails.validateJsonObject(jsonArrayarrays.get(i).getAsJsonObject()); }; } - if (jsonObj.get("task_graph_uuid") != null && !jsonObj.get("task_graph_uuid").isJsonPrimitive()) { + 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").isJsonPrimitive()) { + 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())); } } @@ -879,6 +941,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, MultiArrayUDF value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -886,7 +965,25 @@ public void write(JsonWriter out, MultiArrayUDF value) throws IOException { public MultiArrayUDF read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + MultiArrayUDF instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 2f6f0c1..eec5a32 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 @@ -23,23 +23,23 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class NonEmptyDomain { public static final String SERIALIZED_NAME_NON_EMPTY_DOMAIN = "nonEmptyDomain"; @SerializedName(SERIALIZED_NAME_NON_EMPTY_DOMAIN) @@ -49,7 +49,7 @@ public class NonEmptyDomain { @SerializedName(SERIALIZED_NAME_IS_EMPTY) private Boolean isEmpty; - public NonEmptyDomain() { + public NonEmptyDomain() { } public NonEmptyDomain nonEmptyDomain(DomainArray nonEmptyDomain) { @@ -97,6 +97,41 @@ public void setIsEmpty(Boolean isEmpty) { this.isEmpty = isEmpty; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public NonEmptyDomain putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -109,12 +144,13 @@ public boolean equals(Object o) { } NonEmptyDomain nonEmptyDomain = (NonEmptyDomain) o; return Objects.equals(this.nonEmptyDomain, nonEmptyDomain.nonEmptyDomain) && - Objects.equals(this.isEmpty, nonEmptyDomain.isEmpty); + Objects.equals(this.isEmpty, nonEmptyDomain.isEmpty)&& + Objects.equals(this.additionalProperties, nonEmptyDomain.additionalProperties); } @Override public int hashCode() { - return Objects.hash(nonEmptyDomain, isEmpty); + return Objects.hash(nonEmptyDomain, isEmpty, additionalProperties); } @Override @@ -123,6 +159,7 @@ public String toString() { sb.append("class NonEmptyDomain {\n"); sb.append(" nonEmptyDomain: ").append(toIndentedString(nonEmptyDomain)).append("\n"); sb.append(" isEmpty: ").append(toIndentedString(isEmpty)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -169,14 +206,6 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { } } - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!NonEmptyDomain.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `NonEmptyDomain` properties. JSON: %s", entry.getKey(), jsonObj.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) { @@ -184,7 +213,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { } } // validate the optional field `nonEmptyDomain` - if (jsonObj.getAsJsonObject("nonEmptyDomain") != null) { + if (jsonObj.get("nonEmptyDomain") != null && !jsonObj.get("nonEmptyDomain").isJsonNull()) { DomainArray.validateJsonObject(jsonObj.getAsJsonObject("nonEmptyDomain")); } } @@ -204,6 +233,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, NonEmptyDomain value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -211,7 +257,25 @@ public void write(JsonWriter out, NonEmptyDomain value) throws IOException { public NonEmptyDomain read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + NonEmptyDomain instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 9d8d00c..dedf556 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 @@ -29,9 +29,9 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; import io.tiledb.cloud.rest_api.JSON; @@ -39,7 +39,7 @@ * Copied notebook uri and information */ @ApiModel(description = "Copied notebook uri and information") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class NotebookCopied { public static final String SERIALIZED_NAME_OUTPUT_URI = "output_uri"; @SerializedName(SERIALIZED_NAME_OUTPUT_URI) @@ -57,7 +57,7 @@ public class NotebookCopied { @SerializedName(SERIALIZED_NAME_ID) private String id; - public NotebookCopied() { + public NotebookCopied() { } public NotebookCopied outputUri(String outputUri) { @@ -151,6 +151,41 @@ public void setId(String id) { this.id = id; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public NotebookCopied putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -165,12 +200,13 @@ public boolean equals(Object o) { return Objects.equals(this.outputUri, notebookCopied.outputUri) && Objects.equals(this.name, notebookCopied.name) && Objects.equals(this.namespace, notebookCopied.namespace) && - Objects.equals(this.id, notebookCopied.id); + Objects.equals(this.id, notebookCopied.id)&& + Objects.equals(this.additionalProperties, notebookCopied.additionalProperties); } @Override public int hashCode() { - return Objects.hash(outputUri, name, namespace, id); + return Objects.hash(outputUri, name, namespace, id, additionalProperties); } @Override @@ -181,6 +217,7 @@ public String toString() { sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -228,30 +265,22 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { } } - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!NotebookCopied.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `NotebookCopied` properties. JSON: %s", entry.getKey(), jsonObj.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 (jsonObj.get("output_uri") != null && !jsonObj.get("output_uri").isJsonPrimitive()) { + 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("name") != null && !jsonObj.get("name").isJsonPrimitive()) { + 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").isJsonPrimitive()) { + 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").isJsonPrimitive()) { + 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())); } } @@ -271,6 +300,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, NotebookCopied value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -278,7 +324,25 @@ public void write(JsonWriter out, NotebookCopied value) throws IOException { public NotebookCopied read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + NotebookCopied instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 d961975..069be7f 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 @@ -29,9 +29,9 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; import io.tiledb.cloud.rest_api.JSON; @@ -39,7 +39,7 @@ * Output information required to copy a notebook */ @ApiModel(description = "Output information required to copy a notebook") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class NotebookCopy { public static final String SERIALIZED_NAME_OUTPUT_URI = "output_uri"; @SerializedName(SERIALIZED_NAME_OUTPUT_URI) @@ -53,7 +53,7 @@ public class NotebookCopy { @SerializedName(SERIALIZED_NAME_NAMESPACE) private String namespace; - public NotebookCopy() { + public NotebookCopy() { } public NotebookCopy outputUri(String outputUri) { @@ -124,6 +124,41 @@ public void setNamespace(String namespace) { this.namespace = namespace; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public NotebookCopy putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -137,12 +172,13 @@ public boolean equals(Object o) { NotebookCopy notebookCopy = (NotebookCopy) o; return Objects.equals(this.outputUri, notebookCopy.outputUri) && Objects.equals(this.name, notebookCopy.name) && - Objects.equals(this.namespace, notebookCopy.namespace); + Objects.equals(this.namespace, notebookCopy.namespace)&& + Objects.equals(this.additionalProperties, notebookCopy.additionalProperties); } @Override public int hashCode() { - return Objects.hash(outputUri, name, namespace); + return Objects.hash(outputUri, name, namespace, additionalProperties); } @Override @@ -152,6 +188,7 @@ public String toString() { sb.append(" outputUri: ").append(toIndentedString(outputUri)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -196,21 +233,13 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in NotebookCopy is not found in the empty JSON string", NotebookCopy.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!NotebookCopy.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `NotebookCopy` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } - if (jsonObj.get("output_uri") != null && !jsonObj.get("output_uri").isJsonPrimitive()) { + 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("name") != null && !jsonObj.get("name").isJsonPrimitive()) { + 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").isJsonPrimitive()) { + 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())); } } @@ -230,6 +259,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, NotebookCopy value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -237,7 +283,25 @@ public void write(JsonWriter out, NotebookCopy value) throws IOException { public NotebookCopy read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + NotebookCopy instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 d23abcc..3523de4 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 @@ -29,9 +29,9 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; import io.tiledb.cloud.rest_api.JSON; @@ -39,7 +39,7 @@ * A user-favorite notebook item */ @ApiModel(description = "A user-favorite notebook item") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class NotebookFavorite { public static final String SERIALIZED_NAME_NOTEBOOK_UUID = "notebook_uuid"; @SerializedName(SERIALIZED_NAME_NOTEBOOK_UUID) @@ -53,7 +53,7 @@ public class NotebookFavorite { @SerializedName(SERIALIZED_NAME_NAME) private String name; - public NotebookFavorite() { + public NotebookFavorite() { } public NotebookFavorite notebookUuid(String notebookUuid) { @@ -124,6 +124,41 @@ public void setName(String name) { this.name = name; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public NotebookFavorite putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -137,12 +172,13 @@ public boolean equals(Object o) { NotebookFavorite notebookFavorite = (NotebookFavorite) o; return Objects.equals(this.notebookUuid, notebookFavorite.notebookUuid) && Objects.equals(this.namespace, notebookFavorite.namespace) && - Objects.equals(this.name, notebookFavorite.name); + Objects.equals(this.name, notebookFavorite.name)&& + Objects.equals(this.additionalProperties, notebookFavorite.additionalProperties); } @Override public int hashCode() { - return Objects.hash(notebookUuid, namespace, name); + return Objects.hash(notebookUuid, namespace, name, additionalProperties); } @Override @@ -152,6 +188,7 @@ public String toString() { sb.append(" notebookUuid: ").append(toIndentedString(notebookUuid)).append("\n"); sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -196,21 +233,13 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in NotebookFavorite is not found in the empty JSON string", NotebookFavorite.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!NotebookFavorite.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `NotebookFavorite` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } - if (jsonObj.get("notebook_uuid") != null && !jsonObj.get("notebook_uuid").isJsonPrimitive()) { + 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())); } - if (jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonPrimitive()) { + 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").isJsonPrimitive()) { + 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())); } } @@ -230,6 +259,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, NotebookFavorite value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -237,7 +283,25 @@ public void write(JsonWriter out, NotebookFavorite value) throws IOException { public NotebookFavorite read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + NotebookFavorite instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 7062ead..983691b 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 @@ -25,8 +25,6 @@ import java.util.ArrayList; import java.util.List; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonArray; import com.google.gson.JsonElement; @@ -34,15 +32,17 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class NotebookFavoritesData { public static final String SERIALIZED_NAME_NOTEBOOKS = "notebooks"; @SerializedName(SERIALIZED_NAME_NOTEBOOKS) @@ -52,7 +52,7 @@ public class NotebookFavoritesData { @SerializedName(SERIALIZED_NAME_PAGINATION_METADATA) private PaginationMetadata paginationMetadata; - public NotebookFavoritesData() { + public NotebookFavoritesData() { } public NotebookFavoritesData notebooks(List notebooks) { @@ -108,6 +108,41 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { this.paginationMetadata = paginationMetadata; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public NotebookFavoritesData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -120,12 +155,13 @@ public boolean equals(Object o) { } NotebookFavoritesData notebookFavoritesData = (NotebookFavoritesData) o; return Objects.equals(this.notebooks, notebookFavoritesData.notebooks) && - Objects.equals(this.paginationMetadata, notebookFavoritesData.paginationMetadata); + Objects.equals(this.paginationMetadata, notebookFavoritesData.paginationMetadata)&& + Objects.equals(this.additionalProperties, notebookFavoritesData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(notebooks, paginationMetadata); + return Objects.hash(notebooks, paginationMetadata, additionalProperties); } @Override @@ -134,6 +170,7 @@ public String toString() { sb.append("class NotebookFavoritesData {\n"); sb.append(" notebooks: ").append(toIndentedString(notebooks)).append("\n"); sb.append(" paginationMetadata: ").append(toIndentedString(paginationMetadata)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -177,14 +214,6 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in NotebookFavoritesData is not found in the empty JSON string", NotebookFavoritesData.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!NotebookFavoritesData.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `NotebookFavoritesData` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } JsonArray jsonArraynotebooks = jsonObj.getAsJsonArray("notebooks"); if (jsonArraynotebooks != null) { // ensure the json data is an array @@ -198,7 +227,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { }; } // validate the optional field `pagination_metadata` - if (jsonObj.getAsJsonObject("pagination_metadata") != null) { + if (jsonObj.get("pagination_metadata") != null && !jsonObj.get("pagination_metadata").isJsonNull()) { PaginationMetadata.validateJsonObject(jsonObj.getAsJsonObject("pagination_metadata")); } } @@ -218,6 +247,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, NotebookFavoritesData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -225,7 +271,25 @@ public void write(JsonWriter out, NotebookFavoritesData value) throws IOExceptio public NotebookFavoritesData read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + NotebookFavoritesData instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 e97ad43..544a3d4 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 @@ -14,7 +14,7 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -22,6 +22,7 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; import com.google.gson.JsonElement; @@ -29,9 +30,9 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; import io.tiledb.cloud.rest_api.JSON; @@ -39,7 +40,7 @@ * Status details of a notebook server */ @ApiModel(description = "Status details of a notebook server") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class NotebookStatus { public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) @@ -53,10 +54,18 @@ public class NotebookStatus { @SerializedName(SERIALIZED_NAME_CPU_USAGE) private Integer cpuUsage; + public static final String SERIALIZED_NAME_GPU_USAGE = "gpu_usage"; + @SerializedName(SERIALIZED_NAME_GPU_USAGE) + private Integer gpuUsage; + public static final String SERIALIZED_NAME_MEMORY_USAGE = "memory_usage"; @SerializedName(SERIALIZED_NAME_MEMORY_USAGE) private Integer memoryUsage; + public static final String SERIALIZED_NAME_GPU_LIMIT = "gpu_limit"; + @SerializedName(SERIALIZED_NAME_GPU_LIMIT) + private Integer gpuLimit; + public static final String SERIALIZED_NAME_MEMORY_LIMIT = "memory_limit"; @SerializedName(SERIALIZED_NAME_MEMORY_LIMIT) private Integer memoryLimit; @@ -73,7 +82,11 @@ public class NotebookStatus { @SerializedName(SERIALIZED_NAME_CPU_COUNT) private Integer cpuCount; - public NotebookStatus() { + public static final String SERIALIZED_NAME_COST = "cost"; + @SerializedName(SERIALIZED_NAME_COST) + private Double cost; + + public NotebookStatus() { } public NotebookStatus namespace(String namespace) { @@ -145,6 +158,29 @@ public void setCpuUsage(Integer 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; @@ -168,6 +204,29 @@ public void setMemoryUsage(Integer 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; @@ -260,6 +319,64 @@ public void setCpuCount(Integer 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; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public NotebookStatus putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + @Override public boolean equals(Object o) { @@ -273,16 +390,31 @@ public boolean equals(Object o) { return Objects.equals(this.namespace, notebookStatus.namespace) && Objects.equals(this.uptime, notebookStatus.uptime) && Objects.equals(this.cpuUsage, notebookStatus.cpuUsage) && + Objects.equals(this.gpuUsage, notebookStatus.gpuUsage) && Objects.equals(this.memoryUsage, notebookStatus.memoryUsage) && + Objects.equals(this.gpuLimit, notebookStatus.gpuLimit) && Objects.equals(this.memoryLimit, notebookStatus.memoryLimit) && Objects.equals(this.storageUsage, notebookStatus.storageUsage) && Objects.equals(this.storageLimit, notebookStatus.storageLimit) && - Objects.equals(this.cpuCount, notebookStatus.cpuCount); + Objects.equals(this.cpuCount, notebookStatus.cpuCount) && + Objects.equals(this.cost, notebookStatus.cost)&& + Objects.equals(this.additionalProperties, notebookStatus.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(namespace, uptime, cpuUsage, memoryUsage, memoryLimit, storageUsage, storageLimit, cpuCount); + return Objects.hash(namespace, uptime, cpuUsage, gpuUsage, memoryUsage, gpuLimit, memoryLimit, storageUsage, storageLimit, cpuCount, cost, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; } @Override @@ -292,11 +424,15 @@ public String toString() { sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); sb.append(" uptime: ").append(toIndentedString(uptime)).append("\n"); sb.append(" cpuUsage: ").append(toIndentedString(cpuUsage)).append("\n"); + sb.append(" gpuUsage: ").append(toIndentedString(gpuUsage)).append("\n"); sb.append(" memoryUsage: ").append(toIndentedString(memoryUsage)).append("\n"); + sb.append(" gpuLimit: ").append(toIndentedString(gpuLimit)).append("\n"); sb.append(" memoryLimit: ").append(toIndentedString(memoryLimit)).append("\n"); sb.append(" storageUsage: ").append(toIndentedString(storageUsage)).append("\n"); 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(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -322,11 +458,14 @@ private String toIndentedString(Object o) { openapiFields.add("namespace"); openapiFields.add("uptime"); openapiFields.add("cpu_usage"); + openapiFields.add("gpu_usage"); openapiFields.add("memory_usage"); + openapiFields.add("gpu_limit"); openapiFields.add("memory_limit"); openapiFields.add("storage_usage"); openapiFields.add("storage_limit"); openapiFields.add("cpu_count"); + openapiFields.add("cost"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -346,15 +485,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in NotebookStatus is not found in the empty JSON string", NotebookStatus.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!NotebookStatus.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `NotebookStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } - if (jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonPrimitive()) { + 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())); } } @@ -374,6 +505,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, NotebookStatus value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -381,7 +529,25 @@ public void write(JsonWriter out, NotebookStatus value) throws IOException { public NotebookStatus read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + NotebookStatus instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 693e5d8..91e5983 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 @@ -27,7 +27,6 @@ import java.util.ArrayList; import java.util.List; -import io.tiledb.cloud.rest_api.JSON; import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; @@ -37,15 +36,17 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; /** * Organization */ @ApiModel(description = "Organization") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class Organization { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -103,11 +104,15 @@ public class Organization { @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 static final String SERIALIZED_NAME_STRIPE_CONNECT = "stripe_connect"; @SerializedName(SERIALIZED_NAME_STRIPE_CONNECT) private Boolean stripeConnect; - public Organization() { + public Organization() { } @@ -403,11 +408,11 @@ public Organization defaultS3Path(String defaultS3Path) { } /** - * default S3 path to store newly created notebooks + * 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 = "default S3 path to store newly created notebooks") + @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; @@ -426,11 +431,11 @@ public Organization defaultS3PathCredentialsName(String defaultS3PathCredentials } /** - * Default S3 path credentials name is the credentials name to use along with default_s3_path + * 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 = "Default S3 path credentials name is the credentials name to use along with default_s3_path") + @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; @@ -442,6 +447,29 @@ public void setDefaultS3PathCredentialsName(String 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 @@ -455,6 +483,41 @@ public Boolean getStripeConnect() { + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public Organization putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -480,7 +543,9 @@ public boolean equals(Object o) { Objects.equals(this.unpaidSubscription, organization.unpaidSubscription) && Objects.equals(this.defaultS3Path, organization.defaultS3Path) && Objects.equals(this.defaultS3PathCredentialsName, organization.defaultS3PathCredentialsName) && - Objects.equals(this.stripeConnect, organization.stripeConnect); + Objects.equals(this.assetLocations, organization.assetLocations) && + Objects.equals(this.stripeConnect, organization.stripeConnect)&& + Objects.equals(this.additionalProperties, organization.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -489,7 +554,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, stripeConnect); + return Objects.hash(id, role, name, createdAt, updatedAt, logo, description, users, allowedActions, numOfArrays, enabledFeatures, unpaidSubscription, defaultS3Path, defaultS3PathCredentialsName, assetLocations, stripeConnect, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -517,7 +582,9 @@ public String toString() { sb.append(" unpaidSubscription: ").append(toIndentedString(unpaidSubscription)).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(" stripeConnect: ").append(toIndentedString(stripeConnect)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -554,6 +621,7 @@ private String toIndentedString(Object o) { openapiFields.add("unpaid_subscription"); openapiFields.add("default_s3_path"); openapiFields.add("default_s3_path_credentials_name"); + openapiFields.add("asset_locations"); openapiFields.add("stripe_connect"); // a set of required properties/fields (JSON key names) @@ -576,30 +644,22 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { } } - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!Organization.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `Organization` properties. JSON: %s", entry.getKey(), jsonObj.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 (jsonObj.get("id") != null && !jsonObj.get("id").isJsonPrimitive()) { + 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").isJsonPrimitive()) { + 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").isJsonPrimitive()) { + 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").isJsonPrimitive()) { + 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"); @@ -615,19 +675,23 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { }; } // ensure the json data is an array - if (jsonObj.get("allowed_actions") != null && !jsonObj.get("allowed_actions").isJsonArray()) { + 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").isJsonArray()) { + 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").isJsonPrimitive()) { + 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").isJsonPrimitive()) { + if ((jsonObj.get("default_s3_path_credentials_name") != null && !jsonObj.get("default_s3_path_credentials_name").isJsonNull()) && !jsonObj.get("default_s3_path_credentials_name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `default_s3_path_credentials_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("default_s3_path_credentials_name").toString())); } + // validate the optional field `asset_locations` + if (jsonObj.get("asset_locations") != null && !jsonObj.get("asset_locations").isJsonNull()) { + AssetLocations.validateJsonObject(jsonObj.getAsJsonObject("asset_locations")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -645,6 +709,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, Organization value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -652,7 +733,25 @@ public void write(JsonWriter out, Organization value) throws IOException { public Organization read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + Organization instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 15b865d..f1ed197 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 @@ -25,23 +25,23 @@ import java.util.ArrayList; import java.util.List; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class OrganizationUser { public static final String SERIALIZED_NAME_USER_ID = "user_id"; @SerializedName(SERIALIZED_NAME_USER_ID) @@ -67,7 +67,7 @@ public class OrganizationUser { @SerializedName(SERIALIZED_NAME_ALLOWED_ACTIONS) private List allowedActions = null; - public OrganizationUser() { + public OrganizationUser() { } public OrganizationUser userId(String userId) { @@ -215,6 +215,41 @@ public void setAllowedActions(List allowedActions) { this.allowedActions = allowedActions; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public OrganizationUser putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -231,12 +266,13 @@ public boolean equals(Object o) { Objects.equals(this.username, organizationUser.username) && Objects.equals(this.organizationName, organizationUser.organizationName) && Objects.equals(this.role, organizationUser.role) && - Objects.equals(this.allowedActions, organizationUser.allowedActions); + Objects.equals(this.allowedActions, organizationUser.allowedActions)&& + Objects.equals(this.additionalProperties, organizationUser.additionalProperties); } @Override public int hashCode() { - return Objects.hash(userId, organizationId, username, organizationName, role, allowedActions); + return Objects.hash(userId, organizationId, username, organizationName, role, allowedActions, additionalProperties); } @Override @@ -249,6 +285,7 @@ public String toString() { sb.append(" organizationName: ").append(toIndentedString(organizationName)).append("\n"); sb.append(" role: ").append(toIndentedString(role)).append("\n"); sb.append(" allowedActions: ").append(toIndentedString(allowedActions)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -296,28 +333,20 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in OrganizationUser is not found in the empty JSON string", OrganizationUser.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!OrganizationUser.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `OrganizationUser` properties. JSON: %s", entry.getKey(), jsonObj.toString())); - } - } - if (jsonObj.get("user_id") != null && !jsonObj.get("user_id").isJsonPrimitive()) { + 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())); } - if (jsonObj.get("organization_id") != null && !jsonObj.get("organization_id").isJsonPrimitive()) { + if ((jsonObj.get("organization_id") != null && !jsonObj.get("organization_id").isJsonNull()) && !jsonObj.get("organization_id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `organization_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("organization_id").toString())); } - if (jsonObj.get("username") != null && !jsonObj.get("username").isJsonPrimitive()) { + 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("organization_name") != null && !jsonObj.get("organization_name").isJsonPrimitive()) { + 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").isJsonArray()) { + 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())); } } @@ -337,6 +366,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, OrganizationUser value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -344,7 +390,25 @@ public void write(JsonWriter out, OrganizationUser value) throws IOException { public OrganizationUser read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + OrganizationUser instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 a3d0ab9..ac60f87 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 @@ -29,16 +29,16 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; import io.tiledb.cloud.rest_api.JSON; /** * PaginationMetadata */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class PaginationMetadata { public static final String SERIALIZED_NAME_PAGE = "page"; @SerializedName(SERIALIZED_NAME_PAGE) @@ -56,7 +56,7 @@ public class PaginationMetadata { @SerializedName(SERIALIZED_NAME_TOTAL_ITEMS) private BigDecimal totalItems; - public PaginationMetadata() { + public PaginationMetadata() { } public PaginationMetadata page(BigDecimal page) { @@ -150,6 +150,41 @@ public void setTotalItems(BigDecimal totalItems) { this.totalItems = totalItems; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public PaginationMetadata putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -164,12 +199,13 @@ public boolean equals(Object o) { return Objects.equals(this.page, paginationMetadata.page) && Objects.equals(this.perPage, paginationMetadata.perPage) && Objects.equals(this.totalPages, paginationMetadata.totalPages) && - Objects.equals(this.totalItems, paginationMetadata.totalItems); + Objects.equals(this.totalItems, paginationMetadata.totalItems)&& + Objects.equals(this.additionalProperties, paginationMetadata.additionalProperties); } @Override public int hashCode() { - return Objects.hash(page, perPage, totalPages, totalItems); + return Objects.hash(page, perPage, totalPages, totalItems, additionalProperties); } @Override @@ -180,6 +216,7 @@ public String toString() { sb.append(" perPage: ").append(toIndentedString(perPage)).append("\n"); sb.append(" totalPages: ").append(toIndentedString(totalPages)).append("\n"); sb.append(" totalItems: ").append(toIndentedString(totalItems)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -225,14 +262,6 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in PaginationMetadata is not found in the empty JSON string", PaginationMetadata.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!PaginationMetadata.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PaginationMetadata` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -250,6 +279,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, PaginationMetadata value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -257,7 +303,25 @@ public void write(JsonWriter out, PaginationMetadata value) throws IOException { public PaginationMetadata read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + PaginationMetadata instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 f448714..91b5ca8 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 @@ -23,23 +23,23 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class Pricing { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -93,7 +93,7 @@ public class Pricing { @SerializedName(SERIALIZED_NAME_ACTIVATED) private Boolean activated; - public Pricing() { + public Pricing() { } public Pricing id(String id) { @@ -394,6 +394,41 @@ public void setActivated(Boolean activated) { this.activated = activated; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public Pricing putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -417,12 +452,13 @@ public boolean equals(Object o) { Objects.equals(this.interval, pricing.interval) && Objects.equals(this.dividedBy, pricing.dividedBy) && Objects.equals(this.charge, pricing.charge) && - Objects.equals(this.activated, pricing.activated); + Objects.equals(this.activated, pricing.activated)&& + Objects.equals(this.additionalProperties, pricing.additionalProperties); } @Override public int hashCode() { - return Objects.hash(id, arrayUuid, pricingName, pricingType, productName, productStatementDescriptor, productUnitLabel, currency, aggregateUsage, interval, dividedBy, charge, activated); + return Objects.hash(id, arrayUuid, pricingName, pricingType, productName, productStatementDescriptor, productUnitLabel, currency, aggregateUsage, interval, dividedBy, charge, activated, additionalProperties); } @Override @@ -442,6 +478,7 @@ public String toString() { sb.append(" dividedBy: ").append(toIndentedString(dividedBy)).append("\n"); sb.append(" charge: ").append(toIndentedString(charge)).append("\n"); sb.append(" activated: ").append(toIndentedString(activated)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -496,27 +533,19 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in Pricing is not found in the empty JSON string", Pricing.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!Pricing.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `Pricing` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } - if (jsonObj.get("id") != null && !jsonObj.get("id").isJsonPrimitive()) { + 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("array_uuid") != null && !jsonObj.get("array_uuid").isJsonPrimitive()) { + 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())); } - if (jsonObj.get("pricing_name") != null && !jsonObj.get("pricing_name").isJsonPrimitive()) { + 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())); } - if (jsonObj.get("product_name") != null && !jsonObj.get("product_name").isJsonPrimitive()) { + 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").isJsonPrimitive()) { + 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())); } } @@ -536,6 +565,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, Pricing value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -543,7 +589,25 @@ public void write(JsonWriter out, Pricing value) throws IOException { public Pricing read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + Pricing instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 1d146ca..7285e34 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 @@ -24,8 +24,6 @@ import java.util.ArrayList; import java.util.List; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonArray; import com.google.gson.JsonElement; @@ -33,14 +31,16 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; /** * Query */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class Query { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -78,7 +78,7 @@ public class Query { @SerializedName(SERIALIZED_NAME_TOTAL_VAR_LEN_BUFFER_BYTES) private Integer totalVarLenBufferBytes; - public Query() { + public Query() { } public Query type(Querytype type) { @@ -292,6 +292,41 @@ public void setTotalVarLenBufferBytes(Integer totalVarLenBufferBytes) { this.totalVarLenBufferBytes = totalVarLenBufferBytes; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public Query putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -311,12 +346,13 @@ public boolean equals(Object o) { Objects.equals(this.reader, query.reader) && Objects.equals(this.array, query.array) && Objects.equals(this.totalFixedLengthBufferBytes, query.totalFixedLengthBufferBytes) && - Objects.equals(this.totalVarLenBufferBytes, query.totalVarLenBufferBytes); + Objects.equals(this.totalVarLenBufferBytes, query.totalVarLenBufferBytes)&& + Objects.equals(this.additionalProperties, query.additionalProperties); } @Override public int hashCode() { - return Objects.hash(type, layout, status, attributeBufferHeaders, writer, reader, array, totalFixedLengthBufferBytes, totalVarLenBufferBytes); + return Objects.hash(type, layout, status, attributeBufferHeaders, writer, reader, array, totalFixedLengthBufferBytes, totalVarLenBufferBytes, additionalProperties); } @Override @@ -332,6 +368,7 @@ public String toString() { sb.append(" array: ").append(toIndentedString(array)).append("\n"); sb.append(" totalFixedLengthBufferBytes: ").append(toIndentedString(totalFixedLengthBufferBytes)).append("\n"); sb.append(" totalVarLenBufferBytes: ").append(toIndentedString(totalVarLenBufferBytes)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -390,14 +427,6 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { } } - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!Query.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `Query` properties. JSON: %s", entry.getKey(), jsonObj.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) { @@ -417,15 +446,15 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { }; } // validate the optional field `writer` - if (jsonObj.getAsJsonObject("writer") != null) { + if (jsonObj.get("writer") != null && !jsonObj.get("writer").isJsonNull()) { Writer.validateJsonObject(jsonObj.getAsJsonObject("writer")); } // validate the optional field `reader` - if (jsonObj.getAsJsonObject("reader") != null) { + if (jsonObj.get("reader") != null && !jsonObj.get("reader").isJsonNull()) { QueryReader.validateJsonObject(jsonObj.getAsJsonObject("reader")); } // validate the optional field `array` - if (jsonObj.getAsJsonObject("array") != null) { + if (jsonObj.get("array") != null && !jsonObj.get("array").isJsonNull()) { Array.validateJsonObject(jsonObj.getAsJsonObject("array")); } } @@ -445,6 +474,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, Query value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -452,7 +498,25 @@ public void write(JsonWriter out, Query value) throws IOException { public Query read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + Query instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 6bb3746..93b7714 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 @@ -25,23 +25,23 @@ import java.util.ArrayList; import java.util.List; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class QueryJson { public static final String SERIALIZED_NAME_QUERY_RANGES = "query_ranges"; @SerializedName(SERIALIZED_NAME_QUERY_RANGES) @@ -51,7 +51,7 @@ public class QueryJson { @SerializedName(SERIALIZED_NAME_FIELDS) private List fields = null; - public QueryJson() { + public QueryJson() { } public QueryJson queryRanges(QueryRanges queryRanges) { @@ -107,6 +107,41 @@ public void setFields(List fields) { this.fields = fields; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public QueryJson putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -119,12 +154,13 @@ public boolean equals(Object o) { } QueryJson queryJson = (QueryJson) o; return Objects.equals(this.queryRanges, queryJson.queryRanges) && - Objects.equals(this.fields, queryJson.fields); + Objects.equals(this.fields, queryJson.fields)&& + Objects.equals(this.additionalProperties, queryJson.additionalProperties); } @Override public int hashCode() { - return Objects.hash(queryRanges, fields); + return Objects.hash(queryRanges, fields, additionalProperties); } @Override @@ -133,6 +169,7 @@ public String toString() { sb.append("class QueryJson {\n"); sb.append(" queryRanges: ").append(toIndentedString(queryRanges)).append("\n"); sb.append(" fields: ").append(toIndentedString(fields)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -176,20 +213,12 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in QueryJson is not found in the empty JSON string", QueryJson.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!QueryJson.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `QueryJson` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } // validate the optional field `query_ranges` - if (jsonObj.getAsJsonObject("query_ranges") != null) { + if (jsonObj.get("query_ranges") != null && !jsonObj.get("query_ranges").isJsonNull()) { QueryRanges.validateJsonObject(jsonObj.getAsJsonObject("query_ranges")); } // ensure the json data is an array - if (jsonObj.get("fields") != null && !jsonObj.get("fields").isJsonArray()) { + 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())); } } @@ -209,6 +238,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, QueryJson value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -216,7 +262,25 @@ public void write(JsonWriter out, QueryJson value) throws IOException { public QueryJson read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + QueryJson instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 f7a46b1..402a11a 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 @@ -26,23 +26,23 @@ import java.util.ArrayList; import java.util.List; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class QueryRanges { public static final String SERIALIZED_NAME_LAYOUT = "layout"; @SerializedName(SERIALIZED_NAME_LAYOUT) @@ -52,7 +52,7 @@ public class QueryRanges { @SerializedName(SERIALIZED_NAME_RANGES) private List> ranges = null; - public QueryRanges() { + public QueryRanges() { } public QueryRanges layout(Layout layout) { @@ -108,6 +108,41 @@ public void setRanges(List> ranges) { this.ranges = ranges; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public QueryRanges putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -120,12 +155,13 @@ public boolean equals(Object o) { } QueryRanges queryRanges = (QueryRanges) o; return Objects.equals(this.layout, queryRanges.layout) && - Objects.equals(this.ranges, queryRanges.ranges); + Objects.equals(this.ranges, queryRanges.ranges)&& + Objects.equals(this.additionalProperties, queryRanges.additionalProperties); } @Override public int hashCode() { - return Objects.hash(layout, ranges); + return Objects.hash(layout, ranges, additionalProperties); } @Override @@ -134,6 +170,7 @@ public String toString() { sb.append("class QueryRanges {\n"); sb.append(" layout: ").append(toIndentedString(layout)).append("\n"); sb.append(" ranges: ").append(toIndentedString(ranges)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -177,16 +214,8 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in QueryRanges is not found in the empty JSON string", QueryRanges.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!QueryRanges.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `QueryRanges` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } // ensure the json data is an array - if (jsonObj.get("ranges") != null && !jsonObj.get("ranges").isJsonArray()) { + 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())); } } @@ -206,6 +235,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, QueryRanges value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -213,7 +259,25 @@ public void write(JsonWriter out, QueryRanges value) throws IOException { public QueryRanges read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + QueryRanges instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 8c5caee..5bffc8e 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 @@ -23,23 +23,23 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class QueryReader { public static final String SERIALIZED_NAME_LAYOUT = "layout"; @SerializedName(SERIALIZED_NAME_LAYOUT) @@ -65,7 +65,7 @@ public class QueryReader { @SerializedName(SERIALIZED_NAME_VAR_OFFSETS_BITSIZE) private Integer varOffsetsBitsize; - public QueryReader() { + public QueryReader() { } public QueryReader layout(Layout layout) { @@ -205,6 +205,41 @@ public void setVarOffsetsBitsize(Integer varOffsetsBitsize) { this.varOffsetsBitsize = varOffsetsBitsize; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public QueryReader putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -221,12 +256,13 @@ public boolean equals(Object o) { Objects.equals(this.readState, queryReader.readState) && Objects.equals(this.varOffsetsMode, queryReader.varOffsetsMode) && Objects.equals(this.varOffsetsAddExtraElement, queryReader.varOffsetsAddExtraElement) && - Objects.equals(this.varOffsetsBitsize, queryReader.varOffsetsBitsize); + Objects.equals(this.varOffsetsBitsize, queryReader.varOffsetsBitsize)&& + Objects.equals(this.additionalProperties, queryReader.additionalProperties); } @Override public int hashCode() { - return Objects.hash(layout, subarray, readState, varOffsetsMode, varOffsetsAddExtraElement, varOffsetsBitsize); + return Objects.hash(layout, subarray, readState, varOffsetsMode, varOffsetsAddExtraElement, varOffsetsBitsize, additionalProperties); } @Override @@ -239,6 +275,7 @@ public String toString() { sb.append(" varOffsetsMode: ").append(toIndentedString(varOffsetsMode)).append("\n"); sb.append(" varOffsetsAddExtraElement: ").append(toIndentedString(varOffsetsAddExtraElement)).append("\n"); sb.append(" varOffsetsBitsize: ").append(toIndentedString(varOffsetsBitsize)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -286,23 +323,15 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in QueryReader is not found in the empty JSON string", QueryReader.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!QueryReader.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `QueryReader` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } // validate the optional field `subarray` - if (jsonObj.getAsJsonObject("subarray") != null) { + if (jsonObj.get("subarray") != null && !jsonObj.get("subarray").isJsonNull()) { Subarray.validateJsonObject(jsonObj.getAsJsonObject("subarray")); } // validate the optional field `readState` - if (jsonObj.getAsJsonObject("readState") != null) { + if (jsonObj.get("readState") != null && !jsonObj.get("readState").isJsonNull()) { ReadState.validateJsonObject(jsonObj.getAsJsonObject("readState")); } - if (jsonObj.get("varOffsetsMode") != null && !jsonObj.get("varOffsetsMode").isJsonPrimitive()) { + 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())); } } @@ -322,6 +351,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, QueryReader value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -329,7 +375,25 @@ public void write(JsonWriter out, QueryReader value) throws IOException { public QueryReader read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + QueryReader instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 2744f66..79a70a8 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 @@ -27,7 +27,9 @@ public enum Querytype { READ("READ"), - WRITE("WRITE"); + WRITE("WRITE"), + + DELETE("DELETE"); private String 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 e7c63af..616d441 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 @@ -23,23 +23,23 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class ReadState { public static final String SERIALIZED_NAME_INITIALIZED = "initialized"; @SerializedName(SERIALIZED_NAME_INITIALIZED) @@ -57,7 +57,7 @@ public class ReadState { @SerializedName(SERIALIZED_NAME_SUBARRAY_PARTITIONER) private SubarrayPartitioner subarrayPartitioner; - public ReadState() { + public ReadState() { } public ReadState initialized(Boolean initialized) { @@ -151,6 +151,41 @@ public void setSubarrayPartitioner(SubarrayPartitioner subarrayPartitioner) { this.subarrayPartitioner = subarrayPartitioner; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public ReadState putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -165,12 +200,13 @@ public boolean equals(Object o) { return Objects.equals(this.initialized, readState.initialized) && Objects.equals(this.overflowed, readState.overflowed) && Objects.equals(this.unsplittable, readState.unsplittable) && - Objects.equals(this.subarrayPartitioner, readState.subarrayPartitioner); + Objects.equals(this.subarrayPartitioner, readState.subarrayPartitioner)&& + Objects.equals(this.additionalProperties, readState.additionalProperties); } @Override public int hashCode() { - return Objects.hash(initialized, overflowed, unsplittable, subarrayPartitioner); + return Objects.hash(initialized, overflowed, unsplittable, subarrayPartitioner, additionalProperties); } @Override @@ -181,6 +217,7 @@ public String toString() { sb.append(" overflowed: ").append(toIndentedString(overflowed)).append("\n"); sb.append(" unsplittable: ").append(toIndentedString(unsplittable)).append("\n"); sb.append(" subarrayPartitioner: ").append(toIndentedString(subarrayPartitioner)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -226,16 +263,8 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in ReadState is not found in the empty JSON string", ReadState.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!ReadState.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ReadState` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } // validate the optional field `subarrayPartitioner` - if (jsonObj.getAsJsonObject("subarrayPartitioner") != null) { + if (jsonObj.get("subarrayPartitioner") != null && !jsonObj.get("subarrayPartitioner").isJsonNull()) { SubarrayPartitioner.validateJsonObject(jsonObj.getAsJsonObject("subarrayPartitioner")); } } @@ -255,6 +284,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, ReadState value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -262,7 +308,25 @@ public void write(JsonWriter out, ReadState value) throws IOException { public ReadState read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + ReadState instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 61fc157..e38151a 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 @@ -25,7 +25,6 @@ import java.util.ArrayList; import java.util.List; -import io.tiledb.cloud.rest_api.JSON; import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; @@ -35,15 +34,17 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; /** * The structure and metadata of a task graph that can be stored on TileDB Cloud and executed by users who have access to it. */ @ApiModel(description = "The structure and metadata of a task graph that can be stored on TileDB Cloud and executed by users who have access to it. ") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class RegisteredTaskGraph { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) @@ -75,9 +76,9 @@ public class RegisteredTaskGraph { public static final String SERIALIZED_NAME_NODES = "nodes"; @SerializedName(SERIALIZED_NAME_NODES) - private List nodes = null; + private List nodes = null; - public RegisteredTaskGraph() { + public RegisteredTaskGraph() { } public RegisteredTaskGraph uuid(String uuid) { @@ -249,13 +250,13 @@ public void setTags(List tags) { } - public RegisteredTaskGraph nodes(List nodes) { + public RegisteredTaskGraph nodes(List nodes) { this.nodes = nodes; return this; } - public RegisteredTaskGraph addNodesItem(RegisteredTaskGraphNode nodesItem) { + public RegisteredTaskGraph addNodesItem(TaskGraphNode nodesItem) { if (this.nodes == null) { this.nodes = new ArrayList<>(); } @@ -270,15 +271,50 @@ public RegisteredTaskGraph addNodesItem(RegisteredTaskGraphNode nodesItem) { @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() { + public List getNodes() { return nodes; } - public void setNodes(List nodes) { + public void setNodes(List nodes) { this.nodes = nodes; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public RegisteredTaskGraph putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -297,7 +333,8 @@ public boolean equals(Object o) { Objects.equals(this.licenseId, registeredTaskGraph.licenseId) && Objects.equals(this.licenseText, registeredTaskGraph.licenseText) && Objects.equals(this.tags, registeredTaskGraph.tags) && - Objects.equals(this.nodes, registeredTaskGraph.nodes); + Objects.equals(this.nodes, registeredTaskGraph.nodes)&& + Objects.equals(this.additionalProperties, registeredTaskGraph.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -306,7 +343,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(uuid, namespace, name, readme, licenseId, licenseText, tags, nodes); + return Objects.hash(uuid, namespace, name, readme, licenseId, licenseText, tags, nodes, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -328,6 +365,7 @@ public String toString() { sb.append(" licenseText: ").append(toIndentedString(licenseText)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" nodes: ").append(toIndentedString(nodes)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -377,34 +415,26 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in RegisteredTaskGraph is not found in the empty JSON string", RegisteredTaskGraph.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!RegisteredTaskGraph.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `RegisteredTaskGraph` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } - if (jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonPrimitive()) { + if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } - if (jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonPrimitive()) { + 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").isJsonPrimitive()) { + 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("readme") != null && !jsonObj.get("readme").isJsonPrimitive()) { + 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())); } - if (jsonObj.get("license_id") != null && !jsonObj.get("license_id").isJsonPrimitive()) { + if ((jsonObj.get("license_id") != null && !jsonObj.get("license_id").isJsonNull()) && !jsonObj.get("license_id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `license_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("license_id").toString())); } - if (jsonObj.get("license_text") != null && !jsonObj.get("license_text").isJsonPrimitive()) { + 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").isJsonArray()) { + 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"); @@ -416,7 +446,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { // validate the optional field `nodes` (array) for (int i = 0; i < jsonArraynodes.size(); i++) { - RegisteredTaskGraphNode.validateJsonObject(jsonArraynodes.get(i).getAsJsonObject()); + TaskGraphNode.validateJsonObject(jsonArraynodes.get(i).getAsJsonObject()); }; } } @@ -436,6 +466,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, RegisteredTaskGraph value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -443,7 +490,25 @@ public void write(JsonWriter out, RegisteredTaskGraph value) throws IOException public RegisteredTaskGraph read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + RegisteredTaskGraph instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); diff --git a/src/main/java/io/tiledb/cloud/rest_api/model/RegisteredTaskGraphNode.java b/src/main/java/io/tiledb/cloud/rest_api/model/RegisteredTaskGraphNode.java deleted file mode 100644 index 7735b52..0000000 --- a/src/main/java/io/tiledb/cloud/rest_api/model/RegisteredTaskGraphNode.java +++ /dev/null @@ -1,426 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package io.tiledb.cloud.rest_api.model; - -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.SerializedName; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -import io.tiledb.cloud.rest_api.JSON; -import org.openapitools.jackson.nullable.JsonNullable; - -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.TypeAdapterFactory; -import com.google.gson.reflect.TypeToken; - -import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; - -/** - * 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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") -public class RegisteredTaskGraphNode { - public static final String SERIALIZED_NAME_CLIENT_NODE_ID = "client_node_id"; - @SerializedName(SERIALIZED_NAME_CLIENT_NODE_ID) - private String clientNodeId; - - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public static final String SERIALIZED_NAME_DEPENDS_ON = "depends_on"; - @SerializedName(SERIALIZED_NAME_DEPENDS_ON) - private List dependsOn = null; - - public static final String SERIALIZED_NAME_ARRAY_NODE = "array_node"; - @SerializedName(SERIALIZED_NAME_ARRAY_NODE) - private UDFArrayDetails arrayNode; - - public static final String SERIALIZED_NAME_INPUT_NODE = "input_node"; - @SerializedName(SERIALIZED_NAME_INPUT_NODE) - private TGInputNodeData inputNode; - - public static final String SERIALIZED_NAME_SQL_NODE = "sql_node"; - @SerializedName(SERIALIZED_NAME_SQL_NODE) - private TGSQLNodeData sqlNode; - - public static final String SERIALIZED_NAME_UDF_NODE = "udf_node"; - @SerializedName(SERIALIZED_NAME_UDF_NODE) - private TGUDFNodeData udfNode; - - public RegisteredTaskGraphNode() { - } - - public RegisteredTaskGraphNode 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 RegisteredTaskGraphNode 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 RegisteredTaskGraphNode dependsOn(List dependsOn) { - - this.dependsOn = dependsOn; - return this; - } - - public RegisteredTaskGraphNode addDependsOnItem(String dependsOnItem) { - if (this.dependsOn == null) { - this.dependsOn = new ArrayList<>(); - } - this.dependsOn.add(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 RegisteredTaskGraphNode 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 RegisteredTaskGraphNode 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 RegisteredTaskGraphNode 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 RegisteredTaskGraphNode 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; - } - - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - RegisteredTaskGraphNode registeredTaskGraphNode = (RegisteredTaskGraphNode) o; - return Objects.equals(this.clientNodeId, registeredTaskGraphNode.clientNodeId) && - Objects.equals(this.name, registeredTaskGraphNode.name) && - Objects.equals(this.dependsOn, registeredTaskGraphNode.dependsOn) && - Objects.equals(this.arrayNode, registeredTaskGraphNode.arrayNode) && - Objects.equals(this.inputNode, registeredTaskGraphNode.inputNode) && - Objects.equals(this.sqlNode, registeredTaskGraphNode.sqlNode) && - Objects.equals(this.udfNode, registeredTaskGraphNode.udfNode); - } - - 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(clientNodeId, name, dependsOn, arrayNode, inputNode, sqlNode, udfNode); - } - - 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 RegisteredTaskGraphNode {\n"); - sb.append(" clientNodeId: ").append(toIndentedString(clientNodeId)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" dependsOn: ").append(toIndentedString(dependsOn)).append("\n"); - sb.append(" arrayNode: ").append(toIndentedString(arrayNode)).append("\n"); - sb.append(" inputNode: ").append(toIndentedString(inputNode)).append("\n"); - sb.append(" sqlNode: ").append(toIndentedString(sqlNode)).append("\n"); - sb.append(" udfNode: ").append(toIndentedString(udfNode)).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("client_node_id"); - openapiFields.add("name"); - openapiFields.add("depends_on"); - openapiFields.add("array_node"); - openapiFields.add("input_node"); - openapiFields.add("sql_node"); - openapiFields.add("udf_node"); - - // 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 RegisteredTaskGraphNode - */ - public static void validateJsonObject(JsonObject jsonObj) throws IOException { - if (jsonObj == null) { - if (RegisteredTaskGraphNode.openapiRequiredFields.isEmpty()) { - return; - } else { // has required fields - throw new IllegalArgumentException(String.format("The required field(s) %s in RegisteredTaskGraphNode is not found in the empty JSON string", RegisteredTaskGraphNode.openapiRequiredFields.toString())); - } - } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!RegisteredTaskGraphNode.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `RegisteredTaskGraphNode` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } - if (jsonObj.get("client_node_id") != null && !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").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").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.getAsJsonObject("array_node") != null) { - UDFArrayDetails.validateJsonObject(jsonObj.getAsJsonObject("array_node")); - } - // validate the optional field `input_node` - if (jsonObj.getAsJsonObject("input_node") != null) { - TGInputNodeData.validateJsonObject(jsonObj.getAsJsonObject("input_node")); - } - // validate the optional field `sql_node` - if (jsonObj.getAsJsonObject("sql_node") != null) { - TGSQLNodeData.validateJsonObject(jsonObj.getAsJsonObject("sql_node")); - } - // validate the optional field `udf_node` - if (jsonObj.getAsJsonObject("udf_node") != null) { - TGUDFNodeData.validateJsonObject(jsonObj.getAsJsonObject("udf_node")); - } - } - - public static class CustomTypeAdapterFactory implements TypeAdapterFactory { - @SuppressWarnings("unchecked") - @Override - public TypeAdapter create(Gson gson, TypeToken type) { - if (!RegisteredTaskGraphNode.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'RegisteredTaskGraphNode' and its subtypes - } - final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(RegisteredTaskGraphNode.class)); - - return (TypeAdapter) new TypeAdapter() { - @Override - public void write(JsonWriter out, RegisteredTaskGraphNode value) throws IOException { - JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); - elementAdapter.write(out, obj); - } - - @Override - public RegisteredTaskGraphNode read(JsonReader in) throws IOException { - JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); - validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); - } - - }.nullSafe(); - } - } - - /** - * Create an instance of RegisteredTaskGraphNode given an JSON string - * - * @param jsonString JSON string - * @return An instance of RegisteredTaskGraphNode - * @throws IOException if the JSON string is invalid with respect to RegisteredTaskGraphNode - */ - public static RegisteredTaskGraphNode fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, RegisteredTaskGraphNode.class); - } - - /** - * Convert an instance of RegisteredTaskGraphNode 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 8de461b..c45431a 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 @@ -29,9 +29,9 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; import io.tiledb.cloud.rest_api.JSON; @@ -39,13 +39,13 @@ * Password to update */ @ApiModel(description = "Password to update") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class ResetUserPasswordRequest { public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) private String password; - public ResetUserPasswordRequest() { + public ResetUserPasswordRequest() { } public ResetUserPasswordRequest password(String password) { @@ -70,6 +70,41 @@ public void setPassword(String password) { this.password = password; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public ResetUserPasswordRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -81,12 +116,13 @@ public boolean equals(Object o) { return false; } ResetUserPasswordRequest resetUserPasswordRequest = (ResetUserPasswordRequest) o; - return Objects.equals(this.password, resetUserPasswordRequest.password); + return Objects.equals(this.password, resetUserPasswordRequest.password)&& + Objects.equals(this.additionalProperties, resetUserPasswordRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(password); + return Objects.hash(password, additionalProperties); } @Override @@ -94,6 +130,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ResetUserPasswordRequest {\n"); sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -136,15 +173,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in ResetUserPasswordRequest is not found in the empty JSON string", ResetUserPasswordRequest.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!ResetUserPasswordRequest.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `ResetUserPasswordRequest` properties. JSON: %s", entry.getKey(), jsonObj.toString())); - } - } - if (jsonObj.get("password") != null && !jsonObj.get("password").isJsonPrimitive()) { + 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())); } } @@ -164,6 +193,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, ResetUserPasswordRequest value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -171,7 +217,25 @@ public void write(JsonWriter out, ResetUserPasswordRequest value) throws IOExcep public ResetUserPasswordRequest read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + ResetUserPasswordRequest instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 new file mode 100644 index 0000000..95603ba --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/RetryPolicy.java @@ -0,0 +1,73 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.2.19 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + +import java.io.IOException; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; + +/** + * RetryPolicy is a policy of node statuses that will be retried + */ +@JsonAdapter(RetryPolicy.Adapter.class) +public enum RetryPolicy { + + ALWAYS("Always"), + + ONFAILURE("OnFailure"), + + ONERROR("OnError"), + + ONTRANSIENTERROR("OnTransientError"); + + private String value; + + RetryPolicy(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static RetryPolicy fromValue(String value) { + for (RetryPolicy b : RetryPolicy.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 RetryPolicy enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public RetryPolicy read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return 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 new file mode 100644 index 0000000..6e8d937 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/RetryStrategy.java @@ -0,0 +1,359 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.2.19 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + +import java.util.Objects; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +import com.google.gson.Gson; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * 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]") +public class RetryStrategy { + public static final String SERIALIZED_NAME_BACKOFF = "backoff"; + @SerializedName(SERIALIZED_NAME_BACKOFF) + private Backoff backoff; + + public static final String SERIALIZED_NAME_EXPRESSION = "expression"; + @SerializedName(SERIALIZED_NAME_EXPRESSION) + private String expression; + + public static final String SERIALIZED_NAME_LIMIT = "limit"; + @SerializedName(SERIALIZED_NAME_LIMIT) + private Integer limit; + + public static final String SERIALIZED_NAME_RETRY_POLICY = "retryPolicy"; + @SerializedName(SERIALIZED_NAME_RETRY_POLICY) + private RetryPolicy retryPolicy; + + 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; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public RetryStrategy putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RetryStrategy retryStrategy = (RetryStrategy) o; + return Objects.equals(this.backoff, retryStrategy.backoff) && + Objects.equals(this.expression, retryStrategy.expression) && + Objects.equals(this.limit, retryStrategy.limit) && + Objects.equals(this.retryPolicy, retryStrategy.retryPolicy)&& + Objects.equals(this.additionalProperties, retryStrategy.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(backoff, expression, limit, retryPolicy, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RetryStrategy {\n"); + sb.append(" backoff: ").append(toIndentedString(backoff)).append("\n"); + sb.append(" expression: ").append(toIndentedString(expression)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" retryPolicy: ").append(toIndentedString(retryPolicy)).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("backoff"); + openapiFields.add("expression"); + openapiFields.add("limit"); + openapiFields.add("retryPolicy"); + + // 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 RetryStrategy + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (RetryStrategy.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in RetryStrategy is not found in the empty JSON string", RetryStrategy.openapiRequiredFields.toString())); + } + } + // validate the optional field `backoff` + if (jsonObj.get("backoff") != null && !jsonObj.get("backoff").isJsonNull()) { + Backoff.validateJsonObject(jsonObj.getAsJsonObject("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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!RetryStrategy.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RetryStrategy' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RetryStrategy.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, RetryStrategy value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public RetryStrategy read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + RetryStrategy instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of 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 + */ + 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 acc3192..24d47f5 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 @@ -25,23 +25,23 @@ import java.util.ArrayList; import java.util.List; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class SQLParameters { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -87,7 +87,7 @@ public class SQLParameters { @SerializedName(SERIALIZED_NAME_CLIENT_NODE_UUID) private String clientNodeUuid; - public SQLParameters() { + public SQLParameters() { } public SQLParameters name(String name) { @@ -358,6 +358,41 @@ public void setClientNodeUuid(String clientNodeUuid) { this.clientNodeUuid = clientNodeUuid; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public SQLParameters putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -379,12 +414,13 @@ public boolean equals(Object o) { Objects.equals(this.initCommands, sqLParameters.initCommands) && Objects.equals(this.parameters, sqLParameters.parameters) && Objects.equals(this.taskGraphUuid, sqLParameters.taskGraphUuid) && - Objects.equals(this.clientNodeUuid, sqLParameters.clientNodeUuid); + Objects.equals(this.clientNodeUuid, sqLParameters.clientNodeUuid)&& + Objects.equals(this.additionalProperties, sqLParameters.additionalProperties); } @Override public int hashCode() { - return Objects.hash(name, query, outputUri, storeResults, dontDownloadResults, resourceClass, resultFormat, initCommands, parameters, taskGraphUuid, clientNodeUuid); + return Objects.hash(name, query, outputUri, storeResults, dontDownloadResults, resourceClass, resultFormat, initCommands, parameters, taskGraphUuid, clientNodeUuid, additionalProperties); } @Override @@ -402,6 +438,7 @@ public String toString() { sb.append(" parameters: ").append(toIndentedString(parameters)).append("\n"); sb.append(" taskGraphUuid: ").append(toIndentedString(taskGraphUuid)).append("\n"); sb.append(" clientNodeUuid: ").append(toIndentedString(clientNodeUuid)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -454,38 +491,30 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in SQLParameters is not found in the empty JSON string", SQLParameters.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!SQLParameters.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `SQLParameters` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } - if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { + 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("query") != null && !jsonObj.get("query").isJsonPrimitive()) { + 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())); } - if (jsonObj.get("output_uri") != null && !jsonObj.get("output_uri").isJsonPrimitive()) { + 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("resource_class") != null && !jsonObj.get("resource_class").isJsonPrimitive()) { + 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").isJsonArray()) { + 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").isJsonArray()) { + 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").isJsonPrimitive()) { + 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").isJsonPrimitive()) { + 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())); } } @@ -505,6 +534,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, SQLParameters value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -512,7 +558,25 @@ public void write(JsonWriter out, SQLParameters value) throws IOException { public SQLParameters read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + SQLParameters instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 new file mode 100644 index 0000000..7d7ed31 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/SSODomainConfig.java @@ -0,0 +1,527 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.2.19 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.JsonArray; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * The 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]") +public class SSODomainConfig { + public static final String SERIALIZED_NAME_UUID = "uuid"; + @SerializedName(SERIALIZED_NAME_UUID) + private String uuid; + + public static final String SERIALIZED_NAME_DOMAIN = "domain"; + @SerializedName(SERIALIZED_NAME_DOMAIN) + private String domain; + + public static final String SERIALIZED_NAME_OIDC_ISSUER = "oidc_issuer"; + @SerializedName(SERIALIZED_NAME_OIDC_ISSUER) + private String oidcIssuer; + + public static final String SERIALIZED_NAME_OIDC_CLIENT_ID = "oidc_client_id"; + @SerializedName(SERIALIZED_NAME_OIDC_CLIENT_ID) + private String oidcClientId; + + public static final String SERIALIZED_NAME_OIDC_CLIENT_SECRET = "oidc_client_secret"; + @SerializedName(SERIALIZED_NAME_OIDC_CLIENT_SECRET) + private String oidcClientSecret; + + public static final String SERIALIZED_NAME_DOMAIN_SETUP = "domain_setup"; + @SerializedName(SERIALIZED_NAME_DOMAIN_SETUP) + private SSODomainSetup domainSetup; + + public static final String SERIALIZED_NAME_VERIFICATION_STATUS = "verification_status"; + @SerializedName(SERIALIZED_NAME_VERIFICATION_STATUS) + private DomainVerificationStatus verificationStatus; + + public static final String SERIALIZED_NAME_CHECK_RESULTS = "check_results"; + @SerializedName(SERIALIZED_NAME_CHECK_RESULTS) + private List checkResults = null; + + 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; + } + + public SSODomainConfig addCheckResultsItem(DomainCheckResult checkResultsItem) { + if (this.checkResults == null) { + this.checkResults = new ArrayList<>(); + } + this.checkResults.add(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; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public SSODomainConfig putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SSODomainConfig ssODomainConfig = (SSODomainConfig) o; + return Objects.equals(this.uuid, ssODomainConfig.uuid) && + Objects.equals(this.domain, ssODomainConfig.domain) && + Objects.equals(this.oidcIssuer, ssODomainConfig.oidcIssuer) && + Objects.equals(this.oidcClientId, ssODomainConfig.oidcClientId) && + Objects.equals(this.oidcClientSecret, ssODomainConfig.oidcClientSecret) && + Objects.equals(this.domainSetup, ssODomainConfig.domainSetup) && + Objects.equals(this.verificationStatus, ssODomainConfig.verificationStatus) && + Objects.equals(this.checkResults, ssODomainConfig.checkResults)&& + Objects.equals(this.additionalProperties, ssODomainConfig.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(uuid, domain, oidcIssuer, oidcClientId, oidcClientSecret, domainSetup, verificationStatus, checkResults, 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 SSODomainConfig {\n"); + sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n"); + sb.append(" domain: ").append(toIndentedString(domain)).append("\n"); + sb.append(" oidcIssuer: ").append(toIndentedString(oidcIssuer)).append("\n"); + sb.append(" oidcClientId: ").append(toIndentedString(oidcClientId)).append("\n"); + sb.append(" oidcClientSecret: ").append(toIndentedString(oidcClientSecret)).append("\n"); + sb.append(" domainSetup: ").append(toIndentedString(domainSetup)).append("\n"); + sb.append(" verificationStatus: ").append(toIndentedString(verificationStatus)).append("\n"); + sb.append(" checkResults: ").append(toIndentedString(checkResults)).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("domain"); + openapiFields.add("oidc_issuer"); + openapiFields.add("oidc_client_id"); + openapiFields.add("oidc_client_secret"); + openapiFields.add("domain_setup"); + openapiFields.add("verification_status"); + openapiFields.add("check_results"); + + // 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 SSODomainConfig + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (SSODomainConfig.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in SSODomainConfig is not found in the empty JSON string", SSODomainConfig.openapiRequiredFields.toString())); + } + } + if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + } + if ((jsonObj.get("domain") != null && !jsonObj.get("domain").isJsonNull()) && !jsonObj.get("domain").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `domain` to be a primitive type in the JSON string but got `%s`", jsonObj.get("domain").toString())); + } + if ((jsonObj.get("oidc_issuer") != null && !jsonObj.get("oidc_issuer").isJsonNull()) && !jsonObj.get("oidc_issuer").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `oidc_issuer` to be a primitive type in the JSON string but got `%s`", jsonObj.get("oidc_issuer").toString())); + } + if ((jsonObj.get("oidc_client_id") != null && !jsonObj.get("oidc_client_id").isJsonNull()) && !jsonObj.get("oidc_client_id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `oidc_client_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("oidc_client_id").toString())); + } + if ((jsonObj.get("oidc_client_secret") != null && !jsonObj.get("oidc_client_secret").isJsonNull()) && !jsonObj.get("oidc_client_secret").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `oidc_client_secret` to be a primitive type in the JSON string but got `%s`", jsonObj.get("oidc_client_secret").toString())); + } + // validate the optional field `domain_setup` + if (jsonObj.get("domain_setup") != null && !jsonObj.get("domain_setup").isJsonNull()) { + SSODomainSetup.validateJsonObject(jsonObj.getAsJsonObject("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 `check_results` (array) + for (int i = 0; i < jsonArraycheckResults.size(); i++) { + DomainCheckResult.validateJsonObject(jsonArraycheckResults.get(i).getAsJsonObject()); + }; + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!SSODomainConfig.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SSODomainConfig' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(SSODomainConfig.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SSODomainConfig value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public SSODomainConfig read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + SSODomainConfig instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of 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 + */ + 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 new file mode 100644 index 0000000..85ff444 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/SSODomainConfigResponse.java @@ -0,0 +1,285 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.2.19 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + +import java.util.Objects; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.JsonArray; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * The 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]") +public class SSODomainConfigResponse { + public static final String SERIALIZED_NAME_DOMAIN_CONFIGS = "domain_configs"; + @SerializedName(SERIALIZED_NAME_DOMAIN_CONFIGS) + private List domainConfigs = null; + + public SSODomainConfigResponse() { + } + + public SSODomainConfigResponse domainConfigs(List domainConfigs) { + + this.domainConfigs = domainConfigs; + return this; + } + + public SSODomainConfigResponse addDomainConfigsItem(SSODomainConfig domainConfigsItem) { + if (this.domainConfigs == null) { + this.domainConfigs = new ArrayList<>(); + } + this.domainConfigs.add(domainConfigsItem); + return this; + } + + /** + * Get domainConfigs + * @return domainConfigs + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public List getDomainConfigs() { + return domainConfigs; + } + + + public void setDomainConfigs(List domainConfigs) { + this.domainConfigs = domainConfigs; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public SSODomainConfigResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SSODomainConfigResponse ssODomainConfigResponse = (SSODomainConfigResponse) o; + return Objects.equals(this.domainConfigs, ssODomainConfigResponse.domainConfigs)&& + Objects.equals(this.additionalProperties, ssODomainConfigResponse.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(domainConfigs, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SSODomainConfigResponse {\n"); + sb.append(" domainConfigs: ").append(toIndentedString(domainConfigs)).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("domain_configs"); + + // 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 SSODomainConfigResponse + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (SSODomainConfigResponse.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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())); + } + + // validate the optional field `domain_configs` (array) + for (int i = 0; i < jsonArraydomainConfigs.size(); i++) { + SSODomainConfig.validateJsonObject(jsonArraydomainConfigs.get(i).getAsJsonObject()); + }; + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!SSODomainConfigResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SSODomainConfigResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(SSODomainConfigResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SSODomainConfigResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public SSODomainConfigResponse read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + SSODomainConfigResponse instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of 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 + */ + 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 new file mode 100644 index 0000000..17841ec --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/SSODomainSetup.java @@ -0,0 +1,331 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.2.19 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + +import java.util.Objects; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +import com.google.gson.Gson; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * 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]") +public class SSODomainSetup { + public static final String SERIALIZED_NAME_TXT = "txt"; + @SerializedName(SERIALIZED_NAME_TXT) + private String txt; + + public static final String SERIALIZED_NAME_CNAME_SRC = "cname_src"; + @SerializedName(SERIALIZED_NAME_CNAME_SRC) + private String cnameSrc; + + public static final String SERIALIZED_NAME_CNAME_DST = "cname_dst"; + @SerializedName(SERIALIZED_NAME_CNAME_DST) + private String cnameDst; + + 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; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public SSODomainSetup putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SSODomainSetup ssODomainSetup = (SSODomainSetup) o; + return Objects.equals(this.txt, ssODomainSetup.txt) && + Objects.equals(this.cnameSrc, ssODomainSetup.cnameSrc) && + Objects.equals(this.cnameDst, ssODomainSetup.cnameDst)&& + Objects.equals(this.additionalProperties, ssODomainSetup.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(txt, cnameSrc, cnameDst, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SSODomainSetup {\n"); + sb.append(" txt: ").append(toIndentedString(txt)).append("\n"); + sb.append(" cnameSrc: ").append(toIndentedString(cnameSrc)).append("\n"); + sb.append(" cnameDst: ").append(toIndentedString(cnameDst)).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("txt"); + openapiFields.add("cname_src"); + openapiFields.add("cname_dst"); + + // 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 SSODomainSetup + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (SSODomainSetup.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in SSODomainSetup is not found in the empty JSON string", SSODomainSetup.openapiRequiredFields.toString())); + } + } + 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())); + } + if ((jsonObj.get("cname_src") != null && !jsonObj.get("cname_src").isJsonNull()) && !jsonObj.get("cname_src").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `cname_src` to be a primitive type in the JSON string but got `%s`", jsonObj.get("cname_src").toString())); + } + if ((jsonObj.get("cname_dst") != null && !jsonObj.get("cname_dst").isJsonNull()) && !jsonObj.get("cname_dst").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `cname_dst` to be a primitive type in the JSON string but got `%s`", jsonObj.get("cname_dst").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!SSODomainSetup.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SSODomainSetup' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(SSODomainSetup.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SSODomainSetup value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public SSODomainSetup read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + SSODomainSetup instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of 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 + */ + 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 new file mode 100644 index 0000000..c85a33e --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/SingleFragmentInfo.java @@ -0,0 +1,299 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.2.19 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + +import java.util.Objects; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +import com.google.gson.Gson; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * 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]") +public class SingleFragmentInfo { + public static final String SERIALIZED_NAME_ARRAY_SCHEMA_NAME = "ArraySchemaName"; + @SerializedName(SERIALIZED_NAME_ARRAY_SCHEMA_NAME) + private String arraySchemaName; + + public static final String SERIALIZED_NAME_META = "meta"; + @SerializedName(SERIALIZED_NAME_META) + private FragmentMetadata meta; + + 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; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public SingleFragmentInfo putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SingleFragmentInfo singleFragmentInfo = (SingleFragmentInfo) o; + return Objects.equals(this.arraySchemaName, singleFragmentInfo.arraySchemaName) && + Objects.equals(this.meta, singleFragmentInfo.meta)&& + Objects.equals(this.additionalProperties, singleFragmentInfo.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(arraySchemaName, meta, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SingleFragmentInfo {\n"); + sb.append(" arraySchemaName: ").append(toIndentedString(arraySchemaName)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).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("ArraySchemaName"); + openapiFields.add("meta"); + + // 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 SingleFragmentInfo + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (SingleFragmentInfo.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in SingleFragmentInfo is not found in the empty JSON string", SingleFragmentInfo.openapiRequiredFields.toString())); + } + } + 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")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!SingleFragmentInfo.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SingleFragmentInfo' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(SingleFragmentInfo.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SingleFragmentInfo value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public SingleFragmentInfo read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + SingleFragmentInfo instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of 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 + */ + 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 new file mode 100644 index 0000000..4aeaada --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/StorageLocation.java @@ -0,0 +1,310 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.2.19 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * 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]") +public class StorageLocation { + public static final String SERIALIZED_NAME_PATH = "path"; + @SerializedName(SERIALIZED_NAME_PATH) + private String path; + + public static final String SERIALIZED_NAME_CREDENTIALS_NAME = "credentials_name"; + @SerializedName(SERIALIZED_NAME_CREDENTIALS_NAME) + private String credentialsName; + + 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; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public StorageLocation putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + StorageLocation storageLocation = (StorageLocation) o; + return Objects.equals(this.path, storageLocation.path) && + Objects.equals(this.credentialsName, storageLocation.credentialsName)&& + Objects.equals(this.additionalProperties, storageLocation.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(path, credentialsName, 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 StorageLocation {\n"); + sb.append(" path: ").append(toIndentedString(path)).append("\n"); + sb.append(" credentialsName: ").append(toIndentedString(credentialsName)).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("credentials_name"); + + // 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 StorageLocation + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (StorageLocation.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in StorageLocation is not found in the empty JSON string", StorageLocation.openapiRequiredFields.toString())); + } + } + if ((jsonObj.get("path") != null && !jsonObj.get("path").isJsonNull()) && !jsonObj.get("path").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `path` to be a primitive type in the JSON string but got `%s`", jsonObj.get("path").toString())); + } + if ((jsonObj.get("credentials_name") != null && !jsonObj.get("credentials_name").isJsonNull()) && !jsonObj.get("credentials_name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `credentials_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("credentials_name").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!StorageLocation.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'StorageLocation' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(StorageLocation.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, StorageLocation value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public StorageLocation read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + StorageLocation instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of 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 + */ + 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 c8bf0ec..1a356b1 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 @@ -25,8 +25,6 @@ import java.util.ArrayList; import java.util.List; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonArray; import com.google.gson.JsonElement; @@ -34,15 +32,17 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; /** * A Subarray */ @ApiModel(description = "A Subarray") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class Subarray { public static final String SERIALIZED_NAME_LAYOUT = "layout"; @SerializedName(SERIALIZED_NAME_LAYOUT) @@ -52,7 +52,7 @@ public class Subarray { @SerializedName(SERIALIZED_NAME_RANGES) private List ranges = null; - public Subarray() { + public Subarray() { } public Subarray layout(Layout layout) { @@ -108,6 +108,41 @@ public void setRanges(List ranges) { this.ranges = ranges; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public Subarray putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -120,12 +155,13 @@ public boolean equals(Object o) { } Subarray subarray = (Subarray) o; return Objects.equals(this.layout, subarray.layout) && - Objects.equals(this.ranges, subarray.ranges); + Objects.equals(this.ranges, subarray.ranges)&& + Objects.equals(this.additionalProperties, subarray.additionalProperties); } @Override public int hashCode() { - return Objects.hash(layout, ranges); + return Objects.hash(layout, ranges, additionalProperties); } @Override @@ -134,6 +170,7 @@ public String toString() { sb.append("class Subarray {\n"); sb.append(" layout: ").append(toIndentedString(layout)).append("\n"); sb.append(" ranges: ").append(toIndentedString(ranges)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -177,14 +214,6 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in Subarray is not found in the empty JSON string", Subarray.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!Subarray.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `Subarray` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } JsonArray jsonArrayranges = jsonObj.getAsJsonArray("ranges"); if (jsonArrayranges != null) { // ensure the json data is an array @@ -214,6 +243,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, Subarray value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -221,7 +267,25 @@ public void write(JsonWriter out, Subarray value) throws IOException { public Subarray read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + Subarray instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 036e3f8..ab6d0b0 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 @@ -25,8 +25,6 @@ import java.util.ArrayList; import java.util.List; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonArray; import com.google.gson.JsonElement; @@ -34,15 +32,17 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class SubarrayPartitioner { public static final String SERIALIZED_NAME_SUBARRAY = "subarray"; @SerializedName(SERIALIZED_NAME_SUBARRAY) @@ -68,7 +68,7 @@ public class SubarrayPartitioner { @SerializedName(SERIALIZED_NAME_MEMORY_BUDGET_VAR) private Integer memoryBudgetVar; - public SubarrayPartitioner() { + public SubarrayPartitioner() { } public SubarrayPartitioner subarray(Subarray subarray) { @@ -216,6 +216,41 @@ public void setMemoryBudgetVar(Integer memoryBudgetVar) { this.memoryBudgetVar = memoryBudgetVar; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public SubarrayPartitioner putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -232,12 +267,13 @@ public boolean equals(Object o) { Objects.equals(this.current, subarrayPartitioner.current) && Objects.equals(this.state, subarrayPartitioner.state) && Objects.equals(this.memoryBudget, subarrayPartitioner.memoryBudget) && - Objects.equals(this.memoryBudgetVar, subarrayPartitioner.memoryBudgetVar); + Objects.equals(this.memoryBudgetVar, subarrayPartitioner.memoryBudgetVar)&& + Objects.equals(this.additionalProperties, subarrayPartitioner.additionalProperties); } @Override public int hashCode() { - return Objects.hash(subarray, budget, current, state, memoryBudget, memoryBudgetVar); + return Objects.hash(subarray, budget, current, state, memoryBudget, memoryBudgetVar, additionalProperties); } @Override @@ -250,6 +286,7 @@ public String toString() { sb.append(" state: ").append(toIndentedString(state)).append("\n"); sb.append(" memoryBudget: ").append(toIndentedString(memoryBudget)).append("\n"); sb.append(" memoryBudgetVar: ").append(toIndentedString(memoryBudgetVar)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -297,16 +334,8 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in SubarrayPartitioner is not found in the empty JSON string", SubarrayPartitioner.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!SubarrayPartitioner.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `SubarrayPartitioner` properties. JSON: %s", entry.getKey(), jsonObj.toString())); - } - } // validate the optional field `subarray` - if (jsonObj.getAsJsonObject("subarray") != null) { + if (jsonObj.get("subarray") != null && !jsonObj.get("subarray").isJsonNull()) { Subarray.validateJsonObject(jsonObj.getAsJsonObject("subarray")); } JsonArray jsonArraybudget = jsonObj.getAsJsonArray("budget"); @@ -322,11 +351,11 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { }; } // validate the optional field `current` - if (jsonObj.getAsJsonObject("current") != null) { + if (jsonObj.get("current") != null && !jsonObj.get("current").isJsonNull()) { SubarrayPartitionerCurrent.validateJsonObject(jsonObj.getAsJsonObject("current")); } // validate the optional field `state` - if (jsonObj.getAsJsonObject("state") != null) { + if (jsonObj.get("state") != null && !jsonObj.get("state").isJsonNull()) { SubarrayPartitionerState.validateJsonObject(jsonObj.getAsJsonObject("state")); } } @@ -346,6 +375,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, SubarrayPartitioner value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -353,7 +399,25 @@ public void write(JsonWriter out, SubarrayPartitioner value) throws IOException public SubarrayPartitioner read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + SubarrayPartitioner instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 4c0d334..961d188 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 @@ -23,23 +23,23 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class SubarrayPartitionerCurrent { public static final String SERIALIZED_NAME_SUBARRAY = "subarray"; @SerializedName(SERIALIZED_NAME_SUBARRAY) @@ -57,7 +57,7 @@ public class SubarrayPartitionerCurrent { @SerializedName(SERIALIZED_NAME_SPLIT_MULTI_RANGE) private Boolean splitMultiRange; - public SubarrayPartitionerCurrent() { + public SubarrayPartitionerCurrent() { } public SubarrayPartitionerCurrent subarray(Subarray subarray) { @@ -151,6 +151,41 @@ public void setSplitMultiRange(Boolean splitMultiRange) { this.splitMultiRange = splitMultiRange; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public SubarrayPartitionerCurrent putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -165,12 +200,13 @@ public boolean equals(Object o) { return Objects.equals(this.subarray, subarrayPartitionerCurrent.subarray) && Objects.equals(this.start, subarrayPartitionerCurrent.start) && Objects.equals(this.end, subarrayPartitionerCurrent.end) && - Objects.equals(this.splitMultiRange, subarrayPartitionerCurrent.splitMultiRange); + Objects.equals(this.splitMultiRange, subarrayPartitionerCurrent.splitMultiRange)&& + Objects.equals(this.additionalProperties, subarrayPartitionerCurrent.additionalProperties); } @Override public int hashCode() { - return Objects.hash(subarray, start, end, splitMultiRange); + return Objects.hash(subarray, start, end, splitMultiRange, additionalProperties); } @Override @@ -181,6 +217,7 @@ public String toString() { sb.append(" start: ").append(toIndentedString(start)).append("\n"); sb.append(" end: ").append(toIndentedString(end)).append("\n"); sb.append(" splitMultiRange: ").append(toIndentedString(splitMultiRange)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -226,16 +263,8 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in SubarrayPartitionerCurrent is not found in the empty JSON string", SubarrayPartitionerCurrent.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!SubarrayPartitionerCurrent.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `SubarrayPartitionerCurrent` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } // validate the optional field `subarray` - if (jsonObj.getAsJsonObject("subarray") != null) { + if (jsonObj.get("subarray") != null && !jsonObj.get("subarray").isJsonNull()) { Subarray.validateJsonObject(jsonObj.getAsJsonObject("subarray")); } } @@ -255,6 +284,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, SubarrayPartitionerCurrent value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -262,7 +308,25 @@ public void write(JsonWriter out, SubarrayPartitionerCurrent value) throws IOExc public SubarrayPartitionerCurrent read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + SubarrayPartitionerCurrent instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 6be3a2a..5a28f05 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 @@ -25,8 +25,6 @@ import java.util.ArrayList; import java.util.List; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonArray; import com.google.gson.JsonElement; @@ -34,15 +32,17 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class SubarrayPartitionerState { public static final String SERIALIZED_NAME_START = "start"; @SerializedName(SERIALIZED_NAME_START) @@ -60,7 +60,7 @@ public class SubarrayPartitionerState { @SerializedName(SERIALIZED_NAME_MULTI_RANGE) private List multiRange = null; - public SubarrayPartitionerState() { + public SubarrayPartitionerState() { } public SubarrayPartitionerState start(Integer start) { @@ -170,6 +170,41 @@ public void setMultiRange(List multiRange) { this.multiRange = multiRange; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public SubarrayPartitionerState putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -184,12 +219,13 @@ public boolean equals(Object o) { return Objects.equals(this.start, subarrayPartitionerState.start) && Objects.equals(this.end, subarrayPartitionerState.end) && Objects.equals(this.singleRange, subarrayPartitionerState.singleRange) && - Objects.equals(this.multiRange, subarrayPartitionerState.multiRange); + Objects.equals(this.multiRange, subarrayPartitionerState.multiRange)&& + Objects.equals(this.additionalProperties, subarrayPartitionerState.additionalProperties); } @Override public int hashCode() { - return Objects.hash(start, end, singleRange, multiRange); + return Objects.hash(start, end, singleRange, multiRange, additionalProperties); } @Override @@ -200,6 +236,7 @@ public String toString() { sb.append(" end: ").append(toIndentedString(end)).append("\n"); sb.append(" singleRange: ").append(toIndentedString(singleRange)).append("\n"); sb.append(" multiRange: ").append(toIndentedString(multiRange)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -245,14 +282,6 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in SubarrayPartitionerState is not found in the empty JSON string", SubarrayPartitionerState.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!SubarrayPartitionerState.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `SubarrayPartitionerState` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } JsonArray jsonArraysingleRange = jsonObj.getAsJsonArray("singleRange"); if (jsonArraysingleRange != null) { // ensure the json data is an array @@ -294,6 +323,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, SubarrayPartitionerState value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -301,7 +347,25 @@ public void write(JsonWriter out, SubarrayPartitionerState value) throws IOExcep public SubarrayPartitionerState read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + SubarrayPartitionerState instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 31f22f0..4f300ef 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 @@ -25,23 +25,23 @@ import java.util.ArrayList; import java.util.List; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class SubarrayRanges { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -55,7 +55,7 @@ public class SubarrayRanges { @SerializedName(SERIALIZED_NAME_BUFFER) private List buffer = null; - public SubarrayRanges() { + public SubarrayRanges() { } public SubarrayRanges type(Datatype type) { @@ -134,6 +134,41 @@ public void setBuffer(List buffer) { this.buffer = buffer; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public SubarrayRanges putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -147,12 +182,13 @@ public boolean equals(Object o) { SubarrayRanges subarrayRanges = (SubarrayRanges) o; return Objects.equals(this.type, subarrayRanges.type) && Objects.equals(this.hasDefaultRange, subarrayRanges.hasDefaultRange) && - Objects.equals(this.buffer, subarrayRanges.buffer); + Objects.equals(this.buffer, subarrayRanges.buffer)&& + Objects.equals(this.additionalProperties, subarrayRanges.additionalProperties); } @Override public int hashCode() { - return Objects.hash(type, hasDefaultRange, buffer); + return Objects.hash(type, hasDefaultRange, buffer, additionalProperties); } @Override @@ -162,6 +198,7 @@ public String toString() { sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" hasDefaultRange: ").append(toIndentedString(hasDefaultRange)).append("\n"); sb.append(" buffer: ").append(toIndentedString(buffer)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -206,16 +243,8 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in SubarrayRanges is not found in the empty JSON string", SubarrayRanges.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!SubarrayRanges.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `SubarrayRanges` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } // ensure the json data is an array - if (jsonObj.get("buffer") != null && !jsonObj.get("buffer").isJsonArray()) { + 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())); } } @@ -235,6 +264,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, SubarrayRanges value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -242,7 +288,25 @@ public void write(JsonWriter out, SubarrayRanges value) throws IOException { public SubarrayRanges read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + SubarrayRanges instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 913100d..5b46dbc 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 @@ -25,8 +25,6 @@ import java.util.ArrayList; import java.util.List; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonArray; import com.google.gson.JsonElement; @@ -34,15 +32,17 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class Subscription { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -60,7 +60,7 @@ public class Subscription { @SerializedName(SERIALIZED_NAME_PRICING) private List pricing = null; - public Subscription() { + public Subscription() { } public Subscription id(String id) { @@ -162,6 +162,41 @@ public void setPricing(List pricing) { this.pricing = pricing; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public Subscription putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -176,12 +211,13 @@ public boolean equals(Object o) { return Objects.equals(this.id, subscription.id) && Objects.equals(this.ownerNamespaceUuid, subscription.ownerNamespaceUuid) && Objects.equals(this.customerNamespaceUuid, subscription.customerNamespaceUuid) && - Objects.equals(this.pricing, subscription.pricing); + Objects.equals(this.pricing, subscription.pricing)&& + Objects.equals(this.additionalProperties, subscription.additionalProperties); } @Override public int hashCode() { - return Objects.hash(id, ownerNamespaceUuid, customerNamespaceUuid, pricing); + return Objects.hash(id, ownerNamespaceUuid, customerNamespaceUuid, pricing, additionalProperties); } @Override @@ -192,6 +228,7 @@ public String toString() { sb.append(" ownerNamespaceUuid: ").append(toIndentedString(ownerNamespaceUuid)).append("\n"); sb.append(" customerNamespaceUuid: ").append(toIndentedString(customerNamespaceUuid)).append("\n"); sb.append(" pricing: ").append(toIndentedString(pricing)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -237,21 +274,13 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in Subscription is not found in the empty JSON string", Subscription.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!Subscription.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `Subscription` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } - if (jsonObj.get("id") != null && !jsonObj.get("id").isJsonPrimitive()) { + 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("owner_namespace_uuid") != null && !jsonObj.get("owner_namespace_uuid").isJsonPrimitive()) { + 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())); } - if (jsonObj.get("customer_namespace_uuid") != null && !jsonObj.get("customer_namespace_uuid").isJsonPrimitive()) { + 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"); @@ -283,6 +312,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, Subscription value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -290,7 +336,25 @@ public void write(JsonWriter out, Subscription value) throws IOException { public Subscription read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + Subscription instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 new file mode 100644 index 0000000..9ee0a57 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TGArrayNodeData.java @@ -0,0 +1,326 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.2.19 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + +import java.util.Objects; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +import com.google.gson.Gson; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * The 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]") +public class TGArrayNodeData { + public static final String SERIALIZED_NAME_URI = "uri"; + @SerializedName(SERIALIZED_NAME_URI) + private Object uri; + + public static final String SERIALIZED_NAME_RANGES = "ranges"; + @SerializedName(SERIALIZED_NAME_RANGES) + private TGQueryRanges ranges; + + public static final String SERIALIZED_NAME_BUFFERS = "buffers"; + @SerializedName(SERIALIZED_NAME_BUFFERS) + private Object buffers; + + 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; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public TGArrayNodeData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TGArrayNodeData tgArrayNodeData = (TGArrayNodeData) o; + return Objects.equals(this.uri, tgArrayNodeData.uri) && + Objects.equals(this.ranges, tgArrayNodeData.ranges) && + Objects.equals(this.buffers, tgArrayNodeData.buffers)&& + Objects.equals(this.additionalProperties, tgArrayNodeData.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(uri, ranges, buffers, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TGArrayNodeData {\n"); + sb.append(" uri: ").append(toIndentedString(uri)).append("\n"); + sb.append(" ranges: ").append(toIndentedString(ranges)).append("\n"); + sb.append(" buffers: ").append(toIndentedString(buffers)).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("uri"); + openapiFields.add("ranges"); + openapiFields.add("buffers"); + + // 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 TGArrayNodeData + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (TGArrayNodeData.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in TGArrayNodeData is not found in the empty JSON string", TGArrayNodeData.openapiRequiredFields.toString())); + } + } + // validate the optional field `ranges` + if (jsonObj.get("ranges") != null && !jsonObj.get("ranges").isJsonNull()) { + TGQueryRanges.validateJsonObject(jsonObj.getAsJsonObject("ranges")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!TGArrayNodeData.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'TGArrayNodeData' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(TGArrayNodeData.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, TGArrayNodeData value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public TGArrayNodeData read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + TGArrayNodeData instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of 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 + */ + 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 8d8f51a..28b42bf 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 @@ -22,8 +22,6 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; - -import io.tiledb.cloud.rest_api.JSON; import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; @@ -32,15 +30,17 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class TGInputNodeData { public static final String SERIALIZED_NAME_DEFAULT_VALUE = "default_value"; @SerializedName(SERIALIZED_NAME_DEFAULT_VALUE) @@ -50,7 +50,7 @@ public class TGInputNodeData { @SerializedName(SERIALIZED_NAME_DATATYPE) private String datatype; - public TGInputNodeData() { + public TGInputNodeData() { } public TGInputNodeData defaultValue(Object defaultValue) { @@ -98,6 +98,41 @@ public void setDatatype(String datatype) { this.datatype = datatype; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public TGInputNodeData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -110,7 +145,8 @@ public boolean equals(Object o) { } TGInputNodeData tgInputNodeData = (TGInputNodeData) o; return Objects.equals(this.defaultValue, tgInputNodeData.defaultValue) && - Objects.equals(this.datatype, tgInputNodeData.datatype); + Objects.equals(this.datatype, tgInputNodeData.datatype)&& + Objects.equals(this.additionalProperties, tgInputNodeData.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -119,7 +155,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(defaultValue, datatype); + return Objects.hash(defaultValue, datatype, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -135,6 +171,7 @@ public String toString() { sb.append("class TGInputNodeData {\n"); sb.append(" defaultValue: ").append(toIndentedString(defaultValue)).append("\n"); sb.append(" datatype: ").append(toIndentedString(datatype)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -178,15 +215,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in TGInputNodeData is not found in the empty JSON string", TGInputNodeData.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!TGInputNodeData.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `TGInputNodeData` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } - if (jsonObj.get("datatype") != null && !jsonObj.get("datatype").isJsonPrimitive()) { + 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())); } } @@ -206,6 +235,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, TGInputNodeData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -213,7 +259,25 @@ public void write(JsonWriter out, TGInputNodeData value) throws IOException { public TGInputNodeData read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + TGInputNodeData instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 new file mode 100644 index 0000000..3738a69 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TGQueryRanges.java @@ -0,0 +1,322 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.2.19 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + +import java.util.Objects; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +import com.google.gson.Gson; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * 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]") +public class TGQueryRanges { + public static final String SERIALIZED_NAME_LAYOUT = "layout"; + @SerializedName(SERIALIZED_NAME_LAYOUT) + private Layout layout; + + public static final String SERIALIZED_NAME_FRIENDLY_RANGES = "friendly_ranges"; + @SerializedName(SERIALIZED_NAME_FRIENDLY_RANGES) + private Object friendlyRanges; + + public static final String SERIALIZED_NAME_RANGES = "ranges"; + @SerializedName(SERIALIZED_NAME_RANGES) + private Object ranges; + + 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; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public TGQueryRanges putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TGQueryRanges tgQueryRanges = (TGQueryRanges) o; + return Objects.equals(this.layout, tgQueryRanges.layout) && + Objects.equals(this.friendlyRanges, tgQueryRanges.friendlyRanges) && + Objects.equals(this.ranges, tgQueryRanges.ranges)&& + Objects.equals(this.additionalProperties, tgQueryRanges.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(layout, friendlyRanges, ranges, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TGQueryRanges {\n"); + sb.append(" layout: ").append(toIndentedString(layout)).append("\n"); + sb.append(" friendlyRanges: ").append(toIndentedString(friendlyRanges)).append("\n"); + sb.append(" ranges: ").append(toIndentedString(ranges)).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("layout"); + openapiFields.add("friendly_ranges"); + openapiFields.add("ranges"); + + // 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 TGQueryRanges + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (TGQueryRanges.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in TGQueryRanges is not found in the empty JSON string", TGQueryRanges.openapiRequiredFields.toString())); + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!TGQueryRanges.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'TGQueryRanges' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(TGQueryRanges.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, TGQueryRanges value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public TGQueryRanges read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + TGQueryRanges instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of 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 + */ + 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 e2b4c98..e8f0d77 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 @@ -25,7 +25,6 @@ import java.util.ArrayList; import java.util.List; -import io.tiledb.cloud.rest_api.JSON; import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; @@ -34,15 +33,17 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; /** * A node specifying an SQL query to execute in TileDB Cloud. */ @ApiModel(description = "A node specifying an SQL query to execute in TileDB Cloud. ") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class TGSQLNodeData { public static final String SERIALIZED_NAME_INIT_COMMANDS = "init_commands"; @SerializedName(SERIALIZED_NAME_INIT_COMMANDS) @@ -64,7 +65,7 @@ public class TGSQLNodeData { @SerializedName(SERIALIZED_NAME_NAMESPACE) private String namespace; - public TGSQLNodeData() { + public TGSQLNodeData() { } public TGSQLNodeData initCommands(List initCommands) { @@ -197,6 +198,41 @@ public void setNamespace(String namespace) { this.namespace = namespace; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public TGSQLNodeData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -212,7 +248,8 @@ public boolean equals(Object o) { Objects.equals(this.query, tgSQLNodeData.query) && Objects.equals(this.parameters, tgSQLNodeData.parameters) && Objects.equals(this.resultFormat, tgSQLNodeData.resultFormat) && - Objects.equals(this.namespace, tgSQLNodeData.namespace); + Objects.equals(this.namespace, tgSQLNodeData.namespace)&& + Objects.equals(this.additionalProperties, tgSQLNodeData.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -221,7 +258,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(initCommands, query, parameters, resultFormat, namespace); + return Objects.hash(initCommands, query, parameters, resultFormat, namespace, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -240,6 +277,7 @@ public String toString() { sb.append(" parameters: ").append(toIndentedString(parameters)).append("\n"); sb.append(" resultFormat: ").append(toIndentedString(resultFormat)).append("\n"); sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -286,26 +324,18 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in TGSQLNodeData is not found in the empty JSON string", TGSQLNodeData.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!TGSQLNodeData.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `TGSQLNodeData` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } // ensure the json data is an array - if (jsonObj.get("init_commands") != null && !jsonObj.get("init_commands").isJsonArray()) { + 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").isJsonPrimitive()) { + 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").isJsonArray()) { + 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("namespace") != null && !jsonObj.get("namespace").isJsonPrimitive()) { + 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())); } } @@ -325,6 +355,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, TGSQLNodeData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -332,7 +379,25 @@ public void write(JsonWriter out, TGSQLNodeData value) throws IOException { public TGSQLNodeData read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + TGSQLNodeData instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 58a81f2..0f58a77 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 @@ -22,8 +22,6 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; - -import io.tiledb.cloud.rest_api.JSON; import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; @@ -32,15 +30,17 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; /** * A single argument to a UDF. This may represent a positional argument or a named argument, depending upon whether `name` is set. */ @ApiModel(description = "A single argument to a UDF. This may represent a positional argument or a named argument, depending upon whether `name` is set. ") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class TGUDFArgument { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -50,7 +50,7 @@ public class TGUDFArgument { @SerializedName(SERIALIZED_NAME_VALUE) private Object value; - public TGUDFArgument() { + public TGUDFArgument() { } public TGUDFArgument name(String name) { @@ -98,6 +98,41 @@ public void setValue(Object value) { this.value = value; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public TGUDFArgument putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -110,7 +145,8 @@ public boolean equals(Object o) { } TGUDFArgument tgUDFArgument = (TGUDFArgument) o; return Objects.equals(this.name, tgUDFArgument.name) && - Objects.equals(this.value, tgUDFArgument.value); + Objects.equals(this.value, tgUDFArgument.value)&& + Objects.equals(this.additionalProperties, tgUDFArgument.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -119,7 +155,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(name, value); + return Objects.hash(name, value, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -135,6 +171,7 @@ public String toString() { sb.append("class TGUDFArgument {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -178,15 +215,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in TGUDFArgument is not found in the empty JSON string", TGUDFArgument.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!TGUDFArgument.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `TGUDFArgument` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } - if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { + 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())); } } @@ -206,6 +235,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, TGUDFArgument value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -213,7 +259,25 @@ public void write(JsonWriter out, TGUDFArgument value) throws IOException { public TGUDFArgument read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + TGUDFArgument instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 b04bc10..8a1dd52 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 @@ -22,8 +22,8 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.math.BigDecimal; -import io.tiledb.cloud.rest_api.JSON; import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; @@ -32,15 +32,17 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; /** * Metadata about the environment where we want to execute a UDF. */ @ApiModel(description = "Metadata about the environment where we want to execute a UDF.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class TGUDFEnvironment { public static final String SERIALIZED_NAME_LANGUAGE = "language"; @SerializedName(SERIALIZED_NAME_LANGUAGE) @@ -54,6 +56,10 @@ public class TGUDFEnvironment { @SerializedName(SERIALIZED_NAME_IMAGE_NAME) private String imageName; + public static final String SERIALIZED_NAME_ACCESS_CREDENTIALS_NAME = "access_credentials_name"; + @SerializedName(SERIALIZED_NAME_ACCESS_CREDENTIALS_NAME) + private String accessCredentialsName; + public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) private String namespace; @@ -62,11 +68,19 @@ public class TGUDFEnvironment { @SerializedName(SERIALIZED_NAME_RESOURCE_CLASS) private String resourceClass; + public static final String SERIALIZED_NAME_RESOURCES = "resources"; + @SerializedName(SERIALIZED_NAME_RESOURCES) + private TGUDFEnvironmentResources resources; + public static final String SERIALIZED_NAME_RUN_CLIENT_SIDE = "run_client_side"; @SerializedName(SERIALIZED_NAME_RUN_CLIENT_SIDE) private Boolean runClientSide; - public TGUDFEnvironment() { + public static final String SERIALIZED_NAME_TIMEOUT = "timeout"; + @SerializedName(SERIALIZED_NAME_TIMEOUT) + private BigDecimal timeout; + + public TGUDFEnvironment() { } public TGUDFEnvironment language(UDFLanguage language) { @@ -138,6 +152,29 @@ public void setImageName(String 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; @@ -184,6 +221,29 @@ public void setResourceClass(String 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; @@ -207,6 +267,64 @@ public void setRunClientSide(Boolean 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; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public TGUDFEnvironment putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + @Override public boolean equals(Object o) { @@ -220,9 +338,13 @@ public boolean equals(Object o) { return Objects.equals(this.language, tgUDFEnvironment.language) && Objects.equals(this.languageVersion, tgUDFEnvironment.languageVersion) && Objects.equals(this.imageName, tgUDFEnvironment.imageName) && + Objects.equals(this.accessCredentialsName, tgUDFEnvironment.accessCredentialsName) && Objects.equals(this.namespace, tgUDFEnvironment.namespace) && Objects.equals(this.resourceClass, tgUDFEnvironment.resourceClass) && - Objects.equals(this.runClientSide, tgUDFEnvironment.runClientSide); + Objects.equals(this.resources, tgUDFEnvironment.resources) && + Objects.equals(this.runClientSide, tgUDFEnvironment.runClientSide) && + Objects.equals(this.timeout, tgUDFEnvironment.timeout)&& + Objects.equals(this.additionalProperties, tgUDFEnvironment.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -231,7 +353,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(language, languageVersion, imageName, namespace, resourceClass, runClientSide); + return Objects.hash(language, languageVersion, imageName, accessCredentialsName, namespace, resourceClass, resources, runClientSide, timeout, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -248,9 +370,13 @@ public String toString() { sb.append(" language: ").append(toIndentedString(language)).append("\n"); sb.append(" languageVersion: ").append(toIndentedString(languageVersion)).append("\n"); sb.append(" imageName: ").append(toIndentedString(imageName)).append("\n"); + sb.append(" accessCredentialsName: ").append(toIndentedString(accessCredentialsName)).append("\n"); sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); sb.append(" resourceClass: ").append(toIndentedString(resourceClass)).append("\n"); + 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(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -276,9 +402,12 @@ private String toIndentedString(Object o) { openapiFields.add("language"); openapiFields.add("language_version"); openapiFields.add("image_name"); + openapiFields.add("access_credentials_name"); openapiFields.add("namespace"); openapiFields.add("resource_class"); + openapiFields.add("resources"); openapiFields.add("run_client_side"); + openapiFields.add("timeout"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -298,26 +427,25 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in TGUDFEnvironment is not found in the empty JSON string", TGUDFEnvironment.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!TGUDFEnvironment.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `TGUDFEnvironment` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } - if (jsonObj.get("language_version") != null && !jsonObj.get("language_version").isJsonPrimitive()) { + 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())); } - if (jsonObj.get("image_name") != null && !jsonObj.get("image_name").isJsonPrimitive()) { + 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())); } - if (jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonPrimitive()) { + 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("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("resource_class") != null && !jsonObj.get("resource_class").isJsonPrimitive()) { + 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())); } + // validate the optional field `resources` + if (jsonObj.get("resources") != null && !jsonObj.get("resources").isJsonNull()) { + TGUDFEnvironmentResources.validateJsonObject(jsonObj.getAsJsonObject("resources")); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -335,6 +463,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, TGUDFEnvironment value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -342,7 +487,25 @@ public void write(JsonWriter out, TGUDFEnvironment value) throws IOException { public TGUDFEnvironment read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + TGUDFEnvironment instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 new file mode 100644 index 0000000..3eb0b9c --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironmentResources.java @@ -0,0 +1,328 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.2.19 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + +import java.util.Objects; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +import com.google.gson.Gson; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * The 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]") +public class TGUDFEnvironmentResources { + public static final String SERIALIZED_NAME_CPU = "cpu"; + @SerializedName(SERIALIZED_NAME_CPU) + private String cpu; + + public static final String SERIALIZED_NAME_MEMORY = "memory"; + @SerializedName(SERIALIZED_NAME_MEMORY) + private String memory; + + public static final String SERIALIZED_NAME_GPU = "gpu"; + @SerializedName(SERIALIZED_NAME_GPU) + private Integer gpu; + + 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; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public TGUDFEnvironmentResources putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TGUDFEnvironmentResources tgUDFEnvironmentResources = (TGUDFEnvironmentResources) o; + return Objects.equals(this.cpu, tgUDFEnvironmentResources.cpu) && + Objects.equals(this.memory, tgUDFEnvironmentResources.memory) && + Objects.equals(this.gpu, tgUDFEnvironmentResources.gpu)&& + Objects.equals(this.additionalProperties, tgUDFEnvironmentResources.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(cpu, memory, gpu, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TGUDFEnvironmentResources {\n"); + sb.append(" cpu: ").append(toIndentedString(cpu)).append("\n"); + sb.append(" memory: ").append(toIndentedString(memory)).append("\n"); + sb.append(" gpu: ").append(toIndentedString(gpu)).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("cpu"); + openapiFields.add("memory"); + openapiFields.add("gpu"); + + // 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 TGUDFEnvironmentResources + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (TGUDFEnvironmentResources.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in TGUDFEnvironmentResources is not found in the empty JSON string", TGUDFEnvironmentResources.openapiRequiredFields.toString())); + } + } + 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())); + } + if ((jsonObj.get("memory") != null && !jsonObj.get("memory").isJsonNull()) && !jsonObj.get("memory").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `memory` to be a primitive type in the JSON string but got `%s`", jsonObj.get("memory").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!TGUDFEnvironmentResources.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'TGUDFEnvironmentResources' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(TGUDFEnvironmentResources.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, TGUDFEnvironmentResources value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public TGUDFEnvironmentResources read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + TGUDFEnvironmentResources instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of 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 + */ + 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 89a60d9..7bafa1b 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 @@ -34,9 +34,9 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; import io.tiledb.cloud.rest_api.JSON; @@ -44,7 +44,7 @@ * 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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class TGUDFNodeData { public static final String SERIALIZED_NAME_REGISTERED_UDF_NAME = "registered_udf_name"; @SerializedName(SERIALIZED_NAME_REGISTERED_UDF_NAME) @@ -70,7 +70,7 @@ public class TGUDFNodeData { @SerializedName(SERIALIZED_NAME_RESULT_FORMAT) private ResultFormat resultFormat; - public TGUDFNodeData() { + public TGUDFNodeData() { } public TGUDFNodeData registeredUdfName(String registeredUdfName) { @@ -218,6 +218,41 @@ public void setResultFormat(ResultFormat resultFormat) { this.resultFormat = resultFormat; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public TGUDFNodeData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -234,7 +269,8 @@ public boolean equals(Object o) { Objects.equals(this.sourceText, tgUDFNodeData.sourceText) && Objects.equals(this.environment, tgUDFNodeData.environment) && Objects.equals(this.arguments, tgUDFNodeData.arguments) && - Objects.equals(this.resultFormat, tgUDFNodeData.resultFormat); + Objects.equals(this.resultFormat, tgUDFNodeData.resultFormat)&& + Objects.equals(this.additionalProperties, tgUDFNodeData.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -243,7 +279,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(registeredUdfName, executableCode, sourceText, environment, arguments, resultFormat); + return Objects.hash(registeredUdfName, executableCode, sourceText, environment, arguments, resultFormat, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -263,6 +299,7 @@ public String toString() { sb.append(" environment: ").append(toIndentedString(environment)).append("\n"); sb.append(" arguments: ").append(toIndentedString(arguments)).append("\n"); sb.append(" resultFormat: ").append(toIndentedString(resultFormat)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -310,25 +347,17 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in TGUDFNodeData is not found in the empty JSON string", TGUDFNodeData.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!TGUDFNodeData.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `TGUDFNodeData` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } - if (jsonObj.get("registered_udf_name") != null && !jsonObj.get("registered_udf_name").isJsonPrimitive()) { + 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())); } - if (jsonObj.get("executable_code") != null && !jsonObj.get("executable_code").isJsonPrimitive()) { + if ((jsonObj.get("executable_code") != null && !jsonObj.get("executable_code").isJsonNull()) && !jsonObj.get("executable_code").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `executable_code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("executable_code").toString())); } - if (jsonObj.get("source_text") != null && !jsonObj.get("source_text").isJsonPrimitive()) { + if ((jsonObj.get("source_text") != null && !jsonObj.get("source_text").isJsonNull()) && !jsonObj.get("source_text").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `source_text` to be a primitive type in the JSON string but got `%s`", jsonObj.get("source_text").toString())); } // validate the optional field `environment` - if (jsonObj.getAsJsonObject("environment") != null) { + if (jsonObj.get("environment") != null && !jsonObj.get("environment").isJsonNull()) { TGUDFEnvironment.validateJsonObject(jsonObj.getAsJsonObject("environment")); } JsonArray jsonArrayarguments = jsonObj.getAsJsonArray("arguments"); @@ -360,6 +389,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, TGUDFNodeData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -367,7 +413,25 @@ public void write(JsonWriter out, TGUDFNodeData value) throws IOException { public TGUDFNodeData read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + TGUDFNodeData instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 new file mode 100644 index 0000000..e36fd06 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraph.java @@ -0,0 +1,570 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.2.19 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.List; + +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.JsonArray; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * 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]") +public class TaskGraph { + public static final String SERIALIZED_NAME_UUID = "uuid"; + @SerializedName(SERIALIZED_NAME_UUID) + private String uuid; + + public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; + @SerializedName(SERIALIZED_NAME_NAMESPACE) + private String namespace; + + public static final String SERIALIZED_NAME_CREATED_BY = "created_by"; + @SerializedName(SERIALIZED_NAME_CREATED_BY) + private String createdBy; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_CREATED_AT = "created_at"; + @SerializedName(SERIALIZED_NAME_CREATED_AT) + private OffsetDateTime createdAt; + + public static final String SERIALIZED_NAME_NODES = "nodes"; + @SerializedName(SERIALIZED_NAME_NODES) + private List nodes = null; + + public static final String SERIALIZED_NAME_PARALLELISM = "parallelism"; + @SerializedName(SERIALIZED_NAME_PARALLELISM) + private Long parallelism; + + public static final String SERIALIZED_NAME_RETRY_STRATEGY = "retry_strategy"; + @SerializedName(SERIALIZED_NAME_RETRY_STRATEGY) + private RetryStrategy retryStrategy; + + public static final String SERIALIZED_NAME_DEADLINE = "deadline"; + @SerializedName(SERIALIZED_NAME_DEADLINE) + private Long deadline; + + public static final String SERIALIZED_NAME_TASK_GRAPH_TYPE = "task_graph_type"; + @SerializedName(SERIALIZED_NAME_TASK_GRAPH_TYPE) + private TaskGraphType taskGraphType; + + public TaskGraph() { + } + + + public TaskGraph( + String uuid, + String createdBy, + OffsetDateTime createdAt + ) { + this(); + this.uuid = uuid; + this.createdBy = createdBy; + 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; + } + + public TaskGraph addNodesItem(TaskGraphNode nodesItem) { + if (this.nodes == null) { + this.nodes = new ArrayList<>(); + } + this.nodes.add(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. + * @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. + * @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; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public TaskGraph putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TaskGraph taskGraph = (TaskGraph) o; + return Objects.equals(this.uuid, taskGraph.uuid) && + Objects.equals(this.namespace, taskGraph.namespace) && + Objects.equals(this.createdBy, taskGraph.createdBy) && + Objects.equals(this.name, taskGraph.name) && + Objects.equals(this.createdAt, taskGraph.createdAt) && + Objects.equals(this.nodes, taskGraph.nodes) && + Objects.equals(this.parallelism, taskGraph.parallelism) && + Objects.equals(this.retryStrategy, taskGraph.retryStrategy) && + Objects.equals(this.deadline, taskGraph.deadline) && + Objects.equals(this.taskGraphType, taskGraph.taskGraphType)&& + Objects.equals(this.additionalProperties, taskGraph.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(uuid, namespace, createdBy, name, createdAt, nodes, parallelism, retryStrategy, deadline, taskGraphType, 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 TaskGraph {\n"); + sb.append(" uuid: ").append(toIndentedString(uuid)).append("\n"); + sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); + sb.append(" createdBy: ").append(toIndentedString(createdBy)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" nodes: ").append(toIndentedString(nodes)).append("\n"); + sb.append(" parallelism: ").append(toIndentedString(parallelism)).append("\n"); + sb.append(" retryStrategy: ").append(toIndentedString(retryStrategy)).append("\n"); + sb.append(" deadline: ").append(toIndentedString(deadline)).append("\n"); + sb.append(" taskGraphType: ").append(toIndentedString(taskGraphType)).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("namespace"); + openapiFields.add("created_by"); + openapiFields.add("name"); + openapiFields.add("created_at"); + openapiFields.add("nodes"); + openapiFields.add("parallelism"); + openapiFields.add("retry_strategy"); + openapiFields.add("deadline"); + openapiFields.add("task_graph_type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to TaskGraph + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (TaskGraph.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in TaskGraph is not found in the empty JSON string", TaskGraph.openapiRequiredFields.toString())); + } + } + if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); + } + if ((jsonObj.get("namespace") != 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("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("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())); + } + + // 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")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!TaskGraph.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'TaskGraph' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(TaskGraph.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, TaskGraph value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public TaskGraph read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + TaskGraph instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of 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 + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + 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 0bb4266..3a7ec31 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 @@ -23,23 +23,23 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class TaskGraphClientNodeStatus { public static final String SERIALIZED_NAME_CLIENT_NODE_UUID = "client_node_uuid"; @SerializedName(SERIALIZED_NAME_CLIENT_NODE_UUID) @@ -49,7 +49,7 @@ public class TaskGraphClientNodeStatus { @SerializedName(SERIALIZED_NAME_STATUS) private ArrayTaskStatus status; - public TaskGraphClientNodeStatus() { + public TaskGraphClientNodeStatus() { } public TaskGraphClientNodeStatus clientNodeUuid(String clientNodeUuid) { @@ -97,6 +97,41 @@ public void setStatus(ArrayTaskStatus status) { this.status = status; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public TaskGraphClientNodeStatus putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -109,12 +144,13 @@ public boolean equals(Object o) { } TaskGraphClientNodeStatus taskGraphClientNodeStatus = (TaskGraphClientNodeStatus) o; return Objects.equals(this.clientNodeUuid, taskGraphClientNodeStatus.clientNodeUuid) && - Objects.equals(this.status, taskGraphClientNodeStatus.status); + Objects.equals(this.status, taskGraphClientNodeStatus.status)&& + Objects.equals(this.additionalProperties, taskGraphClientNodeStatus.additionalProperties); } @Override public int hashCode() { - return Objects.hash(clientNodeUuid, status); + return Objects.hash(clientNodeUuid, status, additionalProperties); } @Override @@ -123,6 +159,7 @@ public String toString() { sb.append("class TaskGraphClientNodeStatus {\n"); sb.append(" clientNodeUuid: ").append(toIndentedString(clientNodeUuid)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -166,15 +203,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in TaskGraphClientNodeStatus is not found in the empty JSON string", TaskGraphClientNodeStatus.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!TaskGraphClientNodeStatus.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `TaskGraphClientNodeStatus` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } - if (jsonObj.get("client_node_uuid") != null && !jsonObj.get("client_node_uuid").isJsonPrimitive()) { + 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())); } } @@ -194,6 +223,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, TaskGraphClientNodeStatus value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -201,7 +247,25 @@ public void write(JsonWriter out, TaskGraphClientNodeStatus value) throws IOExce public TaskGraphClientNodeStatus read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + TaskGraphClientNodeStatus instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 9ee44e9..3804e15 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 @@ -29,7 +29,6 @@ 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; @@ -40,14 +39,14 @@ import com.google.gson.reflect.TypeToken; import java.util.HashSet; -import java.util.Map.Entry; -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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class TaskGraphLog { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) @@ -105,7 +104,15 @@ public class TaskGraphLog { @SerializedName(SERIALIZED_NAME_NODES) private List nodes = null; - public TaskGraphLog() { + public static final String SERIALIZED_NAME_TASK_GRAPH_TYPE = "task_graph_type"; + @SerializedName(SERIALIZED_NAME_TASK_GRAPH_TYPE) + private TaskGraphType taskGraphType; + + public static final String SERIALIZED_NAME_TASK_GRAPH_ID = "task_graph_id"; + @SerializedName(SERIALIZED_NAME_TASK_GRAPH_ID) + private String taskGraphId; + + public TaskGraphLog() { } @@ -417,6 +424,87 @@ public void setNodes(List 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; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public TaskGraphLog putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + @Override public boolean equals(Object o) { @@ -440,7 +528,10 @@ public boolean equals(Object o) { Objects.equals(this.egressCost, taskGraphLog.egressCost) && Objects.equals(this.executionTime, taskGraphLog.executionTime) && Objects.equals(this.statusCount, taskGraphLog.statusCount) && - Objects.equals(this.nodes, taskGraphLog.nodes); + Objects.equals(this.nodes, taskGraphLog.nodes) && + Objects.equals(this.taskGraphType, taskGraphLog.taskGraphType) && + Objects.equals(this.taskGraphId, taskGraphLog.taskGraphId)&& + Objects.equals(this.additionalProperties, taskGraphLog.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -449,7 +540,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); + return Objects.hash(uuid, namespace, createdBy, name, createdAt, startTime, endTime, status, totalCost, accessCost, egressCost, executionTime, statusCount, nodes, taskGraphType, taskGraphId, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -477,6 +568,9 @@ public String toString() { sb.append(" executionTime: ").append(toIndentedString(executionTime)).append("\n"); sb.append(" statusCount: ").append(toIndentedString(statusCount)).append("\n"); 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(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -513,6 +607,8 @@ private String toIndentedString(Object o) { openapiFields.add("execution_time"); openapiFields.add("status_count"); openapiFields.add("nodes"); + openapiFields.add("task_graph_type"); + openapiFields.add("task_graph_id"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -532,27 +628,19 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in TaskGraphLog is not found in the empty JSON string", TaskGraphLog.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields - for (Entry entry : entries) { - if (!TaskGraphLog.openapiFields.contains(entry.getKey())) { - throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `TaskGraphLog` properties. JSON: %s", entry.getKey(), jsonObj.toString())); - } - } - if (jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonPrimitive()) { + if ((jsonObj.get("uuid") != null && !jsonObj.get("uuid").isJsonNull()) && !jsonObj.get("uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uuid").toString())); } - if (jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonPrimitive()) { + 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("created_by") != null && !jsonObj.get("created_by").isJsonPrimitive()) { + 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("name") != null && !jsonObj.get("name").isJsonPrimitive()) { + 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("execution_time") != null && !jsonObj.get("execution_time").isJsonPrimitive()) { + 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"); @@ -567,6 +655,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { TaskGraphNodeMetadata.validateJsonObject(jsonArraynodes.get(i).getAsJsonObject()); }; } + 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())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -584,6 +675,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, TaskGraphLog value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -591,7 +699,25 @@ public void write(JsonWriter out, TaskGraphLog value) throws IOException { public TaskGraphLog read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + TaskGraphLog instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 ec64f82..a330fb0 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 @@ -25,8 +25,6 @@ import java.util.ArrayList; import java.util.List; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonArray; import com.google.gson.JsonElement; @@ -34,15 +32,17 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class TaskGraphLogsData { public static final String SERIALIZED_NAME_TASK_GRAPH_LOGS = "task_graph_logs"; @SerializedName(SERIALIZED_NAME_TASK_GRAPH_LOGS) @@ -52,7 +52,7 @@ public class TaskGraphLogsData { @SerializedName(SERIALIZED_NAME_PAGINATION_METADATA) private PaginationMetadata paginationMetadata; - public TaskGraphLogsData() { + public TaskGraphLogsData() { } public TaskGraphLogsData taskGraphLogs(List taskGraphLogs) { @@ -108,6 +108,41 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { this.paginationMetadata = paginationMetadata; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public TaskGraphLogsData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -120,12 +155,13 @@ public boolean equals(Object o) { } TaskGraphLogsData taskGraphLogsData = (TaskGraphLogsData) o; return Objects.equals(this.taskGraphLogs, taskGraphLogsData.taskGraphLogs) && - Objects.equals(this.paginationMetadata, taskGraphLogsData.paginationMetadata); + Objects.equals(this.paginationMetadata, taskGraphLogsData.paginationMetadata)&& + Objects.equals(this.additionalProperties, taskGraphLogsData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(taskGraphLogs, paginationMetadata); + return Objects.hash(taskGraphLogs, paginationMetadata, additionalProperties); } @Override @@ -134,6 +170,7 @@ public String toString() { sb.append("class TaskGraphLogsData {\n"); sb.append(" taskGraphLogs: ").append(toIndentedString(taskGraphLogs)).append("\n"); sb.append(" paginationMetadata: ").append(toIndentedString(paginationMetadata)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -177,14 +214,6 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in TaskGraphLogsData is not found in the empty JSON string", TaskGraphLogsData.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!TaskGraphLogsData.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `TaskGraphLogsData` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } JsonArray jsonArraytaskGraphLogs = jsonObj.getAsJsonArray("task_graph_logs"); if (jsonArraytaskGraphLogs != null) { // ensure the json data is an array @@ -198,7 +227,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { }; } // validate the optional field `pagination_metadata` - if (jsonObj.getAsJsonObject("pagination_metadata") != null) { + if (jsonObj.get("pagination_metadata") != null && !jsonObj.get("pagination_metadata").isJsonNull()) { PaginationMetadata.validateJsonObject(jsonObj.getAsJsonObject("pagination_metadata")); } } @@ -218,6 +247,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, TaskGraphLogsData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -225,7 +271,25 @@ public void write(JsonWriter out, TaskGraphLogsData value) throws IOException { public TaskGraphLogsData read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + TaskGraphLogsData instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 new file mode 100644 index 0000000..ac689e7 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphNode.java @@ -0,0 +1,588 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.2.19 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * 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]") +public class TaskGraphNode { + public static final String SERIALIZED_NAME_CLIENT_NODE_ID = "client_node_id"; + @SerializedName(SERIALIZED_NAME_CLIENT_NODE_ID) + private String clientNodeId; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_DEPENDS_ON = "depends_on"; + @SerializedName(SERIALIZED_NAME_DEPENDS_ON) + private List dependsOn = null; + + public static final String SERIALIZED_NAME_ARRAY_NODE = "array_node"; + @SerializedName(SERIALIZED_NAME_ARRAY_NODE) + private UDFArrayDetails arrayNode; + + public static final String SERIALIZED_NAME_INPUT_NODE = "input_node"; + @SerializedName(SERIALIZED_NAME_INPUT_NODE) + private TGInputNodeData inputNode; + + public static final String SERIALIZED_NAME_SQL_NODE = "sql_node"; + @SerializedName(SERIALIZED_NAME_SQL_NODE) + private TGSQLNodeData sqlNode; + + public static final String SERIALIZED_NAME_UDF_NODE = "udf_node"; + @SerializedName(SERIALIZED_NAME_UDF_NODE) + private TGUDFNodeData udfNode; + + public static final String SERIALIZED_NAME_RETRY_STRATEGY = "retry_strategy"; + @SerializedName(SERIALIZED_NAME_RETRY_STRATEGY) + private RetryStrategy retryStrategy; + + public static final String SERIALIZED_NAME_EXPAND_NODE_OUTPUT = "expand_node_output"; + @SerializedName(SERIALIZED_NAME_EXPAND_NODE_OUTPUT) + private String expandNodeOutput; + + public static final String SERIALIZED_NAME_DEADLINE = "deadline"; + @SerializedName(SERIALIZED_NAME_DEADLINE) + private Long deadline; + + 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; + } + + public TaskGraphNode addDependsOnItem(String dependsOnItem) { + if (this.dependsOn == null) { + this.dependsOn = new ArrayList<>(); + } + this.dependsOn.add(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; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public TaskGraphNode putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TaskGraphNode taskGraphNode = (TaskGraphNode) o; + return Objects.equals(this.clientNodeId, taskGraphNode.clientNodeId) && + Objects.equals(this.name, taskGraphNode.name) && + Objects.equals(this.dependsOn, taskGraphNode.dependsOn) && + Objects.equals(this.arrayNode, taskGraphNode.arrayNode) && + Objects.equals(this.inputNode, taskGraphNode.inputNode) && + Objects.equals(this.sqlNode, taskGraphNode.sqlNode) && + Objects.equals(this.udfNode, taskGraphNode.udfNode) && + Objects.equals(this.retryStrategy, taskGraphNode.retryStrategy) && + Objects.equals(this.expandNodeOutput, taskGraphNode.expandNodeOutput) && + Objects.equals(this.deadline, taskGraphNode.deadline)&& + Objects.equals(this.additionalProperties, taskGraphNode.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(clientNodeId, name, dependsOn, arrayNode, inputNode, sqlNode, udfNode, retryStrategy, expandNodeOutput, deadline, 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 TaskGraphNode {\n"); + sb.append(" clientNodeId: ").append(toIndentedString(clientNodeId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" dependsOn: ").append(toIndentedString(dependsOn)).append("\n"); + sb.append(" arrayNode: ").append(toIndentedString(arrayNode)).append("\n"); + sb.append(" inputNode: ").append(toIndentedString(inputNode)).append("\n"); + sb.append(" sqlNode: ").append(toIndentedString(sqlNode)).append("\n"); + sb.append(" udfNode: ").append(toIndentedString(udfNode)).append("\n"); + sb.append(" retryStrategy: ").append(toIndentedString(retryStrategy)).append("\n"); + sb.append(" expandNodeOutput: ").append(toIndentedString(expandNodeOutput)).append("\n"); + sb.append(" deadline: ").append(toIndentedString(deadline)).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("client_node_id"); + openapiFields.add("name"); + openapiFields.add("depends_on"); + openapiFields.add("array_node"); + openapiFields.add("input_node"); + openapiFields.add("sql_node"); + openapiFields.add("udf_node"); + openapiFields.add("retry_strategy"); + openapiFields.add("expand_node_output"); + openapiFields.add("deadline"); + + // 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 TaskGraphNode + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (TaskGraphNode.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in TaskGraphNode is not found in the empty JSON string", TaskGraphNode.openapiRequiredFields.toString())); + } + } + 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()) { + 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")); + } + // validate the optional field `input_node` + if (jsonObj.get("input_node") != null && !jsonObj.get("input_node").isJsonNull()) { + TGInputNodeData.validateJsonObject(jsonObj.getAsJsonObject("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")); + } + // validate the optional field `udf_node` + if (jsonObj.get("udf_node") != null && !jsonObj.get("udf_node").isJsonNull()) { + TGUDFNodeData.validateJsonObject(jsonObj.getAsJsonObject("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")); + } + 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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!TaskGraphNode.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'TaskGraphNode' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(TaskGraphNode.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, TaskGraphNode value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public TaskGraphNode read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + TaskGraphNode instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of 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 + */ + 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 997fb47..d93313c 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 @@ -14,7 +14,7 @@ package io.tiledb.cloud.rest_api.model; import java.util.Objects; - +import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; @@ -25,7 +25,7 @@ import java.util.ArrayList; import java.util.List; -import io.tiledb.cloud.rest_api.JSON; +import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; import com.google.gson.JsonArray; @@ -34,15 +34,17 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class TaskGraphNodeMetadata { public static final String SERIALIZED_NAME_CLIENT_NODE_UUID = "client_node_uuid"; @SerializedName(SERIALIZED_NAME_CLIENT_NODE_UUID) @@ -64,11 +66,15 @@ public class TaskGraphNodeMetadata { @SerializedName(SERIALIZED_NAME_STATUS) private ArrayTaskStatus status; + public static final String SERIALIZED_NAME_STATUS_MESSAGE = "status_message"; + @SerializedName(SERIALIZED_NAME_STATUS_MESSAGE) + private String statusMessage; + public static final String SERIALIZED_NAME_EXECUTIONS = "executions"; @SerializedName(SERIALIZED_NAME_EXECUTIONS) private List executions = null; - public TaskGraphNodeMetadata() { + public TaskGraphNodeMetadata() { } @@ -202,6 +208,29 @@ public void setStatus(ArrayTaskStatus 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 @@ -215,6 +244,41 @@ public List getExecutions() { + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public TaskGraphNodeMetadata putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -231,12 +295,25 @@ public boolean equals(Object o) { Objects.equals(this.dependsOn, taskGraphNodeMetadata.dependsOn) && Objects.equals(this.runLocation, taskGraphNodeMetadata.runLocation) && Objects.equals(this.status, taskGraphNodeMetadata.status) && - Objects.equals(this.executions, taskGraphNodeMetadata.executions); + Objects.equals(this.statusMessage, taskGraphNodeMetadata.statusMessage) && + Objects.equals(this.executions, taskGraphNodeMetadata.executions)&& + Objects.equals(this.additionalProperties, taskGraphNodeMetadata.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(clientNodeUuid, name, dependsOn, runLocation, status, executions); + return Objects.hash(clientNodeUuid, name, dependsOn, runLocation, status, statusMessage, executions, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; } @Override @@ -248,7 +325,9 @@ public String toString() { sb.append(" dependsOn: ").append(toIndentedString(dependsOn)).append("\n"); sb.append(" runLocation: ").append(toIndentedString(runLocation)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" statusMessage: ").append(toIndentedString(statusMessage)).append("\n"); sb.append(" executions: ").append(toIndentedString(executions)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -276,6 +355,7 @@ private String toIndentedString(Object o) { openapiFields.add("depends_on"); openapiFields.add("run_location"); openapiFields.add("status"); + openapiFields.add("status_message"); openapiFields.add("executions"); // a set of required properties/fields (JSON key names) @@ -296,24 +376,19 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in TaskGraphNodeMetadata is not found in the empty JSON string", TaskGraphNodeMetadata.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!TaskGraphNodeMetadata.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `TaskGraphNodeMetadata` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } - if (jsonObj.get("client_node_uuid") != null && !jsonObj.get("client_node_uuid").isJsonPrimitive()) { + 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").isJsonPrimitive()) { + 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").isJsonArray()) { + 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())); } + 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 @@ -343,6 +418,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, TaskGraphNodeMetadata value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -350,7 +442,25 @@ public void write(JsonWriter out, TaskGraphNodeMetadata value) throws IOExceptio public TaskGraphNodeMetadata read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + TaskGraphNodeMetadata instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 71fb7a3..1274715 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 @@ -25,23 +25,23 @@ import java.util.ArrayList; import java.util.List; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class TaskGraphSharing { public static final String SERIALIZED_NAME_ACTIONS = "actions"; @SerializedName(SERIALIZED_NAME_ACTIONS) @@ -55,7 +55,7 @@ public class TaskGraphSharing { @SerializedName(SERIALIZED_NAME_NAMESPACE_TYPE) private String namespaceType; - public TaskGraphSharing() { + public TaskGraphSharing() { } public TaskGraphSharing actions(List actions) { @@ -134,6 +134,41 @@ public void setNamespaceType(String namespaceType) { this.namespaceType = namespaceType; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public TaskGraphSharing putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -147,12 +182,13 @@ public boolean equals(Object o) { TaskGraphSharing taskGraphSharing = (TaskGraphSharing) o; return Objects.equals(this.actions, taskGraphSharing.actions) && Objects.equals(this.namespace, taskGraphSharing.namespace) && - Objects.equals(this.namespaceType, taskGraphSharing.namespaceType); + Objects.equals(this.namespaceType, taskGraphSharing.namespaceType)&& + Objects.equals(this.additionalProperties, taskGraphSharing.additionalProperties); } @Override public int hashCode() { - return Objects.hash(actions, namespace, namespaceType); + return Objects.hash(actions, namespace, namespaceType, additionalProperties); } @Override @@ -162,6 +198,7 @@ public String toString() { sb.append(" actions: ").append(toIndentedString(actions)).append("\n"); sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); sb.append(" namespaceType: ").append(toIndentedString(namespaceType)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -206,22 +243,14 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in TaskGraphSharing is not found in the empty JSON string", TaskGraphSharing.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!TaskGraphSharing.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `TaskGraphSharing` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } // ensure the json data is an array - if (jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonArray()) { + 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").isJsonPrimitive()) { + 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("namespace_type") != null && !jsonObj.get("namespace_type").isJsonPrimitive()) { + if ((jsonObj.get("namespace_type") != null && !jsonObj.get("namespace_type").isJsonNull()) && !jsonObj.get("namespace_type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `namespace_type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace_type").toString())); } } @@ -241,6 +270,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, TaskGraphSharing value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -248,7 +294,25 @@ public void write(JsonWriter out, TaskGraphSharing value) throws IOException { public TaskGraphSharing read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + TaskGraphSharing instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 new file mode 100644 index 0000000..888185f --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphType.java @@ -0,0 +1,69 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.2.19 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + +import java.io.IOException; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; + +/** + * The type of a task graph. + */ +@JsonAdapter(TaskGraphType.Adapter.class) +public enum TaskGraphType { + + BATCH("batch"), + + REALTIME("realtime"); + + private String value; + + TaskGraphType(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TaskGraphType fromValue(String value) { + for (TaskGraphType b : TaskGraphType.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 TaskGraphType enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TaskGraphType read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return 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 new file mode 100644 index 0000000..ae4caa1 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TaskGraphs.java @@ -0,0 +1,285 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.2.19 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + +import java.util.Objects; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.JsonArray; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * 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]") +public class TaskGraphs { + public static final String SERIALIZED_NAME_GRAPHS = "graphs"; + @SerializedName(SERIALIZED_NAME_GRAPHS) + private List graphs = null; + + public TaskGraphs() { + } + + public TaskGraphs graphs(List graphs) { + + this.graphs = graphs; + return this; + } + + public TaskGraphs addGraphsItem(TaskGraph graphsItem) { + if (this.graphs == null) { + this.graphs = new ArrayList<>(); + } + this.graphs.add(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; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public TaskGraphs putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TaskGraphs taskGraphs = (TaskGraphs) o; + return Objects.equals(this.graphs, taskGraphs.graphs)&& + Objects.equals(this.additionalProperties, taskGraphs.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(graphs, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TaskGraphs {\n"); + sb.append(" graphs: ").append(toIndentedString(graphs)).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("graphs"); + + // 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 TaskGraphs + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (TaskGraphs.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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())); + } + + // validate the optional field `graphs` (array) + for (int i = 0; i < jsonArraygraphs.size(); i++) { + TaskGraph.validateJsonObject(jsonArraygraphs.get(i).getAsJsonObject()); + }; + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!TaskGraphs.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'TaskGraphs' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(TaskGraphs.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, TaskGraphs value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public TaskGraphs read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + TaskGraphs instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of 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 + */ + 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 a338718..6594e29 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 @@ -22,64 +22,100 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import java.util.HashMap; -import java.util.Map; +import java.util.ArrayList; +import java.util.List; import com.google.gson.Gson; +import com.google.gson.JsonArray; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; import io.tiledb.cloud.rest_api.JSON; /** - * user's TileDB config + * TileDB config used for interaction with the embedded library */ -@ApiModel(description = "user's TileDB config") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@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]") public class TileDBConfig { - public static final String SERIALIZED_NAME_CONFIGS = "configs"; - @SerializedName(SERIALIZED_NAME_CONFIGS) - private Map configs = null; + public static final String SERIALIZED_NAME_ENTRIES = "entries"; + @SerializedName(SERIALIZED_NAME_ENTRIES) + private List entries = null; - public TileDBConfig() { + public TileDBConfig() { } - public TileDBConfig configs(Map configs) { + public TileDBConfig entries(List entries) { - this.configs = configs; + this.entries = entries; return this; } - public TileDBConfig putConfigsItem(String key, String configsItem) { - if (this.configs == null) { - this.configs = new HashMap<>(); + public TileDBConfig addEntriesItem(TileDBConfigEntriesInner entriesItem) { + if (this.entries == null) { + this.entries = new ArrayList<>(); } - this.configs.put(key, configsItem); + this.entries.add(entriesItem); return this; } /** - * Get configs - * @return configs + * Get entries + * @return entries **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - public Map getConfigs() { - return configs; + public List getEntries() { + return entries; } - public void setConfigs(Map configs) { - this.configs = configs; + public void setEntries(List entries) { + this.entries = entries; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public TileDBConfig putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -91,19 +127,21 @@ public boolean equals(Object o) { return false; } TileDBConfig tileDBConfig = (TileDBConfig) o; - return Objects.equals(this.configs, tileDBConfig.configs); + return Objects.equals(this.entries, tileDBConfig.entries)&& + Objects.equals(this.additionalProperties, tileDBConfig.additionalProperties); } @Override public int hashCode() { - return Objects.hash(configs); + return Objects.hash(entries, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TileDBConfig {\n"); - sb.append(" configs: ").append(toIndentedString(configs)).append("\n"); + sb.append(" entries: ").append(toIndentedString(entries)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -126,7 +164,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); - openapiFields.add("configs"); + openapiFields.add("entries"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -146,14 +184,18 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { 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())); + } - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!TileDBConfig.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `TileDBConfig` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } + // validate the optional field `entries` (array) + for (int i = 0; i < jsonArrayentries.size(); i++) { + TileDBConfigEntriesInner.validateJsonObject(jsonArrayentries.get(i).getAsJsonObject()); + }; + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @@ -171,6 +213,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, TileDBConfig value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -178,7 +237,25 @@ public void write(JsonWriter out, TileDBConfig value) throws IOException { public TileDBConfig read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + TileDBConfig instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 new file mode 100644 index 0000000..7aa9320 --- /dev/null +++ b/src/main/java/io/tiledb/cloud/rest_api/model/TileDBConfigEntriesInner.java @@ -0,0 +1,296 @@ +/* + * TileDB Storage Platform API + * TileDB Storage Platform REST API + * + * The version of the OpenAPI document: 2.2.19 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.tiledb.cloud.rest_api.model; + +import java.util.Objects; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +import com.google.gson.Gson; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; + +/** + * TileDBConfigEntriesInner + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") +public class TileDBConfigEntriesInner { + 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 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; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public TileDBConfigEntriesInner putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TileDBConfigEntriesInner tileDBConfigEntriesInner = (TileDBConfigEntriesInner) o; + return Objects.equals(this.key, tileDBConfigEntriesInner.key) && + Objects.equals(this.value, tileDBConfigEntriesInner.value)&& + Objects.equals(this.additionalProperties, tileDBConfigEntriesInner.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(key, value, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TileDBConfigEntriesInner {\n"); + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).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"); + + // 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 TileDBConfigEntriesInner + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (TileDBConfigEntriesInner.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in TileDBConfigEntriesInner is not found in the empty JSON string", TileDBConfigEntriesInner.openapiRequiredFields.toString())); + } + } + if ((jsonObj.get("key") != null && !jsonObj.get("key").isJsonNull()) && !jsonObj.get("key").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `key` to be a primitive type in the JSON string but got `%s`", jsonObj.get("key").toString())); + } + if ((jsonObj.get("value") != null && !jsonObj.get("value").isJsonNull()) && !jsonObj.get("value").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `value` to be a primitive type in the JSON string but got `%s`", jsonObj.get("value").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!TileDBConfigEntriesInner.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'TileDBConfigEntriesInner' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(TileDBConfigEntriesInner.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, TileDBConfigEntriesInner value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public TileDBConfigEntriesInner read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + TileDBConfigEntriesInner instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of 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 + */ + 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 573ec7f..c3d2781 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 @@ -23,6 +23,8 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.List; import com.google.gson.Gson; import com.google.gson.JsonElement; @@ -30,9 +32,9 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; import io.tiledb.cloud.rest_api.JSON; @@ -40,7 +42,7 @@ * A api token and its metadata */ @ApiModel(description = "A api token and its metadata") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class Token { public static final String SERIALIZED_NAME_TOKEN = "token"; @SerializedName(SERIALIZED_NAME_TOKEN) @@ -60,9 +62,9 @@ public class Token { public static final String SERIALIZED_NAME_SCOPE = "scope"; @SerializedName(SERIALIZED_NAME_SCOPE) - private String scope = "*"; + private List scope = null; - public Token() { + public Token() { } public Token token(String token) { @@ -157,28 +159,71 @@ public void setExpiresAt(OffsetDateTime expiresAt) { } - public Token scope(String scope) { + public Token scope(List scope) { this.scope = scope; return this; } + public Token addScopeItem(TokenScope scopeItem) { + if (this.scope == null) { + this.scope = new ArrayList<>(); + } + this.scope.add(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(example = "*", value = "Optional scope to limit token, defaults to all permissions, current supported values are password_reset or *") + @ApiModelProperty(value = "Optional scope to limit token, defaults to all permissions, current supported values are password_reset or *") - public String getScope() { + public List getScope() { return scope; } - public void setScope(String scope) { + public void setScope(List scope) { this.scope = scope; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public Token putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -194,12 +239,13 @@ public boolean equals(Object o) { Objects.equals(this.name, token.name) && Objects.equals(this.issuedAt, token.issuedAt) && Objects.equals(this.expiresAt, token.expiresAt) && - Objects.equals(this.scope, token.scope); + Objects.equals(this.scope, token.scope)&& + Objects.equals(this.additionalProperties, token.additionalProperties); } @Override public int hashCode() { - return Objects.hash(token, name, issuedAt, expiresAt, scope); + return Objects.hash(token, name, issuedAt, expiresAt, scope, additionalProperties); } @Override @@ -211,6 +257,7 @@ public String toString() { sb.append(" issuedAt: ").append(toIndentedString(issuedAt)).append("\n"); sb.append(" expiresAt: ").append(toIndentedString(expiresAt)).append("\n"); sb.append(" scope: ").append(toIndentedString(scope)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -257,22 +304,15 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in Token is not found in the empty JSON string", Token.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!Token.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `Token` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } - if (jsonObj.get("token") != null && !jsonObj.get("token").isJsonPrimitive()) { + 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").isJsonPrimitive()) { + 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("scope") != null && !jsonObj.get("scope").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `scope` to be a primitive type in the JSON string but got `%s`", jsonObj.get("scope").toString())); + // ensure the json data is an array + 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())); } } @@ -291,6 +331,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, Token value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -298,7 +355,25 @@ public void write(JsonWriter out, Token value) throws IOException { public Token read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + Token instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 f51bb69..376e346 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 @@ -23,6 +23,8 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.time.OffsetDateTime; +import java.util.ArrayList; +import java.util.List; import com.google.gson.Gson; import com.google.gson.JsonElement; @@ -30,9 +32,9 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; import io.tiledb.cloud.rest_api.JSON; @@ -40,7 +42,7 @@ * A request from a user for an api token */ @ApiModel(description = "A request from a user for an api token") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class TokenRequest { public static final String SERIALIZED_NAME_EXPIRES = "expires"; @SerializedName(SERIALIZED_NAME_EXPIRES) @@ -52,9 +54,9 @@ public class TokenRequest { public static final String SERIALIZED_NAME_SCOPE = "scope"; @SerializedName(SERIALIZED_NAME_SCOPE) - private String scope = "*"; + private List scope = null; - public TokenRequest() { + public TokenRequest() { } public TokenRequest expires(OffsetDateTime expires) { @@ -103,28 +105,71 @@ public void setName(String name) { } - public TokenRequest scope(String scope) { + public TokenRequest scope(List scope) { this.scope = scope; return this; } + public TokenRequest addScopeItem(TokenScope scopeItem) { + if (this.scope == null) { + this.scope = new ArrayList<>(); + } + this.scope.add(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(example = "*", value = "Optional scope to limit token, defaults to all permissions, current supported values are password_reset or *") + @ApiModelProperty(value = "Optional scope to limit token, defaults to all permissions, current supported values are password_reset or *") - public String getScope() { + public List getScope() { return scope; } - public void setScope(String scope) { + public void setScope(List scope) { this.scope = scope; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public TokenRequest putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -138,12 +183,13 @@ public boolean equals(Object o) { TokenRequest tokenRequest = (TokenRequest) o; return Objects.equals(this.expires, tokenRequest.expires) && Objects.equals(this.name, tokenRequest.name) && - Objects.equals(this.scope, tokenRequest.scope); + Objects.equals(this.scope, tokenRequest.scope)&& + Objects.equals(this.additionalProperties, tokenRequest.additionalProperties); } @Override public int hashCode() { - return Objects.hash(expires, name, scope); + return Objects.hash(expires, name, scope, additionalProperties); } @Override @@ -153,6 +199,7 @@ public String toString() { sb.append(" expires: ").append(toIndentedString(expires)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" scope: ").append(toIndentedString(scope)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -197,19 +244,12 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in TokenRequest is not found in the empty JSON string", TokenRequest.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!TokenRequest.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `TokenRequest` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } - if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { + 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("scope") != null && !jsonObj.get("scope").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `scope` to be a primitive type in the JSON string but got `%s`", jsonObj.get("scope").toString())); + // ensure the json data is an array + 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())); } } @@ -228,6 +268,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, TokenRequest value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -235,7 +292,25 @@ public void write(JsonWriter out, TokenRequest value) throws IOException { public TokenRequest read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + TokenRequest instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 754929d..5e2df5e 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 @@ -25,7 +25,6 @@ import java.util.ArrayList; import java.util.List; -import io.tiledb.cloud.rest_api.JSON; import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; @@ -34,15 +33,17 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; /** * Contains array details for multi-array query including uri, ranges buffers */ @ApiModel(description = "Contains array details for multi-array query including uri, ranges buffers") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class UDFArrayDetails { public static final String SERIALIZED_NAME_PARAMETER_ID = "parameter_id"; @SerializedName(SERIALIZED_NAME_PARAMETER_ID) @@ -60,7 +61,7 @@ public class UDFArrayDetails { @SerializedName(SERIALIZED_NAME_BUFFERS) private List buffers = null; - public UDFArrayDetails() { + public UDFArrayDetails() { } public UDFArrayDetails parameterId(String parameterId) { @@ -162,6 +163,41 @@ public void setBuffers(List buffers) { this.buffers = buffers; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public UDFArrayDetails putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -176,7 +212,8 @@ public boolean equals(Object o) { return Objects.equals(this.parameterId, udFArrayDetails.parameterId) && Objects.equals(this.uri, udFArrayDetails.uri) && Objects.equals(this.ranges, udFArrayDetails.ranges) && - Objects.equals(this.buffers, udFArrayDetails.buffers); + Objects.equals(this.buffers, udFArrayDetails.buffers)&& + Objects.equals(this.additionalProperties, udFArrayDetails.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -185,7 +222,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(parameterId, uri, ranges, buffers); + return Objects.hash(parameterId, uri, ranges, buffers, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -203,6 +240,7 @@ public String toString() { sb.append(" uri: ").append(toIndentedString(uri)).append("\n"); sb.append(" ranges: ").append(toIndentedString(ranges)).append("\n"); sb.append(" buffers: ").append(toIndentedString(buffers)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -248,26 +286,18 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in UDFArrayDetails is not found in the empty JSON string", UDFArrayDetails.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!UDFArrayDetails.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `UDFArrayDetails` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } - if (jsonObj.get("parameter_id") != null && !jsonObj.get("parameter_id").isJsonPrimitive()) { + 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())); } - if (jsonObj.get("uri") != null && !jsonObj.get("uri").isJsonPrimitive()) { + 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 `ranges` - if (jsonObj.getAsJsonObject("ranges") != null) { + if (jsonObj.get("ranges") != null && !jsonObj.get("ranges").isJsonNull()) { QueryRanges.validateJsonObject(jsonObj.getAsJsonObject("ranges")); } // ensure the json data is an array - if (jsonObj.get("buffers") != null && !jsonObj.get("buffers").isJsonArray()) { + 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())); } } @@ -287,6 +317,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, UDFArrayDetails value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -294,7 +341,25 @@ public void write(JsonWriter out, UDFArrayDetails value) throws IOException { public UDFArrayDetails read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + UDFArrayDetails instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 9f71f15..ea13293 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 @@ -29,9 +29,9 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; import io.tiledb.cloud.rest_api.JSON; @@ -39,7 +39,7 @@ * Copied udf uri and information */ @ApiModel(description = "Copied udf uri and information") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class UDFCopied { public static final String SERIALIZED_NAME_OUTPUT_URI = "output_uri"; @SerializedName(SERIALIZED_NAME_OUTPUT_URI) @@ -57,7 +57,7 @@ public class UDFCopied { @SerializedName(SERIALIZED_NAME_ID) private String id; - public UDFCopied() { + public UDFCopied() { } public UDFCopied outputUri(String outputUri) { @@ -151,6 +151,41 @@ public void setId(String id) { this.id = id; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public UDFCopied putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -165,12 +200,13 @@ public boolean equals(Object o) { return Objects.equals(this.outputUri, udFCopied.outputUri) && Objects.equals(this.namespace, udFCopied.namespace) && Objects.equals(this.name, udFCopied.name) && - Objects.equals(this.id, udFCopied.id); + Objects.equals(this.id, udFCopied.id)&& + Objects.equals(this.additionalProperties, udFCopied.additionalProperties); } @Override public int hashCode() { - return Objects.hash(outputUri, namespace, name, id); + return Objects.hash(outputUri, namespace, name, id, additionalProperties); } @Override @@ -181,6 +217,7 @@ public String toString() { sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -228,30 +265,22 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { } } - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!UDFCopied.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `UDFCopied` properties. JSON: %s", entry.getKey(), jsonObj.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 (jsonObj.get("output_uri") != null && !jsonObj.get("output_uri").isJsonPrimitive()) { + 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("namespace") != null && !jsonObj.get("namespace").isJsonPrimitive()) { + 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").isJsonPrimitive()) { + 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").isJsonPrimitive()) { + 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())); } } @@ -271,6 +300,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, UDFCopied value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -278,7 +324,25 @@ public void write(JsonWriter out, UDFCopied value) throws IOException { public UDFCopied read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + UDFCopied instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 1bb5909..e790fe0 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 @@ -29,9 +29,9 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; import io.tiledb.cloud.rest_api.JSON; @@ -39,7 +39,7 @@ * information required to copy a udf */ @ApiModel(description = "information required to copy a udf") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class UDFCopy { public static final String SERIALIZED_NAME_OUTPUT_URI = "output_uri"; @SerializedName(SERIALIZED_NAME_OUTPUT_URI) @@ -53,7 +53,7 @@ public class UDFCopy { @SerializedName(SERIALIZED_NAME_NAME) private String name; - public UDFCopy() { + public UDFCopy() { } public UDFCopy outputUri(String outputUri) { @@ -124,6 +124,41 @@ public void setName(String name) { this.name = name; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public UDFCopy putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -137,12 +172,13 @@ public boolean equals(Object o) { UDFCopy udFCopy = (UDFCopy) o; return Objects.equals(this.outputUri, udFCopy.outputUri) && Objects.equals(this.namespace, udFCopy.namespace) && - Objects.equals(this.name, udFCopy.name); + Objects.equals(this.name, udFCopy.name)&& + Objects.equals(this.additionalProperties, udFCopy.additionalProperties); } @Override public int hashCode() { - return Objects.hash(outputUri, namespace, name); + return Objects.hash(outputUri, namespace, name, additionalProperties); } @Override @@ -152,6 +188,7 @@ public String toString() { sb.append(" outputUri: ").append(toIndentedString(outputUri)).append("\n"); sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -196,21 +233,13 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in UDFCopy is not found in the empty JSON string", UDFCopy.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!UDFCopy.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `UDFCopy` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } - if (jsonObj.get("output_uri") != null && !jsonObj.get("output_uri").isJsonPrimitive()) { + 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("namespace") != null && !jsonObj.get("namespace").isJsonPrimitive()) { + 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").isJsonPrimitive()) { + 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())); } } @@ -230,6 +259,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, UDFCopy value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -237,7 +283,25 @@ public void write(JsonWriter out, UDFCopy value) throws IOException { public UDFCopy read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + UDFCopy instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 dfeb5de..a4e0ae7 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 @@ -29,9 +29,9 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; import io.tiledb.cloud.rest_api.JSON; @@ -39,7 +39,7 @@ * A user-favorite UDF item */ @ApiModel(description = "A user-favorite UDF item") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class UDFFavorite { public static final String SERIALIZED_NAME_UDF_UUID = "udf_uuid"; @SerializedName(SERIALIZED_NAME_UDF_UUID) @@ -53,7 +53,7 @@ public class UDFFavorite { @SerializedName(SERIALIZED_NAME_NAME) private String name; - public UDFFavorite() { + public UDFFavorite() { } public UDFFavorite udfUuid(String udfUuid) { @@ -124,6 +124,41 @@ public void setName(String name) { this.name = name; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public UDFFavorite putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -137,12 +172,13 @@ public boolean equals(Object o) { UDFFavorite udFFavorite = (UDFFavorite) o; return Objects.equals(this.udfUuid, udFFavorite.udfUuid) && Objects.equals(this.namespace, udFFavorite.namespace) && - Objects.equals(this.name, udFFavorite.name); + Objects.equals(this.name, udFFavorite.name)&& + Objects.equals(this.additionalProperties, udFFavorite.additionalProperties); } @Override public int hashCode() { - return Objects.hash(udfUuid, namespace, name); + return Objects.hash(udfUuid, namespace, name, additionalProperties); } @Override @@ -152,6 +188,7 @@ public String toString() { sb.append(" udfUuid: ").append(toIndentedString(udfUuid)).append("\n"); sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -196,21 +233,13 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in UDFFavorite is not found in the empty JSON string", UDFFavorite.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!UDFFavorite.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `UDFFavorite` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } - if (jsonObj.get("udf_uuid") != null && !jsonObj.get("udf_uuid").isJsonPrimitive()) { + 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())); } - if (jsonObj.get("namespace") != null && !jsonObj.get("namespace").isJsonPrimitive()) { + 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").isJsonPrimitive()) { + 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())); } } @@ -230,6 +259,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, UDFFavorite value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -237,7 +283,25 @@ public void write(JsonWriter out, UDFFavorite value) throws IOException { public UDFFavorite read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + UDFFavorite instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 c4eaa38..10e0c61 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 @@ -25,8 +25,6 @@ import java.util.ArrayList; import java.util.List; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonArray; import com.google.gson.JsonElement; @@ -34,15 +32,17 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class UDFFavoritesData { public static final String SERIALIZED_NAME_UDFS = "udfs"; @SerializedName(SERIALIZED_NAME_UDFS) @@ -52,7 +52,7 @@ public class UDFFavoritesData { @SerializedName(SERIALIZED_NAME_PAGINATION_METADATA) private PaginationMetadata paginationMetadata; - public UDFFavoritesData() { + public UDFFavoritesData() { } public UDFFavoritesData udfs(List udfs) { @@ -108,6 +108,41 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { this.paginationMetadata = paginationMetadata; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public UDFFavoritesData putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -120,12 +155,13 @@ public boolean equals(Object o) { } UDFFavoritesData udFFavoritesData = (UDFFavoritesData) o; return Objects.equals(this.udfs, udFFavoritesData.udfs) && - Objects.equals(this.paginationMetadata, udFFavoritesData.paginationMetadata); + Objects.equals(this.paginationMetadata, udFFavoritesData.paginationMetadata)&& + Objects.equals(this.additionalProperties, udFFavoritesData.additionalProperties); } @Override public int hashCode() { - return Objects.hash(udfs, paginationMetadata); + return Objects.hash(udfs, paginationMetadata, additionalProperties); } @Override @@ -134,6 +170,7 @@ public String toString() { sb.append("class UDFFavoritesData {\n"); sb.append(" udfs: ").append(toIndentedString(udfs)).append("\n"); sb.append(" paginationMetadata: ").append(toIndentedString(paginationMetadata)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -177,14 +214,6 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in UDFFavoritesData is not found in the empty JSON string", UDFFavoritesData.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!UDFFavoritesData.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `UDFFavoritesData` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } JsonArray jsonArrayudfs = jsonObj.getAsJsonArray("udfs"); if (jsonArrayudfs != null) { // ensure the json data is an array @@ -198,7 +227,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { }; } // validate the optional field `pagination_metadata` - if (jsonObj.getAsJsonObject("pagination_metadata") != null) { + if (jsonObj.get("pagination_metadata") != null && !jsonObj.get("pagination_metadata").isJsonNull()) { PaginationMetadata.validateJsonObject(jsonObj.getAsJsonObject("pagination_metadata")); } } @@ -218,6 +247,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, UDFFavoritesData value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -225,7 +271,25 @@ public void write(JsonWriter out, UDFFavoritesData value) throws IOException { public UDFFavoritesData read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + UDFFavoritesData instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 0cd8dbc..bcfccc3 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 @@ -23,23 +23,23 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class UDFImage { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -53,7 +53,7 @@ public class UDFImage { @SerializedName(SERIALIZED_NAME_LANGUAGE) private UDFLanguage language; - public UDFImage() { + public UDFImage() { } public UDFImage id(String id) { @@ -124,6 +124,41 @@ public void setLanguage(UDFLanguage language) { this.language = language; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public UDFImage putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -137,12 +172,13 @@ public boolean equals(Object o) { UDFImage udFImage = (UDFImage) o; return Objects.equals(this.id, udFImage.id) && Objects.equals(this.name, udFImage.name) && - Objects.equals(this.language, udFImage.language); + Objects.equals(this.language, udFImage.language)&& + Objects.equals(this.additionalProperties, udFImage.additionalProperties); } @Override public int hashCode() { - return Objects.hash(id, name, language); + return Objects.hash(id, name, language, additionalProperties); } @Override @@ -152,6 +188,7 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" language: ").append(toIndentedString(language)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -196,18 +233,10 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in UDFImage is not found in the empty JSON string", UDFImage.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!UDFImage.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `UDFImage` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } - if (jsonObj.get("id") != null && !jsonObj.get("id").isJsonPrimitive()) { + 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").isJsonPrimitive()) { + 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())); } } @@ -227,6 +256,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, UDFImage value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -234,7 +280,25 @@ public void write(JsonWriter out, UDFImage value) throws IOException { public UDFImage read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + UDFImage instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 62f8d82..db76f80 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 @@ -30,9 +30,9 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; import io.tiledb.cloud.rest_api.JSON; @@ -40,7 +40,7 @@ * Defines an image that belongs to a set of images having a version */ @ApiModel(description = "Defines an image that belongs to a set of images having a version") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class UDFImageVersion { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -70,7 +70,7 @@ public class UDFImageVersion { @SerializedName(SERIALIZED_NAME_LATEST) private Boolean latest; - public UDFImageVersion() { + public UDFImageVersion() { } public UDFImageVersion id(String id) { @@ -233,6 +233,41 @@ public void setLatest(Boolean latest) { this.latest = latest; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public UDFImageVersion putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -250,12 +285,13 @@ public boolean equals(Object o) { Objects.equals(this.dockerImage, udFImageVersion.dockerImage) && Objects.equals(this.version, udFImageVersion.version) && Objects.equals(this._default, udFImageVersion._default) && - Objects.equals(this.latest, udFImageVersion.latest); + Objects.equals(this.latest, udFImageVersion.latest)&& + Objects.equals(this.additionalProperties, udFImageVersion.additionalProperties); } @Override public int hashCode() { - return Objects.hash(id, name, udfImageUuid, dockerImage, version, _default, latest); + return Objects.hash(id, name, udfImageUuid, dockerImage, version, _default, latest, additionalProperties); } @Override @@ -269,6 +305,7 @@ public String toString() { sb.append(" version: ").append(toIndentedString(version)).append("\n"); sb.append(" _default: ").append(toIndentedString(_default)).append("\n"); sb.append(" latest: ").append(toIndentedString(latest)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -317,24 +354,16 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in UDFImageVersion is not found in the empty JSON string", UDFImageVersion.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!UDFImageVersion.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `UDFImageVersion` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } - if (jsonObj.get("id") != null && !jsonObj.get("id").isJsonPrimitive()) { + 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").isJsonPrimitive()) { + 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("udf_image_uuid") != null && !jsonObj.get("udf_image_uuid").isJsonPrimitive()) { + if ((jsonObj.get("udf_image_uuid") != null && !jsonObj.get("udf_image_uuid").isJsonNull()) && !jsonObj.get("udf_image_uuid").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `udf_image_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("udf_image_uuid").toString())); } - if (jsonObj.get("docker_image") != null && !jsonObj.get("docker_image").isJsonPrimitive()) { + if ((jsonObj.get("docker_image") != null && !jsonObj.get("docker_image").isJsonNull()) && !jsonObj.get("docker_image").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `docker_image` to be a primitive type in the JSON string but got `%s`", jsonObj.get("docker_image").toString())); } } @@ -354,6 +383,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, UDFImageVersion value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -361,7 +407,25 @@ public void write(JsonWriter out, UDFImageVersion value) throws IOException { public UDFImageVersion read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + UDFImageVersion instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 221a8aa..db3fac1 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 @@ -25,23 +25,23 @@ import java.util.ArrayList; import java.util.List; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class UDFInfo { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -75,7 +75,7 @@ public class UDFInfo { @SerializedName(SERIALIZED_NAME_TAGS) private List tags = null; - public UDFInfo() { + public UDFInfo() { } public UDFInfo id(String id) { @@ -269,6 +269,41 @@ public void setTags(List tags) { this.tags = tags; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public UDFInfo putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -287,12 +322,13 @@ public boolean equals(Object o) { Objects.equals(this.readme, udFInfo.readme) && Objects.equals(this.licenseId, udFInfo.licenseId) && Objects.equals(this.licenseText, udFInfo.licenseText) && - Objects.equals(this.tags, udFInfo.tags); + Objects.equals(this.tags, udFInfo.tags)&& + Objects.equals(this.additionalProperties, udFInfo.additionalProperties); } @Override public int hashCode() { - return Objects.hash(id, name, language, type, readme, licenseId, licenseText, tags); + return Objects.hash(id, name, language, type, readme, licenseId, licenseText, tags, additionalProperties); } @Override @@ -307,6 +343,7 @@ public String toString() { sb.append(" licenseId: ").append(toIndentedString(licenseId)).append("\n"); sb.append(" licenseText: ").append(toIndentedString(licenseText)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -356,31 +393,23 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in UDFInfo is not found in the empty JSON string", UDFInfo.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!UDFInfo.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `UDFInfo` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } - if (jsonObj.get("id") != null && !jsonObj.get("id").isJsonPrimitive()) { + 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").isJsonPrimitive()) { + 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("readme") != null && !jsonObj.get("readme").isJsonPrimitive()) { + 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())); } - if (jsonObj.get("license_id") != null && !jsonObj.get("license_id").isJsonPrimitive()) { + if ((jsonObj.get("license_id") != null && !jsonObj.get("license_id").isJsonNull()) && !jsonObj.get("license_id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `license_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("license_id").toString())); } - if (jsonObj.get("license_text") != null && !jsonObj.get("license_text").isJsonPrimitive()) { + 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").isJsonArray()) { + 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())); } } @@ -400,6 +429,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, UDFInfo value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -407,7 +453,25 @@ public void write(JsonWriter out, UDFInfo value) throws IOException { public UDFInfo read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + UDFInfo instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 697daf2..7f3b91b 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 @@ -25,23 +25,23 @@ import java.util.ArrayList; import java.util.List; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class UDFInfoUpdate { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -87,7 +87,7 @@ public class UDFInfoUpdate { @SerializedName(SERIALIZED_NAME_TAGS) private List tags = null; - public UDFInfoUpdate() { + public UDFInfoUpdate() { } public UDFInfoUpdate name(String name) { @@ -350,6 +350,41 @@ public void setTags(List tags) { this.tags = tags; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public UDFInfoUpdate putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -371,12 +406,13 @@ public boolean equals(Object o) { Objects.equals(this.readme, udFInfoUpdate.readme) && Objects.equals(this.licenseId, udFInfoUpdate.licenseId) && Objects.equals(this.licenseText, udFInfoUpdate.licenseText) && - Objects.equals(this.tags, udFInfoUpdate.tags); + Objects.equals(this.tags, udFInfoUpdate.tags)&& + Objects.equals(this.additionalProperties, udFInfoUpdate.additionalProperties); } @Override public int hashCode() { - return Objects.hash(name, language, version, imageName, type, exec, execRaw, readme, licenseId, licenseText, tags); + return Objects.hash(name, language, version, imageName, type, exec, execRaw, readme, licenseId, licenseText, tags, additionalProperties); } @Override @@ -394,6 +430,7 @@ public String toString() { sb.append(" licenseId: ").append(toIndentedString(licenseId)).append("\n"); sb.append(" licenseText: ").append(toIndentedString(licenseText)).append("\n"); sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -446,40 +483,32 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in UDFInfoUpdate is not found in the empty JSON string", UDFInfoUpdate.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!UDFInfoUpdate.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `UDFInfoUpdate` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } - if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { + 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("version") != null && !jsonObj.get("version").isJsonPrimitive()) { + 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").isJsonPrimitive()) { + 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())); } - if (jsonObj.get("exec") != null && !jsonObj.get("exec").isJsonPrimitive()) { + 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())); } - if (jsonObj.get("exec_raw") != null && !jsonObj.get("exec_raw").isJsonPrimitive()) { + 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())); } - if (jsonObj.get("readme") != null && !jsonObj.get("readme").isJsonPrimitive()) { + 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())); } - if (jsonObj.get("license_id") != null && !jsonObj.get("license_id").isJsonPrimitive()) { + if ((jsonObj.get("license_id") != null && !jsonObj.get("license_id").isJsonNull()) && !jsonObj.get("license_id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `license_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("license_id").toString())); } - if (jsonObj.get("license_text") != null && !jsonObj.get("license_text").isJsonPrimitive()) { + 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").isJsonArray()) { + 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())); } } @@ -499,6 +528,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, UDFInfoUpdate value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -506,7 +552,25 @@ public void write(JsonWriter out, UDFInfoUpdate value) throws IOException { public UDFInfoUpdate read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + UDFInfoUpdate instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 343228e..7f8e104 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 @@ -25,23 +25,23 @@ import java.util.ArrayList; import java.util.List; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class UDFSharing { public static final String SERIALIZED_NAME_ACTIONS = "actions"; @SerializedName(SERIALIZED_NAME_ACTIONS) @@ -55,7 +55,7 @@ public class UDFSharing { @SerializedName(SERIALIZED_NAME_NAMESPACE_TYPE) private String namespaceType; - public UDFSharing() { + public UDFSharing() { } public UDFSharing actions(List actions) { @@ -134,6 +134,41 @@ public void setNamespaceType(String namespaceType) { this.namespaceType = namespaceType; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public UDFSharing putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -147,12 +182,13 @@ public boolean equals(Object o) { UDFSharing udFSharing = (UDFSharing) o; return Objects.equals(this.actions, udFSharing.actions) && Objects.equals(this.namespace, udFSharing.namespace) && - Objects.equals(this.namespaceType, udFSharing.namespaceType); + Objects.equals(this.namespaceType, udFSharing.namespaceType)&& + Objects.equals(this.additionalProperties, udFSharing.additionalProperties); } @Override public int hashCode() { - return Objects.hash(actions, namespace, namespaceType); + return Objects.hash(actions, namespace, namespaceType, additionalProperties); } @Override @@ -162,6 +198,7 @@ public String toString() { sb.append(" actions: ").append(toIndentedString(actions)).append("\n"); sb.append(" namespace: ").append(toIndentedString(namespace)).append("\n"); sb.append(" namespaceType: ").append(toIndentedString(namespaceType)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -206,22 +243,14 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in UDFSharing is not found in the empty JSON string", UDFSharing.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!UDFSharing.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `UDFSharing` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } // ensure the json data is an array - if (jsonObj.get("actions") != null && !jsonObj.get("actions").isJsonArray()) { + 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").isJsonPrimitive()) { + 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("namespace_type") != null && !jsonObj.get("namespace_type").isJsonPrimitive()) { + if ((jsonObj.get("namespace_type") != null && !jsonObj.get("namespace_type").isJsonNull()) && !jsonObj.get("namespace_type").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `namespace_type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("namespace_type").toString())); } } @@ -241,6 +270,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, UDFSharing value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -248,7 +294,25 @@ public void write(JsonWriter out, UDFSharing value) throws IOException { public UDFSharing read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + UDFSharing instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 d0275fd..eefc5b5 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 @@ -25,8 +25,6 @@ import java.util.ArrayList; import java.util.List; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonArray; import com.google.gson.JsonElement; @@ -34,15 +32,17 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class UDFSubarray { public static final String SERIALIZED_NAME_LAYOUT = "layout"; @SerializedName(SERIALIZED_NAME_LAYOUT) @@ -52,7 +52,7 @@ public class UDFSubarray { @SerializedName(SERIALIZED_NAME_RANGES) private List ranges = null; - public UDFSubarray() { + public UDFSubarray() { } public UDFSubarray layout(Layout layout) { @@ -108,6 +108,41 @@ public void setRanges(List ranges) { this.ranges = ranges; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public UDFSubarray putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -120,12 +155,13 @@ public boolean equals(Object o) { } UDFSubarray udFSubarray = (UDFSubarray) o; return Objects.equals(this.layout, udFSubarray.layout) && - Objects.equals(this.ranges, udFSubarray.ranges); + Objects.equals(this.ranges, udFSubarray.ranges)&& + Objects.equals(this.additionalProperties, udFSubarray.additionalProperties); } @Override public int hashCode() { - return Objects.hash(layout, ranges); + return Objects.hash(layout, ranges, additionalProperties); } @Override @@ -134,6 +170,7 @@ public String toString() { sb.append("class UDFSubarray {\n"); sb.append(" layout: ").append(toIndentedString(layout)).append("\n"); sb.append(" ranges: ").append(toIndentedString(ranges)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -177,14 +214,6 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in UDFSubarray is not found in the empty JSON string", UDFSubarray.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!UDFSubarray.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `UDFSubarray` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } JsonArray jsonArrayranges = jsonObj.getAsJsonArray("ranges"); if (jsonArrayranges != null) { // ensure the json data is an array @@ -214,6 +243,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, UDFSubarray value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -221,7 +267,25 @@ public void write(JsonWriter out, UDFSubarray value) throws IOException { public UDFSubarray read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + UDFSubarray instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 91ab657..4f70ad7 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 @@ -23,23 +23,23 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +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 = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class UDFSubarrayRange { public static final String SERIALIZED_NAME_DIMENSION_ID = "dimension_id"; @SerializedName(SERIALIZED_NAME_DIMENSION_ID) @@ -53,7 +53,7 @@ public class UDFSubarrayRange { @SerializedName(SERIALIZED_NAME_RANGE_END) private DimensionCoordinate rangeEnd; - public UDFSubarrayRange() { + public UDFSubarrayRange() { } public UDFSubarrayRange dimensionId(Integer dimensionId) { @@ -124,6 +124,41 @@ public void setRangeEnd(DimensionCoordinate rangeEnd) { this.rangeEnd = rangeEnd; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public UDFSubarrayRange putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -137,12 +172,13 @@ public boolean equals(Object o) { UDFSubarrayRange udFSubarrayRange = (UDFSubarrayRange) o; return Objects.equals(this.dimensionId, udFSubarrayRange.dimensionId) && Objects.equals(this.rangeStart, udFSubarrayRange.rangeStart) && - Objects.equals(this.rangeEnd, udFSubarrayRange.rangeEnd); + Objects.equals(this.rangeEnd, udFSubarrayRange.rangeEnd)&& + Objects.equals(this.additionalProperties, udFSubarrayRange.additionalProperties); } @Override public int hashCode() { - return Objects.hash(dimensionId, rangeStart, rangeEnd); + return Objects.hash(dimensionId, rangeStart, rangeEnd, additionalProperties); } @Override @@ -152,6 +188,7 @@ public String toString() { sb.append(" dimensionId: ").append(toIndentedString(dimensionId)).append("\n"); sb.append(" rangeStart: ").append(toIndentedString(rangeStart)).append("\n"); sb.append(" rangeEnd: ").append(toIndentedString(rangeEnd)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -196,20 +233,12 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in UDFSubarrayRange is not found in the empty JSON string", UDFSubarrayRange.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!UDFSubarrayRange.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `UDFSubarrayRange` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } // validate the optional field `range_start` - if (jsonObj.getAsJsonObject("range_start") != null) { + if (jsonObj.get("range_start") != null && !jsonObj.get("range_start").isJsonNull()) { DimensionCoordinate.validateJsonObject(jsonObj.getAsJsonObject("range_start")); } // validate the optional field `range_end` - if (jsonObj.getAsJsonObject("range_end") != null) { + if (jsonObj.get("range_end") != null && !jsonObj.get("range_end").isJsonNull()) { DimensionCoordinate.validateJsonObject(jsonObj.getAsJsonObject("range_end")); } } @@ -229,6 +258,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, UDFSubarrayRange value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -236,7 +282,25 @@ public void write(JsonWriter out, UDFSubarrayRange value) throws IOException { public UDFSubarrayRange read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + UDFSubarrayRange instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 00387c1..55bcfed 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 @@ -22,11 +22,9 @@ 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.List; -import io.tiledb.cloud.rest_api.JSON; import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; @@ -36,15 +34,17 @@ import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; /** * User */ @ApiModel(description = "User") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class User { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -82,10 +82,6 @@ public class User { @SerializedName(SERIALIZED_NAME_LOGO) private String logo; - public static final String SERIALIZED_NAME_LAST_ACTIVITY_DATE = "last_activity_date"; - @SerializedName(SERIALIZED_NAME_LAST_ACTIVITY_DATE) - private OffsetDateTime lastActivityDate; - public static final String SERIALIZED_NAME_TIMEZONE = "timezone"; @SerializedName(SERIALIZED_NAME_TIMEZONE) private String timezone; @@ -112,20 +108,23 @@ public class User { 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; + private Object defaultS3PathCredentialsName; + + public static final String SERIALIZED_NAME_ASSET_LOCATIONS = "asset_locations"; + @SerializedName(SERIALIZED_NAME_ASSET_LOCATIONS) + private AssetLocations assetLocations; public static final String SERIALIZED_NAME_DEFAULT_NAMESPACE_CHARGED = "default_namespace_charged"; @SerializedName(SERIALIZED_NAME_DEFAULT_NAMESPACE_CHARGED) private String defaultNamespaceCharged; - public User() { + public User() { } public User( Boolean isValidEmail, Boolean stripeConnect, - OffsetDateTime lastActivityDate, List organizations, List enabledFeatures, Boolean unpaidSubscription @@ -133,7 +132,6 @@ public User( this(); this.isValidEmail = isValidEmail; this.stripeConnect = stripeConnect; - this.lastActivityDate = lastActivityDate; this.organizations = organizations; this.enabledFeatures = enabledFeatures; this.unpaidSubscription = unpaidSubscription; @@ -328,20 +326,6 @@ public void setLogo(String logo) { } - /** - * when the user last logged in (set by the server) - * @return lastActivityDate - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "when the user last logged in (set by the server)") - - public OffsetDateTime getLastActivityDate() { - return lastActivityDate; - } - - - - public User timezone(String timezone) { this.timezone = timezone; @@ -445,11 +429,11 @@ public User defaultS3Path(String defaultS3Path) { } /** - * default S3 path to store newly created notebooks + * 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 = "default S3 path to store newly created notebooks") + @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; @@ -461,29 +445,52 @@ public void setDefaultS3Path(String defaultS3Path) { } - public User defaultS3PathCredentialsName(String defaultS3PathCredentialsName) { + public User defaultS3PathCredentialsName(Object defaultS3PathCredentialsName) { this.defaultS3PathCredentialsName = defaultS3PathCredentialsName; return this; } /** - * Default S3 path credentials name is the credentials name to use along with default_s3_path + * 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 = "Default S3 path credentials name is the credentials name to use along with default_s3_path") + @ApiModelProperty(value = "The name of the credentials used to create and access files in the `default_s3_path`, if needed. ") - public String getDefaultS3PathCredentialsName() { + public Object getDefaultS3PathCredentialsName() { return defaultS3PathCredentialsName; } - public void setDefaultS3PathCredentialsName(String 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; @@ -506,6 +513,41 @@ public void setDefaultNamespaceCharged(String defaultNamespaceCharged) { this.defaultNamespaceCharged = defaultNamespaceCharged; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public User putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -526,7 +568,6 @@ public boolean equals(Object o) { Objects.equals(this.stripeConnect, user.stripeConnect) && Objects.equals(this.company, user.company) && Objects.equals(this.logo, user.logo) && - Objects.equals(this.lastActivityDate, user.lastActivityDate) && Objects.equals(this.timezone, user.timezone) && Objects.equals(this.organizations, user.organizations) && Objects.equals(this.allowedActions, user.allowedActions) && @@ -534,7 +575,9 @@ public boolean equals(Object o) { Objects.equals(this.unpaidSubscription, user.unpaidSubscription) && Objects.equals(this.defaultS3Path, user.defaultS3Path) && Objects.equals(this.defaultS3PathCredentialsName, user.defaultS3PathCredentialsName) && - Objects.equals(this.defaultNamespaceCharged, user.defaultNamespaceCharged); + Objects.equals(this.assetLocations, user.assetLocations) && + Objects.equals(this.defaultNamespaceCharged, user.defaultNamespaceCharged)&& + Objects.equals(this.additionalProperties, user.additionalProperties); } private static boolean equalsNullable(JsonNullable a, JsonNullable b) { @@ -543,7 +586,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, lastActivityDate, timezone, organizations, allowedActions, enabledFeatures, unpaidSubscription, defaultS3Path, defaultS3PathCredentialsName, defaultNamespaceCharged); + return Objects.hash(id, username, password, name, email, isValidEmail, stripeConnect, company, logo, timezone, organizations, allowedActions, enabledFeatures, unpaidSubscription, defaultS3Path, defaultS3PathCredentialsName, assetLocations, defaultNamespaceCharged, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -566,7 +609,6 @@ public String toString() { sb.append(" stripeConnect: ").append(toIndentedString(stripeConnect)).append("\n"); sb.append(" company: ").append(toIndentedString(company)).append("\n"); sb.append(" logo: ").append(toIndentedString(logo)).append("\n"); - sb.append(" lastActivityDate: ").append(toIndentedString(lastActivityDate)).append("\n"); sb.append(" timezone: ").append(toIndentedString(timezone)).append("\n"); sb.append(" organizations: ").append(toIndentedString(organizations)).append("\n"); sb.append(" allowedActions: ").append(toIndentedString(allowedActions)).append("\n"); @@ -574,7 +616,9 @@ public String toString() { sb.append(" unpaidSubscription: ").append(toIndentedString(unpaidSubscription)).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(" defaultNamespaceCharged: ").append(toIndentedString(defaultNamespaceCharged)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -606,7 +650,6 @@ private String toIndentedString(Object o) { openapiFields.add("stripe_connect"); openapiFields.add("company"); openapiFields.add("logo"); - openapiFields.add("last_activity_date"); openapiFields.add("timezone"); openapiFields.add("organizations"); openapiFields.add("allowed_actions"); @@ -614,6 +657,7 @@ private String toIndentedString(Object o) { openapiFields.add("unpaid_subscription"); openapiFields.add("default_s3_path"); openapiFields.add("default_s3_path_credentials_name"); + openapiFields.add("asset_locations"); openapiFields.add("default_namespace_charged"); // a set of required properties/fields (JSON key names) @@ -636,42 +680,34 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { } } - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!User.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `User` properties. JSON: %s", entry.getKey(), jsonObj.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 (jsonObj.get("id") != null && !jsonObj.get("id").isJsonPrimitive()) { + 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").isJsonPrimitive()) { + 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("password") != null && !jsonObj.get("password").isJsonPrimitive()) { + 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())); } - if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { + 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("email") != null && !jsonObj.get("email").isJsonPrimitive()) { + if ((jsonObj.get("email") != null && !jsonObj.get("email").isJsonNull()) && !jsonObj.get("email").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `email` to be a primitive type in the JSON string but got `%s`", jsonObj.get("email").toString())); } - if (jsonObj.get("company") != null && !jsonObj.get("company").isJsonPrimitive()) { + if ((jsonObj.get("company") != null && !jsonObj.get("company").isJsonNull()) && !jsonObj.get("company").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `company` to be a primitive type in the JSON string but got `%s`", jsonObj.get("company").toString())); } - if (jsonObj.get("logo") != null && !jsonObj.get("logo").isJsonPrimitive()) { + 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("timezone") != null && !jsonObj.get("timezone").isJsonPrimitive()) { + 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"); @@ -687,20 +723,21 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { }; } // ensure the json data is an array - if (jsonObj.get("allowed_actions") != null && !jsonObj.get("allowed_actions").isJsonArray()) { + 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").isJsonArray()) { + 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").isJsonPrimitive()) { + 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").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `default_s3_path_credentials_name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("default_s3_path_credentials_name").toString())); + // validate the optional field `asset_locations` + if (jsonObj.get("asset_locations") != null && !jsonObj.get("asset_locations").isJsonNull()) { + AssetLocations.validateJsonObject(jsonObj.getAsJsonObject("asset_locations")); } - if (jsonObj.get("default_namespace_charged") != null && !jsonObj.get("default_namespace_charged").isJsonPrimitive()) { + 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())); } } @@ -720,6 +757,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, User value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -727,7 +781,25 @@ public void write(JsonWriter out, User value) throws IOException { public User read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + User instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 bd4f7e2..96174ff 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 @@ -22,22 +22,22 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import io.tiledb.cloud.rest_api.JSON; - import com.google.gson.Gson; import com.google.gson.JsonElement; import com.google.gson.JsonObject; import com.google.gson.TypeAdapterFactory; import com.google.gson.reflect.TypeToken; +import java.util.HashMap; import java.util.HashSet; -import java.util.Map.Entry; -import java.util.Set; +import java.util.Map; + +import io.tiledb.cloud.rest_api.JSON; /** * Writer */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-10-02T12:25:58.319138+03:00[Europe/Athens]") public class Writer { public static final String SERIALIZED_NAME_CHECK_COORD_DUPS = "checkCoordDups"; @SerializedName(SERIALIZED_NAME_CHECK_COORD_DUPS) @@ -55,7 +55,7 @@ public class Writer { @SerializedName(SERIALIZED_NAME_SUBARRAY) private DomainArray subarray; - public Writer() { + public Writer() { } public Writer checkCoordDups(Boolean checkCoordDups) { @@ -149,6 +149,41 @@ public void setSubarray(DomainArray subarray) { this.subarray = subarray; } + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + */ + public Writer putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } @Override @@ -163,12 +198,13 @@ public boolean equals(Object o) { return Objects.equals(this.checkCoordDups, writer.checkCoordDups) && Objects.equals(this.checkCoordOOB, writer.checkCoordOOB) && Objects.equals(this.dedupCoords, writer.dedupCoords) && - Objects.equals(this.subarray, writer.subarray); + Objects.equals(this.subarray, writer.subarray)&& + Objects.equals(this.additionalProperties, writer.additionalProperties); } @Override public int hashCode() { - return Objects.hash(checkCoordDups, checkCoordOOB, dedupCoords, subarray); + return Objects.hash(checkCoordDups, checkCoordOOB, dedupCoords, subarray, additionalProperties); } @Override @@ -179,6 +215,7 @@ public String toString() { sb.append(" checkCoordOOB: ").append(toIndentedString(checkCoordOOB)).append("\n"); sb.append(" dedupCoords: ").append(toIndentedString(dedupCoords)).append("\n"); sb.append(" subarray: ").append(toIndentedString(subarray)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); } @@ -224,16 +261,8 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in Writer is not found in the empty JSON string", Writer.openapiRequiredFields.toString())); } } - - Set> entries = jsonObj.entrySet(); - // check to see if the JSON string contains additional fields -// for (Entry entry : entries) { -// if (!Writer.openapiFields.contains(entry.getKey())) { -// throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `Writer` properties. JSON: %s", entry.getKey(), jsonObj.toString())); -// } -// } // validate the optional field `subarray` - if (jsonObj.getAsJsonObject("subarray") != null) { + if (jsonObj.get("subarray") != null && !jsonObj.get("subarray").isJsonNull()) { DomainArray.validateJsonObject(jsonObj.getAsJsonObject("subarray")); } } @@ -253,6 +282,23 @@ public TypeAdapter create(Gson gson, TypeToken type) { @Override public void write(JsonWriter out, Writer value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } elementAdapter.write(out, obj); } @@ -260,7 +306,25 @@ public void write(JsonWriter out, Writer value) throws IOException { public Writer read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); - return thisAdapter.fromJsonTree(jsonObj); + // store additional fields in the deserialized instance + Writer instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else { // non-primitive type + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; } }.nullSafe(); 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 deleted file mode 100644 index 53d7838..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/api/ArrayApiTest.java +++ /dev/null @@ -1,588 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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.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 java.math.BigDecimal; - -import io.tiledb.cloud.rest_api.model.LastAccessedArray; -import io.tiledb.cloud.rest_api.model.MaxBufferSizes; -import io.tiledb.cloud.rest_api.model.NonEmptyDomain; -import io.tiledb.cloud.rest_api.model.TileDBConfig; -import org.junit.Test; -import org.junit.Ignore; - -import java.util.List; - -/** - * API tests for ArrayApi - */ -@Ignore -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; - ArrayBrowserData response = api.arraysBrowserOwnedGet(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty); - // 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 { - ArrayBrowserSidebar response = api.arraysBrowserOwnedSidebarGet(); - // 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; - ArrayBrowserData response = api.arraysBrowserPublicGet(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty); - // 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 { - ArrayBrowserSidebar response = api.arraysBrowserPublicSidebarGet(); - // 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; - ArrayBrowserData response = api.arraysBrowserSharedGet(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, 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 arraysBrowserSharedSidebarGetTest() throws ApiException { - ArrayBrowserSidebar response = api.arraysBrowserSharedSidebarGet(); - // 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; - TileDBConfig tiledbConfig = null; - api.consolidateArray(namespace, array, tiledbConfig); - // 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 - } - - /** - * - * - * 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; - Object 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; - Object 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; - List response = api.getArraysInNamespace(namespace); - // 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 - } - - /** - * - * - * 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; - TileDBConfig tiledbConfig = null; - api.vacuumArray(namespace, array, tiledbConfig); - // 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 deleted file mode 100644 index 4d12bf6..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/api/ArrayTasksApiTest.java +++ /dev/null @@ -1,46 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.Test; -import org.junit.Ignore; - -/** - * API tests for ArrayTasksApi - */ -@Ignore -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/FavoritesApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/FavoritesApiTest.java deleted file mode 100644 index fe76a01..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/api/FavoritesApiTest.java +++ /dev/null @@ -1,352 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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.model.ArrayFavoritesData; -import io.tiledb.cloud.rest_api.ApiException; -import io.tiledb.cloud.rest_api.model.ArrayFavorite; -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.Test; -import org.junit.Ignore; - -import java.util.List; - -/** - * API tests for FavoritesApi - */ -@Ignore -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 deleted file mode 100644 index 6437be8..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/api/FilesApiTest.java +++ /dev/null @@ -1,89 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 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.Test; -import org.junit.Ignore; - -/** - * API tests for FilesApi - */ -@Ignore -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 deleted file mode 100644 index 8362436..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/api/GroupsApiTest.java +++ /dev/null @@ -1,329 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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.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.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.Test; -import org.junit.Ignore; - -import java.util.List; - -/** - * API tests for GroupsApi - */ -@Ignore -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 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 { - GroupBrowserFilterData response = api.groupsBrowserOwnedFiltersGet(); - // 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 { - GroupBrowserFilterData response = api.groupsBrowserSharedFiltersGet(); - // 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 search = null; - String namespace = null; - String orderby = null; - String permissions = null; - List tag = null; - List excludeTag = null; - Boolean flat = null; - String parent = null; - GroupBrowserData response = api.listOwnedGroups(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, flat, parent); - // 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 search = null; - String namespace = null; - String orderby = null; - String permissions = null; - List tag = null; - List excludeTag = null; - Boolean flat = null; - String parent = null; - GroupBrowserData response = api.listPublicGroups(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, flat, parent); - // 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 search = null; - String namespace = null; - String orderby = null; - String permissions = null; - List tag = null; - List excludeTag = null; - Boolean flat = null; - String parent = null; - GroupBrowserData response = api.listSharedGroups(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, flat, parent); - // 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 deleted file mode 100644 index 8416d59..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/api/InvitationApiTest.java +++ /dev/null @@ -1,136 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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.InvitationArrayShareEmail; -import io.tiledb.cloud.rest_api.model.InvitationData; -import io.tiledb.cloud.rest_api.model.InvitationOrganizationJoinEmail; -import org.junit.Test; -import org.junit.Ignore; - -/** - * API tests for InvitationApi - */ -@Ignore -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 - } - - /** - * - * - * Fetch a list of invitations - * - * @throws ApiException - * if the Api call fails - */ - @Test - public void fetchInvitationsTest() throws ApiException { - String organization = null; - String array = 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, 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 - } - -} 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 deleted file mode 100644 index a894c13..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/api/NotebookApiTest.java +++ /dev/null @@ -1,121 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 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.Test; -import org.junit.Ignore; - -/** - * API tests for NotebookApi - */ -@Ignore -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 deleted file mode 100644 index 491118d..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/api/NotebooksApiTest.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.Test; -import org.junit.Ignore; - -/** - * API tests for NotebooksApi - */ -@Ignore -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 - } - -} 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 deleted file mode 100644 index 2b03a73..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/api/OrganizationApiTest.java +++ /dev/null @@ -1,254 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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.Organization; -import io.tiledb.cloud.rest_api.model.OrganizationUser; -import org.junit.Test; -import org.junit.Ignore; - -import java.util.List; - -/** - * API tests for OrganizationApi - */ -@Ignore -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 - } - - /** - * - * - * 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 - } - - /** - * - * - * 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 - } - - /** - * - * - * 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 - } - - /** - * - * - * 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; - Organization organizationDetails = null; - api.updateOrganization(organization, organizationDetails); - // 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 deleted file mode 100644 index dbd3a4f..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/api/QueryApiTest.java +++ /dev/null @@ -1,133 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 java.io.File; -import io.tiledb.cloud.rest_api.model.Query; -import io.tiledb.cloud.rest_api.model.QueryJson; -import org.junit.Test; -import org.junit.Ignore; - -/** - * API tests for QueryApi - */ -@Ignore -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 deleted file mode 100644 index b9375af..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/api/RegisteredTaskGraphsApiTest.java +++ /dev/null @@ -1,132 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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.RegisteredTaskGraph; -import io.tiledb.cloud.rest_api.model.TaskGraphSharing; -import org.junit.Test; -import org.junit.Ignore; - -import java.util.List; - -/** - * API tests for RegisteredTaskGraphsApi - */ -@Ignore -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 deleted file mode 100644 index a060a0e..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/api/SqlApiTest.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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.SQLParameters; -import org.junit.Test; -import org.junit.Ignore; - -import java.util.List; - -/** - * API tests for SqlApi - */ -@Ignore -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 deleted file mode 100644 index 6452b38..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/api/StatsApiTest.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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.InlineResponse200; -import org.junit.Test; -import org.junit.Ignore; - -/** - * API tests for StatsApi - */ -@Ignore -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 { - InlineResponse200 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 deleted file mode 100644 index cf2c36e..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/api/TaskGraphLogsApiTest.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.threeten.bp.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.Test; -import org.junit.Ignore; - -/** - * API tests for TaskGraphLogsApi - */ -@Ignore -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 search = null; - OffsetDateTime startTime = null; - OffsetDateTime endTime = null; - Integer page = null; - Integer perPage = null; - TaskGraphLogsData response = api.listTaskGraphLogs(namespace, createdBy, 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 - } - - /** - * - * - * 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/TasksApiTest.java b/src/test/java/io/tiledb/cloud/rest_api/api/TasksApiTest.java deleted file mode 100644 index e26e097..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/api/TasksApiTest.java +++ /dev/null @@ -1,110 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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.SQLParameters; -import org.junit.Test; -import org.junit.Ignore; - -import java.util.List; - -/** - * API tests for TasksApi - */ -@Ignore -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 deleted file mode 100644 index 2a8a8b4..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/api/UdfApiTest.java +++ /dev/null @@ -1,231 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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.model.MultiArrayUDF; -import io.tiledb.cloud.rest_api.ApiException; -import io.tiledb.cloud.rest_api.model.ArrayEndTimestampData; - -import java.io.File; -import io.tiledb.cloud.rest_api.model.GenericUDF; -import io.tiledb.cloud.rest_api.model.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.Test; -import org.junit.Ignore; - -import java.util.List; - -/** - * API tests for UdfApi - */ -@Ignore -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 deleted file mode 100644 index 8245a07..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/api/UserApiTest.java +++ /dev/null @@ -1,374 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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.InlineObject; -import io.tiledb.cloud.rest_api.model.OrganizationUser; -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.Test; -import org.junit.Ignore; - -import java.util.List; - -/** - * API tests for UserApi - */ -@Ignore -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 { - InlineObject 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 deleted file mode 100644 index 07d53a3..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/AWSAccessCredentialsTest.java +++ /dev/null @@ -1,98 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.threeten.bp.OffsetDateTime; -import org.junit.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 deleted file mode 100644 index 7087ea2..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ActivityEventTypeTest.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 io.swagger.annotations.ApiModel; -import com.google.gson.annotations.SerializedName; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.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 deleted file mode 100644 index dd9340c..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayActionsTest.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 io.swagger.annotations.ApiModel; -import com.google.gson.annotations.SerializedName; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.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 deleted file mode 100644 index 80a25e7..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayActivityLogTest.java +++ /dev/null @@ -1,106 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.threeten.bp.OffsetDateTime; -import org.junit.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 deleted file mode 100644 index 5612081..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayBrowserDataTest.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index 9e6f9a0..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayBrowserSidebarTest.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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/ArrayEndTimestampDataTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ArrayEndTimestampDataTest.java deleted file mode 100644 index 4088857..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayEndTimestampDataTest.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index 30cc110..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayFavoriteTest.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index 5244d2b..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayFavoritesDataTest.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index 06abd36..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayInfoTest.java +++ /dev/null @@ -1,226 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.threeten.bp.OffsetDateTime; -import org.junit.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 - } - -} 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 deleted file mode 100644 index 58b33b1..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayInfoUpdateTest.java +++ /dev/null @@ -1,121 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index 9f9221e..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayMetadataEntryTest.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index f070b89..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayMetadataTest.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index e742bca..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ArraySampleTest.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index dde5549..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ArraySchemaTest.java +++ /dev/null @@ -1,121 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index f2a8187..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ArraySharingTest.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index cd07588..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskBrowserSidebarTest.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index 4878577..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskDataTest.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index e91a6d0..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskLogTest.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index 0c1ef1f..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskStatusTest.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 io.swagger.annotations.ApiModel; -import com.google.gson.annotations.SerializedName; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.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 deleted file mode 100644 index 189ba33..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskTest.java +++ /dev/null @@ -1,250 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.threeten.bp.OffsetDateTime; -import org.junit.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 '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 '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 - } - -} 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 deleted file mode 100644 index fe54883..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskTypeTest.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 io.swagger.annotations.ApiModel; -import com.google.gson.annotations.SerializedName; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.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 deleted file mode 100644 index 24b3a45..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTest.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index 5f93220..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ArrayTypeTest.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 io.swagger.annotations.ApiModel; -import com.google.gson.annotations.SerializedName; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.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/AttributeBufferHeaderTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/AttributeBufferHeaderTest.java deleted file mode 100644 index f1d0f05..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/AttributeBufferHeaderTest.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index d2b0587..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/AttributeBufferSizeTest.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index e95e535..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/AttributeTest.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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/DatatypeTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/DatatypeTest.java deleted file mode 100644 index d6b7030..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/DatatypeTest.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 io.swagger.annotations.ApiModel; -import com.google.gson.annotations.SerializedName; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.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 deleted file mode 100644 index 76ed3bf..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/DimensionCoordinateTest.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index 5ec87a8..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/DimensionTest.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index a39c457..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/DimensionTileExtentTest.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index 494e73e..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/DomainArrayTest.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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/DomainTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/DomainTest.java deleted file mode 100644 index f6449e8..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/DomainTest.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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/ErrorTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/ErrorTest.java deleted file mode 100644 index ad8f294..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ErrorTest.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index d822b14..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/FileCreateTest.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index 938cd65..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/FileCreatedTest.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index 08bf48f..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/FileExportTest.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index 8644485..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/FileExportedTest.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index 613c275..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/FilePropertyNameTest.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 io.swagger.annotations.ApiModel; -import com.google.gson.annotations.SerializedName; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.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 deleted file mode 100644 index e5bc335..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/FileTypeTest.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 io.swagger.annotations.ApiModel; -import com.google.gson.annotations.SerializedName; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.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 deleted file mode 100644 index 27ad929..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/FileUploadedTest.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index c79dd0e..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/FilterDataTest.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index f881a98..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/FilterOptionTest.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 io.swagger.annotations.ApiModel; -import com.google.gson.annotations.SerializedName; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.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 deleted file mode 100644 index ba14a5a..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/FilterPipelineTest.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index dd323f3..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/FilterTest.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index 3258641..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/FilterTypeTest.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 io.swagger.annotations.ApiModel; -import com.google.gson.annotations.SerializedName; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.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/GenericUDFTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/GenericUDFTest.java deleted file mode 100644 index 6acf372..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/GenericUDFTest.java +++ /dev/null @@ -1,161 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 '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 deleted file mode 100644 index 5e81c52..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/GetTiledbStats200ResponseTest.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 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 deleted file mode 100644 index 87f8258..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/GroupActionsTest.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 io.swagger.annotations.ApiModel; -import com.google.gson.annotations.SerializedName; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.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 deleted file mode 100644 index 2c8f8c5..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/GroupBrowserDataTest.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index 984fcca..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/GroupBrowserFilterDataTest.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 - } - -} 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 deleted file mode 100644 index f7e5c34..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/GroupChangesTest.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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/GroupContentsFilterDataTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/GroupContentsFilterDataTest.java deleted file mode 100644 index c437022..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/GroupContentsFilterDataTest.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index 7f7c024..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/GroupContentsTest.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index 9c5100a..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/GroupCreateTest.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index b9d256c..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/GroupEntryTest.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 '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 deleted file mode 100644 index 25aad0a..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/GroupInfoTest.java +++ /dev/null @@ -1,178 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.threeten.bp.OffsetDateTime; -import org.junit.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 '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 - } - -} 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 deleted file mode 100644 index ddf1782..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/GroupMemberAssetTypeTest.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 io.swagger.annotations.ApiModel; -import com.google.gson.annotations.SerializedName; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.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 deleted file mode 100644 index 233cab9..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/GroupMemberTest.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index bce5317..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/GroupMemberTypeTest.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 io.swagger.annotations.ApiModel; -import com.google.gson.annotations.SerializedName; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.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 deleted file mode 100644 index a13cad7..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/GroupRegisterTest.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index f0df325..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/GroupSharingRequestTest.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index 470b551..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/GroupSharingTest.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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/GroupUpdateTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/GroupUpdateTest.java deleted file mode 100644 index c443a54..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/GroupUpdateTest.java +++ /dev/null @@ -1,89 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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/InlineObjectTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/InlineObjectTest.java deleted file mode 100644 index 471db17..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/InlineObjectTest.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.Test; - - -/** - * Model tests for InlineObject - */ -public class InlineObjectTest { - private final InlineObject model = new InlineObject(); - - /** - * Model tests for InlineObject - */ - @Test - public void testInlineObject() { - // TODO: test InlineObject - } - - /** - * Test the property 'password' - */ - @Test - public void passwordTest() { - // TODO: test password - } - -} diff --git a/src/test/java/io/tiledb/cloud/rest_api/model/InlineResponse200Test.java b/src/test/java/io/tiledb/cloud/rest_api/model/InlineResponse200Test.java deleted file mode 100644 index dd46e6e..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/InlineResponse200Test.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.Test; - - -/** - * Model tests for InlineResponse200 - */ -public class InlineResponse200Test { - private final InlineResponse200 model = new InlineResponse200(); - - /** - * Model tests for InlineResponse200 - */ - @Test - public void testInlineResponse200() { - // TODO: test InlineResponse200 - } - - /** - * Test the property 'stats' - */ - @Test - public void statsTest() { - // TODO: test stats - } - -} 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 deleted file mode 100644 index f8d9ac8..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/InvitationArrayShareEmailTest.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index 2543f11..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/InvitationDataTest.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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/InvitationOrganizationJoinEmailTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/InvitationOrganizationJoinEmailTest.java deleted file mode 100644 index 482a676..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/InvitationOrganizationJoinEmailTest.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index af1b919..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/InvitationStatusTest.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 io.swagger.annotations.ApiModel; -import com.google.gson.annotations.SerializedName; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.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 deleted file mode 100644 index 8d1fb3c..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/InvitationTest.java +++ /dev/null @@ -1,154 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.threeten.bp.OffsetDateTime; -import org.junit.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 '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 'arrayUuid' - */ - @Test - public void arrayUuidTest() { - // TODO: test arrayUuid - } - - /** - * 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 '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 - } - -} 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 deleted file mode 100644 index d7a1fbb..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/InvitationTypeTest.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 io.swagger.annotations.ApiModel; -import com.google.gson.annotations.SerializedName; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.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 deleted file mode 100644 index 8984db3..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/LastAccessedArrayTest.java +++ /dev/null @@ -1,73 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index 312a1ea..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/LayoutTest.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 io.swagger.annotations.ApiModel; -import com.google.gson.annotations.SerializedName; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.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/MLModelFavoriteTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/MLModelFavoriteTest.java deleted file mode 100644 index 5c008bb..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/MLModelFavoriteTest.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index 0d61eff..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/MLModelFavoritesDataTest.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index cc836bf..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/MaxBufferSizesTest.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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/MultiArrayUDFTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/MultiArrayUDFTest.java deleted file mode 100644 index 4c9411e..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/MultiArrayUDFTest.java +++ /dev/null @@ -1,201 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 '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 deleted file mode 100644 index 540bca6..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/NamespaceActionsTest.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 io.swagger.annotations.ApiModel; -import com.google.gson.annotations.SerializedName; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.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 deleted file mode 100644 index 75aa42f..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/NonEmptyDomainTest.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index 3a401ca..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/NotebookCopiedTest.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index 9e28c22..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/NotebookCopyTest.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index 5984939..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/NotebookFavoriteTest.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index 4464908..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/NotebookFavoritesDataTest.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index 5663314..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/NotebookStatusTest.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 'memoryUsage' - */ - @Test - public void memoryUsageTest() { - // TODO: test memoryUsage - } - - /** - * Test the property 'memoryLimit' - */ - @Test - public void memoryLimitTest() { - // TODO: test memoryLimit - } - - /** - * Test the property 'cpuCount' - */ - @Test - public void cpuCountTest() { - // TODO: test cpuCount - } - -} 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 deleted file mode 100644 index 182c48b..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/OrganizationRolesTest.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 io.swagger.annotations.ApiModel; -import com.google.gson.annotations.SerializedName; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.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 deleted file mode 100644 index baeff41..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/OrganizationTest.java +++ /dev/null @@ -1,154 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.threeten.bp.OffsetDateTime; -import org.junit.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 'stripeConnect' - */ - @Test - public void stripeConnectTest() { - // TODO: test stripeConnect - } - -} 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 deleted file mode 100644 index f371b77..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/OrganizationUserTest.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 '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 deleted file mode 100644 index 1aad219..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/PaginationMetadataTest.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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/PricingAggregateUsageTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/PricingAggregateUsageTest.java deleted file mode 100644 index 67fb035..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/PricingAggregateUsageTest.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 io.swagger.annotations.ApiModel; -import com.google.gson.annotations.SerializedName; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.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 deleted file mode 100644 index 7ff8514..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/PricingCurrencyTest.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 io.swagger.annotations.ApiModel; -import com.google.gson.annotations.SerializedName; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.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 deleted file mode 100644 index 53d2fd6..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/PricingIntervalTest.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 io.swagger.annotations.ApiModel; -import com.google.gson.annotations.SerializedName; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.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 deleted file mode 100644 index 09d1514..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/PricingTest.java +++ /dev/null @@ -1,137 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index 4efc0a0..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/PricingTypeTest.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 io.swagger.annotations.ApiModel; -import com.google.gson.annotations.SerializedName; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.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 deleted file mode 100644 index 6d5f724..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/PricingUnitLabelTest.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 io.swagger.annotations.ApiModel; -import com.google.gson.annotations.SerializedName; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.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 deleted file mode 100644 index aeae971..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/PublicShareFilterTest.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 io.swagger.annotations.ApiModel; -import com.google.gson.annotations.SerializedName; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.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 deleted file mode 100644 index 5c97ecc..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/QueryJsonTest.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index 0e18e02..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/QueryRangesTest.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index 31446a2..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/QueryReaderTest.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index 53a0e47..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/QueryTest.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index d74eb04..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/QuerystatusTest.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 io.swagger.annotations.ApiModel; -import com.google.gson.annotations.SerializedName; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.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 deleted file mode 100644 index 1066492..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/QuerytypeTest.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 io.swagger.annotations.ApiModel; -import com.google.gson.annotations.SerializedName; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.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 deleted file mode 100644 index c2a4cbd..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ReadStateTest.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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/RegisteredTaskGraphNodeTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/RegisteredTaskGraphNodeTest.java deleted file mode 100644 index 291e683..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/RegisteredTaskGraphNodeTest.java +++ /dev/null @@ -1,89 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.Test; - - -/** - * Model tests for RegisteredTaskGraphNode - */ -public class RegisteredTaskGraphNodeTest { - private final RegisteredTaskGraphNode model = new RegisteredTaskGraphNode(); - - /** - * Model tests for RegisteredTaskGraphNode - */ - @Test - public void testRegisteredTaskGraphNode() { - // TODO: test RegisteredTaskGraphNode - } - - /** - * 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 - } - -} 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 deleted file mode 100644 index ed773e5..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/RegisteredTaskGraphTest.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index e28fc5b..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ResetUserPasswordRequestTest.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 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 deleted file mode 100644 index ad7e0b0..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/ResultFormatTest.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 io.swagger.annotations.ApiModel; -import com.google.gson.annotations.SerializedName; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.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/SQLParametersTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/SQLParametersTest.java deleted file mode 100644 index b0fc999..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/SQLParametersTest.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 '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/SSOProviderTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/SSOProviderTest.java deleted file mode 100644 index 03b58ae..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/SSOProviderTest.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 io.swagger.annotations.ApiModel; -import com.google.gson.annotations.SerializedName; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.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/SubarrayPartitionerCurrentTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerCurrentTest.java deleted file mode 100644 index 749612a..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerCurrentTest.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index c043d93..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerStateTest.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index 3393777..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerTest.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index ca4c466..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/SubarrayRangesTest.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index 0d20b20..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/SubarrayTest.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index 3cc6534..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/SubscriptionTest.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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/TGInputNodeDataTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TGInputNodeDataTest.java deleted file mode 100644 index aa77b97..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/TGInputNodeDataTest.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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/TGSQLNodeDataTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TGSQLNodeDataTest.java deleted file mode 100644 index cf2640e..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/TGSQLNodeDataTest.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 - } - -} 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 deleted file mode 100644 index ca98db5..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/TGUDFArgumentTest.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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/TGUDFEnvironmentTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironmentTest.java deleted file mode 100644 index 61cd0e1..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironmentTest.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 'resourceClass' - */ - @Test - public void resourceClassTest() { - // TODO: test resourceClass - } - -} 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 deleted file mode 100644 index faa1330..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/TGUDFNodeDataTest.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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/TaskGraphActionsTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphActionsTest.java deleted file mode 100644 index 497c93a..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphActionsTest.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 io.swagger.annotations.ApiModel; -import com.google.gson.annotations.SerializedName; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.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 deleted file mode 100644 index d14a656..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphClientNodeStatusTest.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index 1f4fcab..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogRunLocationTest.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 io.swagger.annotations.ApiModel; -import com.google.gson.annotations.SerializedName; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.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 deleted file mode 100644 index 566ba4d..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogStatusTest.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 io.swagger.annotations.ApiModel; -import com.google.gson.annotations.SerializedName; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.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 deleted file mode 100644 index 488cbe2..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogTest.java +++ /dev/null @@ -1,146 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.threeten.bp.OffsetDateTime; -import org.junit.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 - } - -} 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 deleted file mode 100644 index 75bc393..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogsDataTest.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index 83927dc..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphNodeMetadataTest.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 'executions' - */ - @Test - public void executionsTest() { - // TODO: test executions - } - -} 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 deleted file mode 100644 index 0526e06..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphSharingTest.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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/TileDBConfigTest.java b/src/test/java/io/tiledb/cloud/rest_api/model/TileDBConfigTest.java deleted file mode 100644 index 696ee23..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/TileDBConfigTest.java +++ /dev/null @@ -1,41 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 'configs' - */ - @Test - public void configsTest() { - // TODO: test configs - } - -} 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 deleted file mode 100644 index 8f2ac80..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/TokenRequestTest.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.threeten.bp.OffsetDateTime; -import org.junit.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 deleted file mode 100644 index 36e4202..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/TokenScopeTest.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 io.swagger.annotations.ApiModel; -import com.google.gson.annotations.SerializedName; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.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 deleted file mode 100644 index 70bcbd7..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/TokenTest.java +++ /dev/null @@ -1,74 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.threeten.bp.OffsetDateTime; -import org.junit.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 deleted file mode 100644 index f8268db..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/UDFActionsTest.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 io.swagger.annotations.ApiModel; -import com.google.gson.annotations.SerializedName; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.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 deleted file mode 100644 index a5653ea..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/UDFArrayDetailsTest.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index a95b929..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/UDFCopiedTest.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index 579f618..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/UDFCopyTest.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index 8a40ded..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/UDFFavoriteTest.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index 540ab41..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/UDFFavoritesDataTest.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index 4d244e1..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/UDFImageTest.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index 758eeb8..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/UDFImageVersionTest.java +++ /dev/null @@ -1,89 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index 777b8cb..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/UDFInfoTest.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index d0f5950..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/UDFInfoUpdateTest.java +++ /dev/null @@ -1,121 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index 4c1d40e..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/UDFLanguageTest.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 io.swagger.annotations.ApiModel; -import com.google.gson.annotations.SerializedName; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.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 deleted file mode 100644 index 47375b5..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/UDFSharingTest.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index a60316e..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/UDFSubarrayRangeTest.java +++ /dev/null @@ -1,57 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index 580e076..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/UDFSubarrayTest.java +++ /dev/null @@ -1,49 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 deleted file mode 100644 index 5abdf46..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/UDFTypeTest.java +++ /dev/null @@ -1,35 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 io.swagger.annotations.ApiModel; -import com.google.gson.annotations.SerializedName; -import org.junit.Assert; -import org.junit.Ignore; -import org.junit.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 deleted file mode 100644 index 0af97d4..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/UserTest.java +++ /dev/null @@ -1,178 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.threeten.bp.OffsetDateTime; -import org.junit.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 'lastActivityDate' - */ - @Test - public void lastActivityDateTest() { - // TODO: test lastActivityDate - } - - /** - * 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 'defaultNamespaceCharged' - */ - @Test - public void defaultNamespaceChargedTest() { - // TODO: test defaultNamespaceCharged - } - -} 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 deleted file mode 100644 index eebb963..0000000 --- a/src/test/java/io/tiledb/cloud/rest_api/model/WriterTest.java +++ /dev/null @@ -1,65 +0,0 @@ -/* - * TileDB Storage Platform API - * TileDB Storage Platform REST API - * - * The version of the OpenAPI document: 2.2.19 - * - * - * NOTE: This class is auto 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 org.junit.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 - } - -}