diff --git a/.gitignore b/.gitignore index bfb444f..a530464 100644 --- a/.gitignore +++ b/.gitignore @@ -19,7 +19,3 @@ hs_err_pid* target .gradle build - -# idea files -.idea -.bsp diff --git a/.openapi-generator-ignore b/.openapi-generator-ignore index 7484ee5..cabb9a8 100644 --- a/.openapi-generator-ignore +++ b/.openapi-generator-ignore @@ -21,3 +21,8 @@ #docs/*.md # Then explicitly reverse the ignore rule for a single file: #!docs/README.md + + +build.gradle +src/main/java/org/openapitools/client/model/FilterType.java +README.md diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 6cce9bf..2b98d07 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -1,9 +1,8 @@ +.github/workflows/maven.yml .gitignore -.openapi-generator-ignore .travis.yml README.md api/openapi.yaml -build.gradle build.sbt docs/AWSAccessCredentials.md docs/ActivityEventType.md @@ -56,6 +55,7 @@ docs/FilterOption.md docs/FilterPipeline.md docs/FilterType.md docs/GenericUDF.md +docs/GetTiledbStats200Response.md docs/GroupActions.md docs/GroupBrowserData.md docs/GroupBrowserFilterData.md @@ -73,8 +73,6 @@ docs/GroupSharing.md docs/GroupSharingRequest.md docs/GroupUpdate.md docs/GroupsApi.md -docs/InlineObject.md -docs/InlineResponse200.md docs/Invitation.md docs/InvitationApi.md docs/InvitationArrayShareEmail.md @@ -120,6 +118,7 @@ docs/ReadState.md docs/RegisteredTaskGraph.md docs/RegisteredTaskGraphNode.md docs/RegisteredTaskGraphsApi.md +docs/ResetUserPasswordRequest.md docs/ResultFormat.md docs/SQLParameters.md docs/SSOProvider.md @@ -217,6 +216,7 @@ src/main/java/org/openapitools/client/auth/OAuthFlow.java src/main/java/org/openapitools/client/auth/OAuthOkHttpClient.java src/main/java/org/openapitools/client/auth/RetryingOAuth.java src/main/java/org/openapitools/client/model/AWSAccessCredentials.java +src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java src/main/java/org/openapitools/client/model/ActivityEventType.java src/main/java/org/openapitools/client/model/Array.java src/main/java/org/openapitools/client/model/ArrayActions.java @@ -261,8 +261,8 @@ 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/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/GroupBrowserData.java src/main/java/org/openapitools/client/model/GroupBrowserFilterData.java @@ -279,8 +279,6 @@ 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/GroupUpdate.java -src/main/java/org/openapitools/client/model/InlineObject.java -src/main/java/org/openapitools/client/model/InlineResponse200.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 @@ -320,6 +318,7 @@ 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/SQLParameters.java src/main/java/org/openapitools/client/model/SSOProvider.java @@ -363,167 +362,3 @@ 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/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/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/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/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/DomainTest.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/GenericUDFTest.java -src/test/java/org/openapitools/client/model/GroupActionsTest.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/GroupUpdateTest.java -src/test/java/org/openapitools/client/model/InlineObjectTest.java -src/test/java/org/openapitools/client/model/InlineResponse200Test.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/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/RegisteredTaskGraphNodeTest.java -src/test/java/org/openapitools/client/model/RegisteredTaskGraphTest.java -src/test/java/org/openapitools/client/model/ResultFormatTest.java -src/test/java/org/openapitools/client/model/SQLParametersTest.java -src/test/java/org/openapitools/client/model/SSOProviderTest.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/TGInputNodeDataTest.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/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/TaskGraphSharingTest.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 1e20ec3..6d54bbd 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -5.4.0 \ No newline at end of file +6.0.1 \ No newline at end of file diff --git a/README.md b/README.md index 04c788d..36f2056 100644 --- a/README.md +++ b/README.md @@ -14,309 +14,309 @@ All URIs are relative to */v1* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*ArrayApi* | [**arrayActivityLog**](docs/ArrayApi.md#arrayActivityLog) | **GET** /arrays/{namespace}/{array}/activity | -*ArrayApi* | [**arraysBrowserOwnedGet**](docs/ArrayApi.md#arraysBrowserOwnedGet) | **GET** /arrays/browser/owned | -*ArrayApi* | [**arraysBrowserOwnedSidebarGet**](docs/ArrayApi.md#arraysBrowserOwnedSidebarGet) | **GET** /arrays/browser/owned/sidebar | -*ArrayApi* | [**arraysBrowserPublicGet**](docs/ArrayApi.md#arraysBrowserPublicGet) | **GET** /arrays/browser/public | -*ArrayApi* | [**arraysBrowserPublicSidebarGet**](docs/ArrayApi.md#arraysBrowserPublicSidebarGet) | **GET** /arrays/browser/public/sidebar | -*ArrayApi* | [**arraysBrowserSharedGet**](docs/ArrayApi.md#arraysBrowserSharedGet) | **GET** /arrays/browser/shared | -*ArrayApi* | [**arraysBrowserSharedSidebarGet**](docs/ArrayApi.md#arraysBrowserSharedSidebarGet) | **GET** /arrays/browser/shared/sidebar | -*ArrayApi* | [**arraysNamespaceArrayEndTimestampsGet**](docs/ArrayApi.md#arraysNamespaceArrayEndTimestampsGet) | **GET** /arrays/{namespace}/{array}/end_timestamps | -*ArrayApi* | [**consolidateArray**](docs/ArrayApi.md#consolidateArray) | **POST** /arrays/{namespace}/{array}/consolidate | -*ArrayApi* | [**createArray**](docs/ArrayApi.md#createArray) | **POST** /arrays/{namespace}/{array} | -*ArrayApi* | [**deleteArray**](docs/ArrayApi.md#deleteArray) | **DELETE** /arrays/{namespace}/{array} | -*ArrayApi* | [**deregisterArray**](docs/ArrayApi.md#deregisterArray) | **DELETE** /arrays/{namespace}/{array}/deregister | -*ArrayApi* | [**getActivityLogById**](docs/ArrayApi.md#getActivityLogById) | **GET** /arrays/{namespace}/{array}/activity/{id} | -*ArrayApi* | [**getAllArrayMetadata**](docs/ArrayApi.md#getAllArrayMetadata) | **GET** /arrays | -*ArrayApi* | [**getArray**](docs/ArrayApi.md#getArray) | **GET** /arrays/{namespace}/{array} | -*ArrayApi* | [**getArrayMaxBufferSizes**](docs/ArrayApi.md#getArrayMaxBufferSizes) | **GET** /arrays/{namespace}/{array}/max_buffer_sizes | -*ArrayApi* | [**getArrayMetaDataJson**](docs/ArrayApi.md#getArrayMetaDataJson) | **GET** /arrays/{namespace}/{array}/metadata_json | -*ArrayApi* | [**getArrayMetadata**](docs/ArrayApi.md#getArrayMetadata) | **GET** /arrays/{namespace}/{array}/metadata | -*ArrayApi* | [**getArrayMetadataCapnp**](docs/ArrayApi.md#getArrayMetadataCapnp) | **GET** /arrays/{namespace}/{array}/array_metadata | -*ArrayApi* | [**getArrayNonEmptyDomain**](docs/ArrayApi.md#getArrayNonEmptyDomain) | **GET** /arrays/{namespace}/{array}/non_empty_domain | -*ArrayApi* | [**getArrayNonEmptyDomainJson**](docs/ArrayApi.md#getArrayNonEmptyDomainJson) | **GET** /arrays/{namespace}/{array}/non_empty_domain_json | -*ArrayApi* | [**getArraySampleData**](docs/ArrayApi.md#getArraySampleData) | **GET** /arrays/{namespace}/{array}/sample | -*ArrayApi* | [**getArraySharingPolicies**](docs/ArrayApi.md#getArraySharingPolicies) | **GET** /arrays/{namespace}/{array}/share | -*ArrayApi* | [**getArraysInNamespace**](docs/ArrayApi.md#getArraysInNamespace) | **GET** /arrays/{namespace} | -*ArrayApi* | [**getFragmentEndTimestamp**](docs/ArrayApi.md#getFragmentEndTimestamp) | **GET** /arrays/{namespace}/{array}/fragment_end_timestamp | -*ArrayApi* | [**getLastAccessedArrays**](docs/ArrayApi.md#getLastAccessedArrays) | **GET** /arrays/last_accessed | -*ArrayApi* | [**registerArray**](docs/ArrayApi.md#registerArray) | **POST** /arrays/{namespace}/{array}/register | -*ArrayApi* | [**shareArray**](docs/ArrayApi.md#shareArray) | **PATCH** /arrays/{namespace}/{array}/share | -*ArrayApi* | [**updateArrayMetadata**](docs/ArrayApi.md#updateArrayMetadata) | **PATCH** /arrays/{namespace}/{array}/metadata | -*ArrayApi* | [**updateArrayMetadataCapnp**](docs/ArrayApi.md#updateArrayMetadataCapnp) | **POST** /arrays/{namespace}/{array}/array_metadata | -*ArrayApi* | [**vacuumArray**](docs/ArrayApi.md#vacuumArray) | **POST** /arrays/{namespace}/{array}/vacuum | -*ArrayTasksApi* | [**getArrayTasksSidebar**](docs/ArrayTasksApi.md#getArrayTasksSidebar) | **GET** /tasks/sidebar | -*FavoritesApi* | [**addArrayFavorite**](docs/FavoritesApi.md#addArrayFavorite) | **POST** /arrays/favorites/{namespace}/{name} | -*FavoritesApi* | [**addMLModelFavorite**](docs/FavoritesApi.md#addMLModelFavorite) | **POST** /ml_models/favorites/{namespace}/{name} | -*FavoritesApi* | [**addNotebookFavorite**](docs/FavoritesApi.md#addNotebookFavorite) | **POST** /notebooks/favorites/{namespace}/{name} | -*FavoritesApi* | [**addUDFFavorite**](docs/FavoritesApi.md#addUDFFavorite) | **POST** /udfs/favorites/{namespace}/{name} | -*FavoritesApi* | [**deleteArrayFavorite**](docs/FavoritesApi.md#deleteArrayFavorite) | **DELETE** /arrays/favorites/{namespace}/{name} | -*FavoritesApi* | [**deleteMLModelFavorite**](docs/FavoritesApi.md#deleteMLModelFavorite) | **DELETE** /ml_models/favorites/{namespace}/{name} | -*FavoritesApi* | [**deleteNotebookFavorite**](docs/FavoritesApi.md#deleteNotebookFavorite) | **DELETE** /notebooks/favorites/{namespace}/{name} | -*FavoritesApi* | [**deleteUDFFavorite**](docs/FavoritesApi.md#deleteUDFFavorite) | **DELETE** /udfs/favorites/{namespace}/{name} | -*FavoritesApi* | [**getArrayFavorite**](docs/FavoritesApi.md#getArrayFavorite) | **GET** /arrays/favorites/{namespace}/{name} | -*FavoritesApi* | [**getMLModelFavorite**](docs/FavoritesApi.md#getMLModelFavorite) | **GET** /ml_models/favorites/{namespace}/{name} | -*FavoritesApi* | [**getNotebookFavorite**](docs/FavoritesApi.md#getNotebookFavorite) | **GET** /notebooks/favorites/{namespace}/{name} | -*FavoritesApi* | [**getUDFFavorite**](docs/FavoritesApi.md#getUDFFavorite) | **GET** /udfs/favorites/{namespace}/{name} | -*FavoritesApi* | [**listArrayFavorites**](docs/FavoritesApi.md#listArrayFavorites) | **GET** /arrays/favorites | -*FavoritesApi* | [**listArrayFavoritesUUIDs**](docs/FavoritesApi.md#listArrayFavoritesUUIDs) | **GET** /arrays/favorites/uuids | -*FavoritesApi* | [**listMLModelFavorites**](docs/FavoritesApi.md#listMLModelFavorites) | **GET** /ml_models/favorites | -*FavoritesApi* | [**listMLModelFavoritesUUIDs**](docs/FavoritesApi.md#listMLModelFavoritesUUIDs) | **GET** /ml_models/favorites/uuids | -*FavoritesApi* | [**listNotebookFavorites**](docs/FavoritesApi.md#listNotebookFavorites) | **GET** /notebooks/favorites | -*FavoritesApi* | [**listNotebookFavoritesUUIDs**](docs/FavoritesApi.md#listNotebookFavoritesUUIDs) | **GET** /notebooks/favorites/uuids | -*FavoritesApi* | [**listUDFFavorites**](docs/FavoritesApi.md#listUDFFavorites) | **GET** /udfs/favorites | -*FavoritesApi* | [**listUDFFavoritesUUIDs**](docs/FavoritesApi.md#listUDFFavoritesUUIDs) | **GET** /udfs/favorites/uuids | -*FilesApi* | [**handleCreateFile**](docs/FilesApi.md#handleCreateFile) | **POST** /files/{namespace} | -*FilesApi* | [**handleExportFile**](docs/FilesApi.md#handleExportFile) | **POST** /files/{namespace}/{file}/export | -*FilesApi* | [**handleUploadFile**](docs/FilesApi.md#handleUploadFile) | **POST** /files/{namespace}/upload | -*GroupsApi* | [**changeGroupContents**](docs/GroupsApi.md#changeGroupContents) | **POST** /groups/{group_namespace}/{group_name}/contents | -*GroupsApi* | [**createGroup**](docs/GroupsApi.md#createGroup) | **POST** /groups/{namespace}/create | -*GroupsApi* | [**deleteGroup**](docs/GroupsApi.md#deleteGroup) | **DELETE** /groups/{group_namespace}/{group_name} | -*GroupsApi* | [**getGroup**](docs/GroupsApi.md#getGroup) | **GET** /groups/{group_namespace}/{group_name} | -*GroupsApi* | [**getGroupContents**](docs/GroupsApi.md#getGroupContents) | **GET** /groups/{group_namespace}/{group_name}/contents | -*GroupsApi* | [**getGroupSharingPolicies**](docs/GroupsApi.md#getGroupSharingPolicies) | **GET** /groups/{group_namespace}/{group_name}/share | -*GroupsApi* | [**groupsBrowserOwnedFiltersGet**](docs/GroupsApi.md#groupsBrowserOwnedFiltersGet) | **GET** /groups/browser/owned/filters | -*GroupsApi* | [**groupsBrowserPublicFiltersGet**](docs/GroupsApi.md#groupsBrowserPublicFiltersGet) | **GET** /groups/browser/public/filters | -*GroupsApi* | [**groupsBrowserSharedFiltersGet**](docs/GroupsApi.md#groupsBrowserSharedFiltersGet) | **GET** /groups/browser/shared/filters | -*GroupsApi* | [**groupsGroupNamespaceGroupNameContentsFiltersGet**](docs/GroupsApi.md#groupsGroupNamespaceGroupNameContentsFiltersGet) | **GET** /groups/{group_namespace}/{group_name}/contents/filters | -*GroupsApi* | [**listOwnedGroups**](docs/GroupsApi.md#listOwnedGroups) | **GET** /groups/browser/owned | -*GroupsApi* | [**listPublicGroups**](docs/GroupsApi.md#listPublicGroups) | **GET** /groups/browser/public | -*GroupsApi* | [**listSharedGroups**](docs/GroupsApi.md#listSharedGroups) | **GET** /groups/browser/shared | -*GroupsApi* | [**registerGroup**](docs/GroupsApi.md#registerGroup) | **POST** /groups/{namespace}/{array}/register | -*GroupsApi* | [**shareGroup**](docs/GroupsApi.md#shareGroup) | **PATCH** /groups/{group_namespace}/{group_name}/share | -*GroupsApi* | [**updateGroup**](docs/GroupsApi.md#updateGroup) | **PATCH** /groups/{group_namespace}/{group_name} | -*InvitationApi* | [**acceptInvitation**](docs/InvitationApi.md#acceptInvitation) | **POST** /invitations/{invitation} | -*InvitationApi* | [**cancelJoinOrganization**](docs/InvitationApi.md#cancelJoinOrganization) | **DELETE** /invitations/{invitation}/{organization}/join | -*InvitationApi* | [**cancelShareArrayByInvite**](docs/InvitationApi.md#cancelShareArrayByInvite) | **DELETE** /invitations/{invitation}/{namespace}/{array}/share | -*InvitationApi* | [**fetchInvitations**](docs/InvitationApi.md#fetchInvitations) | **GET** /invitations | -*InvitationApi* | [**joinOrganization**](docs/InvitationApi.md#joinOrganization) | **POST** /invitations/{organization}/join | -*InvitationApi* | [**shareArrayByInvite**](docs/InvitationApi.md#shareArrayByInvite) | **POST** /invitations/{namespace}/{array}/share | -*NotebookApi* | [**getNotebookServerStatus**](docs/NotebookApi.md#getNotebookServerStatus) | **GET** /notebooks/server/{namespace}/status | -*NotebookApi* | [**handleCopyNotebook**](docs/NotebookApi.md#handleCopyNotebook) | **POST** /notebooks/{namespace}/{array}/copy | -*NotebookApi* | [**handleUploadNotebook**](docs/NotebookApi.md#handleUploadNotebook) | **POST** /notebooks/{namespace}/upload | -*NotebookApi* | [**shutdownNotebookServer**](docs/NotebookApi.md#shutdownNotebookServer) | **DELETE** /notebooks/server/{namespace} | -*NotebookApi* | [**updateNotebookName**](docs/NotebookApi.md#updateNotebookName) | **PATCH** /notebooks/{namespace}/{array}/rename | -*NotebooksApi* | [**notebooksNamespaceArrayEndTimestampsGet**](docs/NotebooksApi.md#notebooksNamespaceArrayEndTimestampsGet) | **GET** /notebooks/{namespace}/{array}/end_timestamps | -*OrganizationApi* | [**addAWSAccessCredentials**](docs/OrganizationApi.md#addAWSAccessCredentials) | **POST** /credentials/{namespace}/aws | -*OrganizationApi* | [**addUserToOrganization**](docs/OrganizationApi.md#addUserToOrganization) | **POST** /organizations/{organization}/user | -*OrganizationApi* | [**checkAWSAccessCredentials**](docs/OrganizationApi.md#checkAWSAccessCredentials) | **GET** /credentials/{namespace}/aws | -*OrganizationApi* | [**checkAWSAccessCredentialsByName**](docs/OrganizationApi.md#checkAWSAccessCredentialsByName) | **GET** /credentials/{namespace}/aws/{name} | -*OrganizationApi* | [**createOrganization**](docs/OrganizationApi.md#createOrganization) | **POST** /organization | -*OrganizationApi* | [**deleteAWSAccessCredentials**](docs/OrganizationApi.md#deleteAWSAccessCredentials) | **DELETE** /credentials/{namespace}/aws/{name} | -*OrganizationApi* | [**deleteOrganization**](docs/OrganizationApi.md#deleteOrganization) | **DELETE** /organizations/{organization} | -*OrganizationApi* | [**deleteUserFromOrganization**](docs/OrganizationApi.md#deleteUserFromOrganization) | **DELETE** /organizations/{organization}/{username} | -*OrganizationApi* | [**getAllOrganizations**](docs/OrganizationApi.md#getAllOrganizations) | **GET** /organizations | -*OrganizationApi* | [**getOrganization**](docs/OrganizationApi.md#getOrganization) | **GET** /organizations/{organization} | -*OrganizationApi* | [**getOrganizationUser**](docs/OrganizationApi.md#getOrganizationUser) | **GET** /organizations/{organization}/{username} | -*OrganizationApi* | [**updateAWSAccessCredentials**](docs/OrganizationApi.md#updateAWSAccessCredentials) | **PATCH** /credentials/{namespace}/aws/{name} | -*OrganizationApi* | [**updateOrganization**](docs/OrganizationApi.md#updateOrganization) | **PATCH** /organizations/{organization} | -*OrganizationApi* | [**updateUserInOrganization**](docs/OrganizationApi.md#updateUserInOrganization) | **PATCH** /organizations/{organization}/{username} | -*QueryApi* | [**finalizeQuery**](docs/QueryApi.md#finalizeQuery) | **POST** /arrays/{namespace}/{array}/query/finalize | -*QueryApi* | [**getEstResultSizes**](docs/QueryApi.md#getEstResultSizes) | **POST** /arrays/{namespace}/{array}/query/est_result_sizes | -*QueryApi* | [**getFile**](docs/QueryApi.md#getFile) | **GET** /arrays/{namespace}/{array}/query/get_file | -*QueryApi* | [**submitQuery**](docs/QueryApi.md#submitQuery) | **POST** /arrays/{namespace}/{array}/query/submit | -*QueryApi* | [**submitQueryJson**](docs/QueryApi.md#submitQueryJson) | **POST** /arrays/{namespace}/{array}/query/submit_query_json | -*RegisteredTaskGraphsApi* | [**deleteRegisteredTaskGraph**](docs/RegisteredTaskGraphsApi.md#deleteRegisteredTaskGraph) | **DELETE** /taskgraphs/{namespace}/registered/{name} | -*RegisteredTaskGraphsApi* | [**getRegisteredTaskGraph**](docs/RegisteredTaskGraphsApi.md#getRegisteredTaskGraph) | **GET** /taskgraphs/{namespace}/registered/{name} | -*RegisteredTaskGraphsApi* | [**getRegisteredTaskGraphSharingPolicies**](docs/RegisteredTaskGraphsApi.md#getRegisteredTaskGraphSharingPolicies) | **GET** /taskgraphs/{namespace}/registered/{name}/share | -*RegisteredTaskGraphsApi* | [**registerRegisteredTaskGraph**](docs/RegisteredTaskGraphsApi.md#registerRegisteredTaskGraph) | **POST** /taskgraphs/{namespace}/registered/{name} | -*RegisteredTaskGraphsApi* | [**shareRegisteredTaskGraph**](docs/RegisteredTaskGraphsApi.md#shareRegisteredTaskGraph) | **PATCH** /taskgraphs/{namespace}/registered/{name}/share | -*RegisteredTaskGraphsApi* | [**updateRegisteredTaskGraph**](docs/RegisteredTaskGraphsApi.md#updateRegisteredTaskGraph) | **PATCH** /taskgraphs/{namespace}/registered/{name} | -*SqlApi* | [**runSQL**](docs/SqlApi.md#runSQL) | **POST** /sql/{namespace} | -*StatsApi* | [**getTiledbStats**](docs/StatsApi.md#getTiledbStats) | **GET** /.stats | -*TaskGraphLogsApi* | [**createTaskGraphLog**](docs/TaskGraphLogsApi.md#createTaskGraphLog) | **POST** /taskgraphs/{namespace}/log | -*TaskGraphLogsApi* | [**getTaskGraphLog**](docs/TaskGraphLogsApi.md#getTaskGraphLog) | **GET** /taskgraphs/{namespace}/logs/{id} | -*TaskGraphLogsApi* | [**listTaskGraphLogs**](docs/TaskGraphLogsApi.md#listTaskGraphLogs) | **GET** /taskgraphs/logs | -*TaskGraphLogsApi* | [**reportClientNode**](docs/TaskGraphLogsApi.md#reportClientNode) | **POST** /taskgraphs/{namespace}/logs/{id}/report_client_node | -*TaskGraphLogsApi* | [**updateTaskGraphLog**](docs/TaskGraphLogsApi.md#updateTaskGraphLog) | **PATCH** /taskgraphs/{namespace}/logs/{id} | -*TasksApi* | [**runSQL**](docs/TasksApi.md#runSQL) | **POST** /sql/{namespace} | -*TasksApi* | [**taskIdGet**](docs/TasksApi.md#taskIdGet) | **GET** /task/{id} | -*TasksApi* | [**taskIdResultGet**](docs/TasksApi.md#taskIdResultGet) | **GET** /task/{id}/result | -*TasksApi* | [**tasksGet**](docs/TasksApi.md#tasksGet) | **GET** /tasks | -*UdfApi* | [**deleteUDFInfo**](docs/UdfApi.md#deleteUDFInfo) | **DELETE** /udf/{namespace}/{name} | -*UdfApi* | [**getUDFInfo**](docs/UdfApi.md#getUDFInfo) | **GET** /udf/{namespace}/{name} | -*UdfApi* | [**getUDFInfoSharingPolicies**](docs/UdfApi.md#getUDFInfoSharingPolicies) | **GET** /udf/{namespace}/{name}/share | -*UdfApi* | [**handleCopyUDF**](docs/UdfApi.md#handleCopyUDF) | **POST** /udf/{namespace}/{name}/copy | -*UdfApi* | [**registerUDFInfo**](docs/UdfApi.md#registerUDFInfo) | **POST** /udf/{namespace}/{name} | -*UdfApi* | [**shareUDFInfo**](docs/UdfApi.md#shareUDFInfo) | **PATCH** /udf/{namespace}/{name}/share | -*UdfApi* | [**submitGenericUDF**](docs/UdfApi.md#submitGenericUDF) | **POST** /udfs/generic/{namespace} | -*UdfApi* | [**submitMultiArrayUDF**](docs/UdfApi.md#submitMultiArrayUDF) | **POST** /udfs/arrays/{namespace} | -*UdfApi* | [**submitUDF**](docs/UdfApi.md#submitUDF) | **POST** /arrays/{namespace}/{array}/udf/submit | -*UdfApi* | [**udfNamespaceArrayEndTimestampsGet**](docs/UdfApi.md#udfNamespaceArrayEndTimestampsGet) | **GET** /udf/{namespace}/{array}/end_timestamps | -*UdfApi* | [**updateUDFInfo**](docs/UdfApi.md#updateUDFInfo) | **PATCH** /udf/{namespace}/{name} | -*UserApi* | [**addAWSAccessCredentials**](docs/UserApi.md#addAWSAccessCredentials) | **POST** /credentials/{namespace}/aws | -*UserApi* | [**addUserToOrganization**](docs/UserApi.md#addUserToOrganization) | **POST** /organizations/{organization}/user | -*UserApi* | [**checkAWSAccessCredentials**](docs/UserApi.md#checkAWSAccessCredentials) | **GET** /credentials/{namespace}/aws | -*UserApi* | [**checkAWSAccessCredentialsByName**](docs/UserApi.md#checkAWSAccessCredentialsByName) | **GET** /credentials/{namespace}/aws/{name} | -*UserApi* | [**confirmEmail**](docs/UserApi.md#confirmEmail) | **POST** /user/confirm_email | -*UserApi* | [**createUser**](docs/UserApi.md#createUser) | **POST** /user | -*UserApi* | [**deleteAWSAccessCredentials**](docs/UserApi.md#deleteAWSAccessCredentials) | **DELETE** /credentials/{namespace}/aws/{name} | -*UserApi* | [**deleteUser**](docs/UserApi.md#deleteUser) | **DELETE** /users/{username} | -*UserApi* | [**deleteUserFromOrganization**](docs/UserApi.md#deleteUserFromOrganization) | **DELETE** /organizations/{organization}/{username} | -*UserApi* | [**getOrganizationUser**](docs/UserApi.md#getOrganizationUser) | **GET** /organizations/{organization}/{username} | -*UserApi* | [**getSession**](docs/UserApi.md#getSession) | **GET** /session | -*UserApi* | [**getTokenScopes**](docs/UserApi.md#getTokenScopes) | **GET** /tokens/scopes | -*UserApi* | [**getUser**](docs/UserApi.md#getUser) | **GET** /user | -*UserApi* | [**getUserWithUsername**](docs/UserApi.md#getUserWithUsername) | **GET** /users/{username} | -*UserApi* | [**requestToken**](docs/UserApi.md#requestToken) | **POST** /token | -*UserApi* | [**resetUserPassword**](docs/UserApi.md#resetUserPassword) | **POST** /user/password_reset | -*UserApi* | [**revokeToken**](docs/UserApi.md#revokeToken) | **DELETE** /tokens/{token} | -*UserApi* | [**tokensGet**](docs/UserApi.md#tokensGet) | **GET** /tokens | -*UserApi* | [**tokensSessionGet**](docs/UserApi.md#tokensSessionGet) | **GET** /tokens/session | -*UserApi* | [**updateAWSAccessCredentials**](docs/UserApi.md#updateAWSAccessCredentials) | **PATCH** /credentials/{namespace}/aws/{name} | -*UserApi* | [**updateUser**](docs/UserApi.md#updateUser) | **PATCH** /users/{username} | -*UserApi* | [**updateUserInOrganization**](docs/UserApi.md#updateUserInOrganization) | **PATCH** /organizations/{organization}/{username} | +*ArrayApi* | [**arrayActivityLog**](docs/ArrayApi.md#arrayActivityLog) | **GET** /arrays/{namespace}/{array}/activity | +*ArrayApi* | [**arraysBrowserOwnedGet**](docs/ArrayApi.md#arraysBrowserOwnedGet) | **GET** /arrays/browser/owned | +*ArrayApi* | [**arraysBrowserOwnedSidebarGet**](docs/ArrayApi.md#arraysBrowserOwnedSidebarGet) | **GET** /arrays/browser/owned/sidebar | +*ArrayApi* | [**arraysBrowserPublicGet**](docs/ArrayApi.md#arraysBrowserPublicGet) | **GET** /arrays/browser/public | +*ArrayApi* | [**arraysBrowserPublicSidebarGet**](docs/ArrayApi.md#arraysBrowserPublicSidebarGet) | **GET** /arrays/browser/public/sidebar | +*ArrayApi* | [**arraysBrowserSharedGet**](docs/ArrayApi.md#arraysBrowserSharedGet) | **GET** /arrays/browser/shared | +*ArrayApi* | [**arraysBrowserSharedSidebarGet**](docs/ArrayApi.md#arraysBrowserSharedSidebarGet) | **GET** /arrays/browser/shared/sidebar | +*ArrayApi* | [**arraysNamespaceArrayEndTimestampsGet**](docs/ArrayApi.md#arraysNamespaceArrayEndTimestampsGet) | **GET** /arrays/{namespace}/{array}/end_timestamps | +*ArrayApi* | [**consolidateArray**](docs/ArrayApi.md#consolidateArray) | **POST** /arrays/{namespace}/{array}/consolidate | +*ArrayApi* | [**createArray**](docs/ArrayApi.md#createArray) | **POST** /arrays/{namespace}/{array} | +*ArrayApi* | [**deleteArray**](docs/ArrayApi.md#deleteArray) | **DELETE** /arrays/{namespace}/{array} | +*ArrayApi* | [**deregisterArray**](docs/ArrayApi.md#deregisterArray) | **DELETE** /arrays/{namespace}/{array}/deregister | +*ArrayApi* | [**getActivityLogById**](docs/ArrayApi.md#getActivityLogById) | **GET** /arrays/{namespace}/{array}/activity/{id} | +*ArrayApi* | [**getAllArrayMetadata**](docs/ArrayApi.md#getAllArrayMetadata) | **GET** /arrays | +*ArrayApi* | [**getArray**](docs/ArrayApi.md#getArray) | **GET** /arrays/{namespace}/{array} | +*ArrayApi* | [**getArrayMaxBufferSizes**](docs/ArrayApi.md#getArrayMaxBufferSizes) | **GET** /arrays/{namespace}/{array}/max_buffer_sizes | +*ArrayApi* | [**getArrayMetaDataJson**](docs/ArrayApi.md#getArrayMetaDataJson) | **GET** /arrays/{namespace}/{array}/metadata_json | +*ArrayApi* | [**getArrayMetadata**](docs/ArrayApi.md#getArrayMetadata) | **GET** /arrays/{namespace}/{array}/metadata | +*ArrayApi* | [**getArrayMetadataCapnp**](docs/ArrayApi.md#getArrayMetadataCapnp) | **GET** /arrays/{namespace}/{array}/array_metadata | +*ArrayApi* | [**getArrayNonEmptyDomain**](docs/ArrayApi.md#getArrayNonEmptyDomain) | **GET** /arrays/{namespace}/{array}/non_empty_domain | +*ArrayApi* | [**getArrayNonEmptyDomainJson**](docs/ArrayApi.md#getArrayNonEmptyDomainJson) | **GET** /arrays/{namespace}/{array}/non_empty_domain_json | +*ArrayApi* | [**getArraySampleData**](docs/ArrayApi.md#getArraySampleData) | **GET** /arrays/{namespace}/{array}/sample | +*ArrayApi* | [**getArraySharingPolicies**](docs/ArrayApi.md#getArraySharingPolicies) | **GET** /arrays/{namespace}/{array}/share | +*ArrayApi* | [**getArraysInNamespace**](docs/ArrayApi.md#getArraysInNamespace) | **GET** /arrays/{namespace} | +*ArrayApi* | [**getFragmentEndTimestamp**](docs/ArrayApi.md#getFragmentEndTimestamp) | **GET** /arrays/{namespace}/{array}/fragment_end_timestamp | +*ArrayApi* | [**getLastAccessedArrays**](docs/ArrayApi.md#getLastAccessedArrays) | **GET** /arrays/last_accessed | +*ArrayApi* | [**registerArray**](docs/ArrayApi.md#registerArray) | **POST** /arrays/{namespace}/{array}/register | +*ArrayApi* | [**shareArray**](docs/ArrayApi.md#shareArray) | **PATCH** /arrays/{namespace}/{array}/share | +*ArrayApi* | [**updateArrayMetadata**](docs/ArrayApi.md#updateArrayMetadata) | **PATCH** /arrays/{namespace}/{array}/metadata | +*ArrayApi* | [**updateArrayMetadataCapnp**](docs/ArrayApi.md#updateArrayMetadataCapnp) | **POST** /arrays/{namespace}/{array}/array_metadata | +*ArrayApi* | [**vacuumArray**](docs/ArrayApi.md#vacuumArray) | **POST** /arrays/{namespace}/{array}/vacuum | +*ArrayTasksApi* | [**getArrayTasksSidebar**](docs/ArrayTasksApi.md#getArrayTasksSidebar) | **GET** /tasks/sidebar | +*FavoritesApi* | [**addArrayFavorite**](docs/FavoritesApi.md#addArrayFavorite) | **POST** /arrays/favorites/{namespace}/{name} | +*FavoritesApi* | [**addMLModelFavorite**](docs/FavoritesApi.md#addMLModelFavorite) | **POST** /ml_models/favorites/{namespace}/{name} | +*FavoritesApi* | [**addNotebookFavorite**](docs/FavoritesApi.md#addNotebookFavorite) | **POST** /notebooks/favorites/{namespace}/{name} | +*FavoritesApi* | [**addUDFFavorite**](docs/FavoritesApi.md#addUDFFavorite) | **POST** /udfs/favorites/{namespace}/{name} | +*FavoritesApi* | [**deleteArrayFavorite**](docs/FavoritesApi.md#deleteArrayFavorite) | **DELETE** /arrays/favorites/{namespace}/{name} | +*FavoritesApi* | [**deleteMLModelFavorite**](docs/FavoritesApi.md#deleteMLModelFavorite) | **DELETE** /ml_models/favorites/{namespace}/{name} | +*FavoritesApi* | [**deleteNotebookFavorite**](docs/FavoritesApi.md#deleteNotebookFavorite) | **DELETE** /notebooks/favorites/{namespace}/{name} | +*FavoritesApi* | [**deleteUDFFavorite**](docs/FavoritesApi.md#deleteUDFFavorite) | **DELETE** /udfs/favorites/{namespace}/{name} | +*FavoritesApi* | [**getArrayFavorite**](docs/FavoritesApi.md#getArrayFavorite) | **GET** /arrays/favorites/{namespace}/{name} | +*FavoritesApi* | [**getMLModelFavorite**](docs/FavoritesApi.md#getMLModelFavorite) | **GET** /ml_models/favorites/{namespace}/{name} | +*FavoritesApi* | [**getNotebookFavorite**](docs/FavoritesApi.md#getNotebookFavorite) | **GET** /notebooks/favorites/{namespace}/{name} | +*FavoritesApi* | [**getUDFFavorite**](docs/FavoritesApi.md#getUDFFavorite) | **GET** /udfs/favorites/{namespace}/{name} | +*FavoritesApi* | [**listArrayFavorites**](docs/FavoritesApi.md#listArrayFavorites) | **GET** /arrays/favorites | +*FavoritesApi* | [**listArrayFavoritesUUIDs**](docs/FavoritesApi.md#listArrayFavoritesUUIDs) | **GET** /arrays/favorites/uuids | +*FavoritesApi* | [**listMLModelFavorites**](docs/FavoritesApi.md#listMLModelFavorites) | **GET** /ml_models/favorites | +*FavoritesApi* | [**listMLModelFavoritesUUIDs**](docs/FavoritesApi.md#listMLModelFavoritesUUIDs) | **GET** /ml_models/favorites/uuids | +*FavoritesApi* | [**listNotebookFavorites**](docs/FavoritesApi.md#listNotebookFavorites) | **GET** /notebooks/favorites | +*FavoritesApi* | [**listNotebookFavoritesUUIDs**](docs/FavoritesApi.md#listNotebookFavoritesUUIDs) | **GET** /notebooks/favorites/uuids | +*FavoritesApi* | [**listUDFFavorites**](docs/FavoritesApi.md#listUDFFavorites) | **GET** /udfs/favorites | +*FavoritesApi* | [**listUDFFavoritesUUIDs**](docs/FavoritesApi.md#listUDFFavoritesUUIDs) | **GET** /udfs/favorites/uuids | +*FilesApi* | [**handleCreateFile**](docs/FilesApi.md#handleCreateFile) | **POST** /files/{namespace} | +*FilesApi* | [**handleExportFile**](docs/FilesApi.md#handleExportFile) | **POST** /files/{namespace}/{file}/export | +*FilesApi* | [**handleUploadFile**](docs/FilesApi.md#handleUploadFile) | **POST** /files/{namespace}/upload | +*GroupsApi* | [**changeGroupContents**](docs/GroupsApi.md#changeGroupContents) | **POST** /groups/{group_namespace}/{group_name}/contents | +*GroupsApi* | [**createGroup**](docs/GroupsApi.md#createGroup) | **POST** /groups/{namespace}/create | +*GroupsApi* | [**deleteGroup**](docs/GroupsApi.md#deleteGroup) | **DELETE** /groups/{group_namespace}/{group_name} | +*GroupsApi* | [**getGroup**](docs/GroupsApi.md#getGroup) | **GET** /groups/{group_namespace}/{group_name} | +*GroupsApi* | [**getGroupContents**](docs/GroupsApi.md#getGroupContents) | **GET** /groups/{group_namespace}/{group_name}/contents | +*GroupsApi* | [**getGroupSharingPolicies**](docs/GroupsApi.md#getGroupSharingPolicies) | **GET** /groups/{group_namespace}/{group_name}/share | +*GroupsApi* | [**groupsBrowserOwnedFiltersGet**](docs/GroupsApi.md#groupsBrowserOwnedFiltersGet) | **GET** /groups/browser/owned/filters | +*GroupsApi* | [**groupsBrowserPublicFiltersGet**](docs/GroupsApi.md#groupsBrowserPublicFiltersGet) | **GET** /groups/browser/public/filters | +*GroupsApi* | [**groupsBrowserSharedFiltersGet**](docs/GroupsApi.md#groupsBrowserSharedFiltersGet) | **GET** /groups/browser/shared/filters | +*GroupsApi* | [**groupsGroupNamespaceGroupNameContentsFiltersGet**](docs/GroupsApi.md#groupsGroupNamespaceGroupNameContentsFiltersGet) | **GET** /groups/{group_namespace}/{group_name}/contents/filters | +*GroupsApi* | [**listOwnedGroups**](docs/GroupsApi.md#listOwnedGroups) | **GET** /groups/browser/owned | +*GroupsApi* | [**listPublicGroups**](docs/GroupsApi.md#listPublicGroups) | **GET** /groups/browser/public | +*GroupsApi* | [**listSharedGroups**](docs/GroupsApi.md#listSharedGroups) | **GET** /groups/browser/shared | +*GroupsApi* | [**registerGroup**](docs/GroupsApi.md#registerGroup) | **POST** /groups/{namespace}/{array}/register | +*GroupsApi* | [**shareGroup**](docs/GroupsApi.md#shareGroup) | **PATCH** /groups/{group_namespace}/{group_name}/share | +*GroupsApi* | [**updateGroup**](docs/GroupsApi.md#updateGroup) | **PATCH** /groups/{group_namespace}/{group_name} | +*InvitationApi* | [**acceptInvitation**](docs/InvitationApi.md#acceptInvitation) | **POST** /invitations/{invitation} | +*InvitationApi* | [**cancelJoinOrganization**](docs/InvitationApi.md#cancelJoinOrganization) | **DELETE** /invitations/{invitation}/{organization}/join | +*InvitationApi* | [**cancelShareArrayByInvite**](docs/InvitationApi.md#cancelShareArrayByInvite) | **DELETE** /invitations/{invitation}/{namespace}/{array}/share | +*InvitationApi* | [**fetchInvitations**](docs/InvitationApi.md#fetchInvitations) | **GET** /invitations | +*InvitationApi* | [**joinOrganization**](docs/InvitationApi.md#joinOrganization) | **POST** /invitations/{organization}/join | +*InvitationApi* | [**shareArrayByInvite**](docs/InvitationApi.md#shareArrayByInvite) | **POST** /invitations/{namespace}/{array}/share | +*NotebookApi* | [**getNotebookServerStatus**](docs/NotebookApi.md#getNotebookServerStatus) | **GET** /notebooks/server/{namespace}/status | +*NotebookApi* | [**handleCopyNotebook**](docs/NotebookApi.md#handleCopyNotebook) | **POST** /notebooks/{namespace}/{array}/copy | +*NotebookApi* | [**handleUploadNotebook**](docs/NotebookApi.md#handleUploadNotebook) | **POST** /notebooks/{namespace}/upload | +*NotebookApi* | [**shutdownNotebookServer**](docs/NotebookApi.md#shutdownNotebookServer) | **DELETE** /notebooks/server/{namespace} | +*NotebookApi* | [**updateNotebookName**](docs/NotebookApi.md#updateNotebookName) | **PATCH** /notebooks/{namespace}/{array}/rename | +*NotebooksApi* | [**notebooksNamespaceArrayEndTimestampsGet**](docs/NotebooksApi.md#notebooksNamespaceArrayEndTimestampsGet) | **GET** /notebooks/{namespace}/{array}/end_timestamps | +*OrganizationApi* | [**addAWSAccessCredentials**](docs/OrganizationApi.md#addAWSAccessCredentials) | **POST** /credentials/{namespace}/aws | +*OrganizationApi* | [**addUserToOrganization**](docs/OrganizationApi.md#addUserToOrganization) | **POST** /organizations/{organization}/user | +*OrganizationApi* | [**checkAWSAccessCredentials**](docs/OrganizationApi.md#checkAWSAccessCredentials) | **GET** /credentials/{namespace}/aws | +*OrganizationApi* | [**checkAWSAccessCredentialsByName**](docs/OrganizationApi.md#checkAWSAccessCredentialsByName) | **GET** /credentials/{namespace}/aws/{name} | +*OrganizationApi* | [**createOrganization**](docs/OrganizationApi.md#createOrganization) | **POST** /organization | +*OrganizationApi* | [**deleteAWSAccessCredentials**](docs/OrganizationApi.md#deleteAWSAccessCredentials) | **DELETE** /credentials/{namespace}/aws/{name} | +*OrganizationApi* | [**deleteOrganization**](docs/OrganizationApi.md#deleteOrganization) | **DELETE** /organizations/{organization} | +*OrganizationApi* | [**deleteUserFromOrganization**](docs/OrganizationApi.md#deleteUserFromOrganization) | **DELETE** /organizations/{organization}/{username} | +*OrganizationApi* | [**getAllOrganizations**](docs/OrganizationApi.md#getAllOrganizations) | **GET** /organizations | +*OrganizationApi* | [**getOrganization**](docs/OrganizationApi.md#getOrganization) | **GET** /organizations/{organization} | +*OrganizationApi* | [**getOrganizationUser**](docs/OrganizationApi.md#getOrganizationUser) | **GET** /organizations/{organization}/{username} | +*OrganizationApi* | [**updateAWSAccessCredentials**](docs/OrganizationApi.md#updateAWSAccessCredentials) | **PATCH** /credentials/{namespace}/aws/{name} | +*OrganizationApi* | [**updateOrganization**](docs/OrganizationApi.md#updateOrganization) | **PATCH** /organizations/{organization} | +*OrganizationApi* | [**updateUserInOrganization**](docs/OrganizationApi.md#updateUserInOrganization) | **PATCH** /organizations/{organization}/{username} | +*QueryApi* | [**finalizeQuery**](docs/QueryApi.md#finalizeQuery) | **POST** /arrays/{namespace}/{array}/query/finalize | +*QueryApi* | [**getEstResultSizes**](docs/QueryApi.md#getEstResultSizes) | **POST** /arrays/{namespace}/{array}/query/est_result_sizes | +*QueryApi* | [**getFile**](docs/QueryApi.md#getFile) | **GET** /arrays/{namespace}/{array}/query/get_file | +*QueryApi* | [**submitQuery**](docs/QueryApi.md#submitQuery) | **POST** /arrays/{namespace}/{array}/query/submit | +*QueryApi* | [**submitQueryJson**](docs/QueryApi.md#submitQueryJson) | **POST** /arrays/{namespace}/{array}/query/submit_query_json | +*RegisteredTaskGraphsApi* | [**deleteRegisteredTaskGraph**](docs/RegisteredTaskGraphsApi.md#deleteRegisteredTaskGraph) | **DELETE** /taskgraphs/{namespace}/registered/{name} | +*RegisteredTaskGraphsApi* | [**getRegisteredTaskGraph**](docs/RegisteredTaskGraphsApi.md#getRegisteredTaskGraph) | **GET** /taskgraphs/{namespace}/registered/{name} | +*RegisteredTaskGraphsApi* | [**getRegisteredTaskGraphSharingPolicies**](docs/RegisteredTaskGraphsApi.md#getRegisteredTaskGraphSharingPolicies) | **GET** /taskgraphs/{namespace}/registered/{name}/share | +*RegisteredTaskGraphsApi* | [**registerRegisteredTaskGraph**](docs/RegisteredTaskGraphsApi.md#registerRegisteredTaskGraph) | **POST** /taskgraphs/{namespace}/registered/{name} | +*RegisteredTaskGraphsApi* | [**shareRegisteredTaskGraph**](docs/RegisteredTaskGraphsApi.md#shareRegisteredTaskGraph) | **PATCH** /taskgraphs/{namespace}/registered/{name}/share | +*RegisteredTaskGraphsApi* | [**updateRegisteredTaskGraph**](docs/RegisteredTaskGraphsApi.md#updateRegisteredTaskGraph) | **PATCH** /taskgraphs/{namespace}/registered/{name} | +*SqlApi* | [**runSQL**](docs/SqlApi.md#runSQL) | **POST** /sql/{namespace} | +*StatsApi* | [**getTiledbStats**](docs/StatsApi.md#getTiledbStats) | **GET** /.stats | +*TaskGraphLogsApi* | [**createTaskGraphLog**](docs/TaskGraphLogsApi.md#createTaskGraphLog) | **POST** /taskgraphs/{namespace}/log | +*TaskGraphLogsApi* | [**getTaskGraphLog**](docs/TaskGraphLogsApi.md#getTaskGraphLog) | **GET** /taskgraphs/{namespace}/logs/{id} | +*TaskGraphLogsApi* | [**listTaskGraphLogs**](docs/TaskGraphLogsApi.md#listTaskGraphLogs) | **GET** /taskgraphs/logs | +*TaskGraphLogsApi* | [**reportClientNode**](docs/TaskGraphLogsApi.md#reportClientNode) | **POST** /taskgraphs/{namespace}/logs/{id}/report_client_node | +*TaskGraphLogsApi* | [**updateTaskGraphLog**](docs/TaskGraphLogsApi.md#updateTaskGraphLog) | **PATCH** /taskgraphs/{namespace}/logs/{id} | +*TasksApi* | [**runSQL**](docs/TasksApi.md#runSQL) | **POST** /sql/{namespace} | +*TasksApi* | [**taskIdGet**](docs/TasksApi.md#taskIdGet) | **GET** /task/{id} | +*TasksApi* | [**taskIdResultGet**](docs/TasksApi.md#taskIdResultGet) | **GET** /task/{id}/result | +*TasksApi* | [**tasksGet**](docs/TasksApi.md#tasksGet) | **GET** /tasks | +*UdfApi* | [**deleteUDFInfo**](docs/UdfApi.md#deleteUDFInfo) | **DELETE** /udf/{namespace}/{name} | +*UdfApi* | [**getUDFInfo**](docs/UdfApi.md#getUDFInfo) | **GET** /udf/{namespace}/{name} | +*UdfApi* | [**getUDFInfoSharingPolicies**](docs/UdfApi.md#getUDFInfoSharingPolicies) | **GET** /udf/{namespace}/{name}/share | +*UdfApi* | [**handleCopyUDF**](docs/UdfApi.md#handleCopyUDF) | **POST** /udf/{namespace}/{name}/copy | +*UdfApi* | [**registerUDFInfo**](docs/UdfApi.md#registerUDFInfo) | **POST** /udf/{namespace}/{name} | +*UdfApi* | [**shareUDFInfo**](docs/UdfApi.md#shareUDFInfo) | **PATCH** /udf/{namespace}/{name}/share | +*UdfApi* | [**submitGenericUDF**](docs/UdfApi.md#submitGenericUDF) | **POST** /udfs/generic/{namespace} | +*UdfApi* | [**submitMultiArrayUDF**](docs/UdfApi.md#submitMultiArrayUDF) | **POST** /udfs/arrays/{namespace} | +*UdfApi* | [**submitUDF**](docs/UdfApi.md#submitUDF) | **POST** /arrays/{namespace}/{array}/udf/submit | +*UdfApi* | [**udfNamespaceArrayEndTimestampsGet**](docs/UdfApi.md#udfNamespaceArrayEndTimestampsGet) | **GET** /udf/{namespace}/{array}/end_timestamps | +*UdfApi* | [**updateUDFInfo**](docs/UdfApi.md#updateUDFInfo) | **PATCH** /udf/{namespace}/{name} | +*UserApi* | [**addAWSAccessCredentials**](docs/UserApi.md#addAWSAccessCredentials) | **POST** /credentials/{namespace}/aws | +*UserApi* | [**addUserToOrganization**](docs/UserApi.md#addUserToOrganization) | **POST** /organizations/{organization}/user | +*UserApi* | [**checkAWSAccessCredentials**](docs/UserApi.md#checkAWSAccessCredentials) | **GET** /credentials/{namespace}/aws | +*UserApi* | [**checkAWSAccessCredentialsByName**](docs/UserApi.md#checkAWSAccessCredentialsByName) | **GET** /credentials/{namespace}/aws/{name} | +*UserApi* | [**confirmEmail**](docs/UserApi.md#confirmEmail) | **POST** /user/confirm_email | +*UserApi* | [**createUser**](docs/UserApi.md#createUser) | **POST** /user | +*UserApi* | [**deleteAWSAccessCredentials**](docs/UserApi.md#deleteAWSAccessCredentials) | **DELETE** /credentials/{namespace}/aws/{name} | +*UserApi* | [**deleteUser**](docs/UserApi.md#deleteUser) | **DELETE** /users/{username} | +*UserApi* | [**deleteUserFromOrganization**](docs/UserApi.md#deleteUserFromOrganization) | **DELETE** /organizations/{organization}/{username} | +*UserApi* | [**getOrganizationUser**](docs/UserApi.md#getOrganizationUser) | **GET** /organizations/{organization}/{username} | +*UserApi* | [**getSession**](docs/UserApi.md#getSession) | **GET** /session | +*UserApi* | [**getTokenScopes**](docs/UserApi.md#getTokenScopes) | **GET** /tokens/scopes | +*UserApi* | [**getUser**](docs/UserApi.md#getUser) | **GET** /user | +*UserApi* | [**getUserWithUsername**](docs/UserApi.md#getUserWithUsername) | **GET** /users/{username} | +*UserApi* | [**requestToken**](docs/UserApi.md#requestToken) | **POST** /token | +*UserApi* | [**resetUserPassword**](docs/UserApi.md#resetUserPassword) | **POST** /user/password_reset | +*UserApi* | [**revokeToken**](docs/UserApi.md#revokeToken) | **DELETE** /tokens/{token} | +*UserApi* | [**tokensGet**](docs/UserApi.md#tokensGet) | **GET** /tokens | +*UserApi* | [**tokensSessionGet**](docs/UserApi.md#tokensSessionGet) | **GET** /tokens/session | +*UserApi* | [**updateAWSAccessCredentials**](docs/UserApi.md#updateAWSAccessCredentials) | **PATCH** /credentials/{namespace}/aws/{name} | +*UserApi* | [**updateUser**](docs/UserApi.md#updateUser) | **PATCH** /users/{username} | +*UserApi* | [**updateUserInOrganization**](docs/UserApi.md#updateUserInOrganization) | **PATCH** /organizations/{organization}/{username} | ## Documentation for Models - - [AWSAccessCredentials](docs/AWSAccessCredentials.md) - - [ActivityEventType](docs/ActivityEventType.md) - - [Array](docs/Array.md) - - [ArrayActions](docs/ArrayActions.md) - - [ArrayActivityLog](docs/ArrayActivityLog.md) - - [ArrayBrowserData](docs/ArrayBrowserData.md) - - [ArrayBrowserSidebar](docs/ArrayBrowserSidebar.md) - - [ArrayEndTimestampData](docs/ArrayEndTimestampData.md) - - [ArrayFavorite](docs/ArrayFavorite.md) - - [ArrayFavoritesData](docs/ArrayFavoritesData.md) - - [ArrayInfo](docs/ArrayInfo.md) - - [ArrayInfoUpdate](docs/ArrayInfoUpdate.md) - - [ArrayMetadata](docs/ArrayMetadata.md) - - [ArrayMetadataEntry](docs/ArrayMetadataEntry.md) - - [ArraySample](docs/ArraySample.md) - - [ArraySchema](docs/ArraySchema.md) - - [ArraySharing](docs/ArraySharing.md) - - [ArrayTask](docs/ArrayTask.md) - - [ArrayTaskBrowserSidebar](docs/ArrayTaskBrowserSidebar.md) - - [ArrayTaskData](docs/ArrayTaskData.md) - - [ArrayTaskLog](docs/ArrayTaskLog.md) - - [ArrayTaskStatus](docs/ArrayTaskStatus.md) - - [ArrayTaskType](docs/ArrayTaskType.md) - - [ArrayType](docs/ArrayType.md) - - [Attribute](docs/Attribute.md) - - [AttributeBufferHeader](docs/AttributeBufferHeader.md) - - [AttributeBufferSize](docs/AttributeBufferSize.md) - - [Datatype](docs/Datatype.md) - - [Dimension](docs/Dimension.md) - - [DimensionCoordinate](docs/DimensionCoordinate.md) - - [DimensionTileExtent](docs/DimensionTileExtent.md) - - [Domain](docs/Domain.md) - - [DomainArray](docs/DomainArray.md) - - [Error](docs/Error.md) - - [FileCreate](docs/FileCreate.md) - - [FileCreated](docs/FileCreated.md) - - [FileExport](docs/FileExport.md) - - [FileExported](docs/FileExported.md) - - [FilePropertyName](docs/FilePropertyName.md) - - [FileType](docs/FileType.md) - - [FileUploaded](docs/FileUploaded.md) - - [Filter](docs/Filter.md) - - [FilterData](docs/FilterData.md) - - [FilterOption](docs/FilterOption.md) - - [FilterPipeline](docs/FilterPipeline.md) - - [FilterType](docs/FilterType.md) - - [GenericUDF](docs/GenericUDF.md) - - [GroupActions](docs/GroupActions.md) - - [GroupBrowserData](docs/GroupBrowserData.md) - - [GroupBrowserFilterData](docs/GroupBrowserFilterData.md) - - [GroupChanges](docs/GroupChanges.md) - - [GroupContents](docs/GroupContents.md) - - [GroupContentsFilterData](docs/GroupContentsFilterData.md) - - [GroupCreate](docs/GroupCreate.md) - - [GroupEntry](docs/GroupEntry.md) - - [GroupInfo](docs/GroupInfo.md) - - [GroupMember](docs/GroupMember.md) - - [GroupMemberAssetType](docs/GroupMemberAssetType.md) - - [GroupMemberType](docs/GroupMemberType.md) - - [GroupRegister](docs/GroupRegister.md) - - [GroupSharing](docs/GroupSharing.md) - - [GroupSharingRequest](docs/GroupSharingRequest.md) - - [GroupUpdate](docs/GroupUpdate.md) - - [InlineObject](docs/InlineObject.md) - - [InlineResponse200](docs/InlineResponse200.md) - - [Invitation](docs/Invitation.md) - - [InvitationArrayShareEmail](docs/InvitationArrayShareEmail.md) - - [InvitationData](docs/InvitationData.md) - - [InvitationOrganizationJoinEmail](docs/InvitationOrganizationJoinEmail.md) - - [InvitationStatus](docs/InvitationStatus.md) - - [InvitationType](docs/InvitationType.md) - - [LastAccessedArray](docs/LastAccessedArray.md) - - [Layout](docs/Layout.md) - - [MLModelFavorite](docs/MLModelFavorite.md) - - [MLModelFavoritesData](docs/MLModelFavoritesData.md) - - [MaxBufferSizes](docs/MaxBufferSizes.md) - - [MultiArrayUDF](docs/MultiArrayUDF.md) - - [NamespaceActions](docs/NamespaceActions.md) - - [NonEmptyDomain](docs/NonEmptyDomain.md) - - [NotebookCopied](docs/NotebookCopied.md) - - [NotebookCopy](docs/NotebookCopy.md) - - [NotebookFavorite](docs/NotebookFavorite.md) - - [NotebookFavoritesData](docs/NotebookFavoritesData.md) - - [NotebookStatus](docs/NotebookStatus.md) - - [Organization](docs/Organization.md) - - [OrganizationRoles](docs/OrganizationRoles.md) - - [OrganizationUser](docs/OrganizationUser.md) - - [PaginationMetadata](docs/PaginationMetadata.md) - - [Pricing](docs/Pricing.md) - - [PricingAggregateUsage](docs/PricingAggregateUsage.md) - - [PricingCurrency](docs/PricingCurrency.md) - - [PricingInterval](docs/PricingInterval.md) - - [PricingType](docs/PricingType.md) - - [PricingUnitLabel](docs/PricingUnitLabel.md) - - [PublicShareFilter](docs/PublicShareFilter.md) - - [Query](docs/Query.md) - - [QueryJson](docs/QueryJson.md) - - [QueryRanges](docs/QueryRanges.md) - - [QueryReader](docs/QueryReader.md) - - [Querystatus](docs/Querystatus.md) - - [Querytype](docs/Querytype.md) - - [ReadState](docs/ReadState.md) - - [RegisteredTaskGraph](docs/RegisteredTaskGraph.md) - - [RegisteredTaskGraphNode](docs/RegisteredTaskGraphNode.md) - - [ResultFormat](docs/ResultFormat.md) - - [SQLParameters](docs/SQLParameters.md) - - [SSOProvider](docs/SSOProvider.md) - - [Subarray](docs/Subarray.md) - - [SubarrayPartitioner](docs/SubarrayPartitioner.md) - - [SubarrayPartitionerCurrent](docs/SubarrayPartitionerCurrent.md) - - [SubarrayPartitionerState](docs/SubarrayPartitionerState.md) - - [SubarrayRanges](docs/SubarrayRanges.md) - - [Subscription](docs/Subscription.md) - - [TGInputNodeData](docs/TGInputNodeData.md) - - [TGSQLNodeData](docs/TGSQLNodeData.md) - - [TGUDFArgument](docs/TGUDFArgument.md) - - [TGUDFEnvironment](docs/TGUDFEnvironment.md) - - [TGUDFNodeData](docs/TGUDFNodeData.md) - - [TaskGraphActions](docs/TaskGraphActions.md) - - [TaskGraphClientNodeStatus](docs/TaskGraphClientNodeStatus.md) - - [TaskGraphLog](docs/TaskGraphLog.md) - - [TaskGraphLogRunLocation](docs/TaskGraphLogRunLocation.md) - - [TaskGraphLogStatus](docs/TaskGraphLogStatus.md) - - [TaskGraphLogsData](docs/TaskGraphLogsData.md) - - [TaskGraphNodeMetadata](docs/TaskGraphNodeMetadata.md) - - [TaskGraphSharing](docs/TaskGraphSharing.md) - - [TileDBConfig](docs/TileDBConfig.md) - - [Token](docs/Token.md) - - [TokenRequest](docs/TokenRequest.md) - - [TokenScope](docs/TokenScope.md) - - [UDFActions](docs/UDFActions.md) - - [UDFArrayDetails](docs/UDFArrayDetails.md) - - [UDFCopied](docs/UDFCopied.md) - - [UDFCopy](docs/UDFCopy.md) - - [UDFFavorite](docs/UDFFavorite.md) - - [UDFFavoritesData](docs/UDFFavoritesData.md) - - [UDFImage](docs/UDFImage.md) - - [UDFImageVersion](docs/UDFImageVersion.md) - - [UDFInfo](docs/UDFInfo.md) - - [UDFInfoUpdate](docs/UDFInfoUpdate.md) - - [UDFLanguage](docs/UDFLanguage.md) - - [UDFSharing](docs/UDFSharing.md) - - [UDFSubarray](docs/UDFSubarray.md) - - [UDFSubarrayRange](docs/UDFSubarrayRange.md) - - [UDFType](docs/UDFType.md) - - [User](docs/User.md) - - [Writer](docs/Writer.md) +- [AWSAccessCredentials](docs/AWSAccessCredentials.md) +- [ActivityEventType](docs/ActivityEventType.md) +- [Array](docs/Array.md) +- [ArrayActions](docs/ArrayActions.md) +- [ArrayActivityLog](docs/ArrayActivityLog.md) +- [ArrayBrowserData](docs/ArrayBrowserData.md) +- [ArrayBrowserSidebar](docs/ArrayBrowserSidebar.md) +- [ArrayEndTimestampData](docs/ArrayEndTimestampData.md) +- [ArrayFavorite](docs/ArrayFavorite.md) +- [ArrayFavoritesData](docs/ArrayFavoritesData.md) +- [ArrayInfo](docs/ArrayInfo.md) +- [ArrayInfoUpdate](docs/ArrayInfoUpdate.md) +- [ArrayMetadata](docs/ArrayMetadata.md) +- [ArrayMetadataEntry](docs/ArrayMetadataEntry.md) +- [ArraySample](docs/ArraySample.md) +- [ArraySchema](docs/ArraySchema.md) +- [ArraySharing](docs/ArraySharing.md) +- [ArrayTask](docs/ArrayTask.md) +- [ArrayTaskBrowserSidebar](docs/ArrayTaskBrowserSidebar.md) +- [ArrayTaskData](docs/ArrayTaskData.md) +- [ArrayTaskLog](docs/ArrayTaskLog.md) +- [ArrayTaskStatus](docs/ArrayTaskStatus.md) +- [ArrayTaskType](docs/ArrayTaskType.md) +- [ArrayType](docs/ArrayType.md) +- [Attribute](docs/Attribute.md) +- [AttributeBufferHeader](docs/AttributeBufferHeader.md) +- [AttributeBufferSize](docs/AttributeBufferSize.md) +- [Datatype](docs/Datatype.md) +- [Dimension](docs/Dimension.md) +- [DimensionCoordinate](docs/DimensionCoordinate.md) +- [DimensionTileExtent](docs/DimensionTileExtent.md) +- [Domain](docs/Domain.md) +- [DomainArray](docs/DomainArray.md) +- [Error](docs/Error.md) +- [FileCreate](docs/FileCreate.md) +- [FileCreated](docs/FileCreated.md) +- [FileExport](docs/FileExport.md) +- [FileExported](docs/FileExported.md) +- [FilePropertyName](docs/FilePropertyName.md) +- [FileType](docs/FileType.md) +- [FileUploaded](docs/FileUploaded.md) +- [Filter](docs/Filter.md) +- [FilterData](docs/FilterData.md) +- [FilterOption](docs/FilterOption.md) +- [FilterPipeline](docs/FilterPipeline.md) +- [FilterType](docs/FilterType.md) +- [GenericUDF](docs/GenericUDF.md) +- [GroupActions](docs/GroupActions.md) +- [GroupBrowserData](docs/GroupBrowserData.md) +- [GroupBrowserFilterData](docs/GroupBrowserFilterData.md) +- [GroupChanges](docs/GroupChanges.md) +- [GroupContents](docs/GroupContents.md) +- [GroupContentsFilterData](docs/GroupContentsFilterData.md) +- [GroupCreate](docs/GroupCreate.md) +- [GroupEntry](docs/GroupEntry.md) +- [GroupInfo](docs/GroupInfo.md) +- [GroupMember](docs/GroupMember.md) +- [GroupMemberAssetType](docs/GroupMemberAssetType.md) +- [GroupMemberType](docs/GroupMemberType.md) +- [GroupRegister](docs/GroupRegister.md) +- [GroupSharing](docs/GroupSharing.md) +- [GroupSharingRequest](docs/GroupSharingRequest.md) +- [GroupUpdate](docs/GroupUpdate.md) +- [InlineObject](docs/InlineObject.md) +- [InlineResponse200](docs/InlineResponse200.md) +- [Invitation](docs/Invitation.md) +- [InvitationArrayShareEmail](docs/InvitationArrayShareEmail.md) +- [InvitationData](docs/InvitationData.md) +- [InvitationOrganizationJoinEmail](docs/InvitationOrganizationJoinEmail.md) +- [InvitationStatus](docs/InvitationStatus.md) +- [InvitationType](docs/InvitationType.md) +- [LastAccessedArray](docs/LastAccessedArray.md) +- [Layout](docs/Layout.md) +- [MLModelFavorite](docs/MLModelFavorite.md) +- [MLModelFavoritesData](docs/MLModelFavoritesData.md) +- [MaxBufferSizes](docs/MaxBufferSizes.md) +- [MultiArrayUDF](docs/MultiArrayUDF.md) +- [NamespaceActions](docs/NamespaceActions.md) +- [NonEmptyDomain](docs/NonEmptyDomain.md) +- [NotebookCopied](docs/NotebookCopied.md) +- [NotebookCopy](docs/NotebookCopy.md) +- [NotebookFavorite](docs/NotebookFavorite.md) +- [NotebookFavoritesData](docs/NotebookFavoritesData.md) +- [NotebookStatus](docs/NotebookStatus.md) +- [Organization](docs/Organization.md) +- [OrganizationRoles](docs/OrganizationRoles.md) +- [OrganizationUser](docs/OrganizationUser.md) +- [PaginationMetadata](docs/PaginationMetadata.md) +- [Pricing](docs/Pricing.md) +- [PricingAggregateUsage](docs/PricingAggregateUsage.md) +- [PricingCurrency](docs/PricingCurrency.md) +- [PricingInterval](docs/PricingInterval.md) +- [PricingType](docs/PricingType.md) +- [PricingUnitLabel](docs/PricingUnitLabel.md) +- [PublicShareFilter](docs/PublicShareFilter.md) +- [Query](docs/Query.md) +- [QueryJson](docs/QueryJson.md) +- [QueryRanges](docs/QueryRanges.md) +- [QueryReader](docs/QueryReader.md) +- [Querystatus](docs/Querystatus.md) +- [Querytype](docs/Querytype.md) +- [ReadState](docs/ReadState.md) +- [RegisteredTaskGraph](docs/RegisteredTaskGraph.md) +- [RegisteredTaskGraphNode](docs/RegisteredTaskGraphNode.md) +- [ResultFormat](docs/ResultFormat.md) +- [SQLParameters](docs/SQLParameters.md) +- [SSOProvider](docs/SSOProvider.md) +- [Subarray](docs/Subarray.md) +- [SubarrayPartitioner](docs/SubarrayPartitioner.md) +- [SubarrayPartitionerCurrent](docs/SubarrayPartitionerCurrent.md) +- [SubarrayPartitionerState](docs/SubarrayPartitionerState.md) +- [SubarrayRanges](docs/SubarrayRanges.md) +- [Subscription](docs/Subscription.md) +- [TGInputNodeData](docs/TGInputNodeData.md) +- [TGSQLNodeData](docs/TGSQLNodeData.md) +- [TGUDFArgument](docs/TGUDFArgument.md) +- [TGUDFEnvironment](docs/TGUDFEnvironment.md) +- [TGUDFNodeData](docs/TGUDFNodeData.md) +- [TaskGraphActions](docs/TaskGraphActions.md) +- [TaskGraphClientNodeStatus](docs/TaskGraphClientNodeStatus.md) +- [TaskGraphLog](docs/TaskGraphLog.md) +- [TaskGraphLogRunLocation](docs/TaskGraphLogRunLocation.md) +- [TaskGraphLogStatus](docs/TaskGraphLogStatus.md) +- [TaskGraphLogsData](docs/TaskGraphLogsData.md) +- [TaskGraphNodeMetadata](docs/TaskGraphNodeMetadata.md) +- [TaskGraphSharing](docs/TaskGraphSharing.md) +- [TileDBConfig](docs/TileDBConfig.md) +- [Token](docs/Token.md) +- [TokenRequest](docs/TokenRequest.md) +- [TokenScope](docs/TokenScope.md) +- [UDFActions](docs/UDFActions.md) +- [UDFArrayDetails](docs/UDFArrayDetails.md) +- [UDFCopied](docs/UDFCopied.md) +- [UDFCopy](docs/UDFCopy.md) +- [UDFFavorite](docs/UDFFavorite.md) +- [UDFFavoritesData](docs/UDFFavoritesData.md) +- [UDFImage](docs/UDFImage.md) +- [UDFImageVersion](docs/UDFImageVersion.md) +- [UDFInfo](docs/UDFInfo.md) +- [UDFInfoUpdate](docs/UDFInfoUpdate.md) +- [UDFLanguage](docs/UDFLanguage.md) +- [UDFSharing](docs/UDFSharing.md) +- [UDFSubarray](docs/UDFSubarray.md) +- [UDFSubarrayRange](docs/UDFSubarrayRange.md) +- [UDFType](docs/UDFType.md) +- [User](docs/User.md) +- [Writer](docs/Writer.md) ## Documentation for Authorization @@ -337,7 +337,7 @@ Authentication schemes defined for the API: - **Type**: OAuth - **Flow**: accessCode - **Authorization URL**: https://oauth2.tiledb.com/oauth2/authorize -- **Scopes**: +- **Scopes**: - read: Grants read access - write: Grants write access - admin: Grants read and write access to administrative information @@ -350,4 +350,3 @@ It's recommended to create an instance of `ApiClient` per thread in a multithrea ## Author - diff --git a/api/openapi.yaml b/api/openapi.yaml index ce0b4dd..9f52a54 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -20,7 +20,7 @@ paths: example: stats: "123" schema: - $ref: '#/components/schemas/inline_response_200' + $ref: '#/components/schemas/getTiledbStats_200_response' description: stats default: content: @@ -36,7 +36,7 @@ paths: description: get all array metadata user has access to operationId: getAllArrayMetadata parameters: - - description: Public share values can be one of exclude, only + - description: "Public share values can be one of exclude, only" in: query name: public_share schema: @@ -218,7 +218,7 @@ paths: tags: - array x-codegen-request-body-name: ArraySchema - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /arrays/{namespace}/{array}/activity: get: @@ -237,22 +237,22 @@ paths: required: true schema: type: string - - description: 'Start time of window of fetch logs, unix epoch in seconds (default: - seven days ago)' + - 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)' + - 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 + - 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: @@ -436,7 +436,7 @@ paths: tags: - array x-codegen-request-body-name: arrayMetadataEntries - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /arrays/{namespace}/{array}/metadata: get: @@ -507,12 +507,12 @@ paths: tags: - array x-codegen-request-body-name: array_metadata - x-contentType: application/json + 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 + 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) @@ -538,8 +538,8 @@ paths: content: application/json: schema: - description: Milliseconds since Unix epoch, end_timestamp of selected - fragment or latest timestamp if input timestamp is omitted + 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 @@ -592,7 +592,7 @@ paths: tags: - array x-codegen-request-body-name: array_metadata - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /arrays/{namespace}/{array}/consolidate: post: @@ -631,7 +631,7 @@ paths: tags: - array x-codegen-request-body-name: tiledb_config - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /arrays/{namespace}/{array}/vacuum: post: @@ -670,7 +670,7 @@ paths: tags: - array x-codegen-request-body-name: tiledb_config - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /arrays/{namespace}/{array}/share: get: @@ -732,11 +732,11 @@ paths: 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. + 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": @@ -755,7 +755,7 @@ paths: tags: - array x-codegen-request-body-name: array_sharing - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /arrays/{namespace}/{array}/non_empty_domain: get: @@ -881,8 +881,8 @@ paths: 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. + - 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: @@ -921,7 +921,7 @@ paths: tags: - udf x-codegen-request-body-name: udf - x-contentType: application/json + x-content-type: application/json x-accepts: application/octet-stream /arrays/{namespace}/{array}/query/submit: post: @@ -1005,12 +1005,12 @@ paths: tags: - query x-codegen-request-body-name: query - x-contentType: application/json + 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 + 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) @@ -1049,7 +1049,7 @@ paths: content: application/json: example: - data: '{"a1":[0,1,2,3,0,1,2,3]}' + data: "{\"a1\":[0,1,2,3,0,1,2,3]}" schema: type: object description: query completed and results are returned in JSON format @@ -1067,12 +1067,12 @@ paths: tags: - query x-codegen-request-body-name: queryJson - x-contentType: application/json + 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 + 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) @@ -1103,8 +1103,7 @@ paths: "200": content: application/x-ipynb+json: - example: - data: abcd + example: "{data=abcd}" schema: format: binary type: string @@ -1205,7 +1204,7 @@ paths: tags: - query x-codegen-request-body-name: query - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /arrays/{namespace}/{array}/query/est_result_sizes: post: @@ -1290,7 +1289,7 @@ paths: tags: - query x-codegen-request-body-name: query - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /arrays/{namespace}/{array}/sample: get: @@ -1382,8 +1381,8 @@ paths: name: length schema: type: integer - - description: Milliseconds since Unix epoch, metadata will use open_at functionality - to open array at the specific timestamp + - description: "Milliseconds since Unix epoch, metadata will use open_at functionality\ + \ to open array at the specific timestamp" in: query name: end_timestamp schema: @@ -1467,8 +1466,8 @@ paths: 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 + 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 @@ -1498,7 +1497,7 @@ paths: application/json: schema: $ref: '#/components/schemas/ArrayEndTimestampData' - description: list of timestamps in milliseconds, paginated + description: "list of timestamps in milliseconds, paginated" default: content: application/json: @@ -1575,25 +1574,17 @@ paths: tags: - user x-codegen-request-body-name: user - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /user/password_reset: post: description: reset user password operationId: resetUserPassword requestBody: - $ref: '#/components/requestBodies/inline_object' content: application/json: schema: - description: Password to update - properties: - password: - description: password - example: password - minLength: 8 - type: string - type: object + $ref: '#/components/schemas/resetUserPassword_request' description: password to update for user requesting update required: true responses: @@ -1612,7 +1603,7 @@ paths: tags: - user x-codegen-request-body-name: user - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /user/confirm_email: post: @@ -1714,7 +1705,7 @@ paths: tags: - user x-codegen-request-body-name: user - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /credentials/{namespace}/aws: get: @@ -1777,7 +1768,7 @@ paths: - user - organization x-codegen-request-body-name: awsAccessCredentials - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /credentials/{namespace}/aws/{name}: delete: @@ -1882,11 +1873,11 @@ paths: - user - organization x-codegen-request-body-name: awsAccessCredentials - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /organization: post: - description: create a organization, the user creating will be listed as owner + description: "create a organization, the user creating will be listed as owner" operationId: createOrganization requestBody: content: @@ -1908,7 +1899,7 @@ paths: tags: - organization x-codegen-request-body-name: organization - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /organizations: get: @@ -1928,7 +1919,7 @@ paths: description: Error finding organizations "500": content: {} - description: Request user not found, or has empty context + description: "Request user not found, or has empty context" default: content: application/json: @@ -2021,7 +2012,7 @@ paths: tags: - organization x-codegen-request-body-name: organizationDetails - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /organizations/{organization}/user: post: @@ -2055,7 +2046,7 @@ paths: - user - organization x-codegen-request-body-name: user - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /organizations/{organization}/{username}: delete: @@ -2161,15 +2152,15 @@ paths: - user - organization x-codegen-request-body-name: user - x-contentType: application/json + 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 + - description: "flag to create a token with expiration of 30 days, default is\ + \ false" in: query name: remember_me schema: @@ -2231,13 +2222,13 @@ paths: name: per_page schema: type: integer - - description: task type, "QUERY", "SQL", "UDF", "GENERIC_UDF" + - 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 + - description: "task_type to exclude matching array in results, more than one\ + \ can be included" explode: false in: query name: exclude_type @@ -2246,7 +2237,7 @@ paths: type: string type: array style: form - - description: match file_type of task array, more than one can be included + - description: "match file_type of task array, more than one can be included" explode: true in: query name: file_type @@ -2255,7 +2246,7 @@ paths: type: string type: array style: form - - description: exclude file_type of task arrays, more than one can be included + - description: "exclude file_type of task arrays, more than one can be included" explode: true in: query name: exclude_file_type @@ -2269,13 +2260,13 @@ paths: name: status schema: type: string - - description: search string that will look at name, namespace or description - fields + - 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 + - description: "sort by which field valid values include start_time, name" in: query name: orderby schema: @@ -2300,15 +2291,15 @@ paths: get: operationId: getArrayTasksSidebar parameters: - - description: Fetch tasks created after this time, unix epoch in seconds, default - 7 days ago + - 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 + - description: "Fetch tasks created before this time, unix epoch in seconds,\ + \ default now" in: query name: end schema: @@ -2410,7 +2401,7 @@ paths: application/json: schema: $ref: '#/components/schemas/Error' - description: results were not saved, or results have expored + description: "results were not saved, or results have expored" default: content: application/json: @@ -2422,8 +2413,8 @@ paths: x-accepts: application/json /token: post: - description: Request an authorization token, optionally taken a TokenRequest - object to set parameters on the token + description: "Request an authorization token, optionally taken a TokenRequest\ + \ object to set parameters on the token" operationId: requestToken requestBody: content: @@ -2448,7 +2439,7 @@ paths: tags: - user x-codegen-request-body-name: tokenRequest - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /tokens: get: @@ -2571,8 +2562,8 @@ paths: properties: {} type: object type: array - description: JSON results in array of objects form, if the query returns - results + 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 @@ -2596,7 +2587,7 @@ paths: - sql - tasks x-codegen-request-body-name: sql - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /udfs/generic/{namespace}: post: @@ -2648,7 +2639,7 @@ paths: tags: - udf x-codegen-request-body-name: udf - x-contentType: application/json + x-content-type: application/json x-accepts: application/octet-stream /udfs/arrays/{namespace}: post: @@ -2700,7 +2691,7 @@ paths: tags: - udf x-codegen-request-body-name: udf - x-contentType: application/json + x-content-type: application/json x-accepts: application/octet-stream /udf/{namespace}/{name}: delete: @@ -2804,7 +2795,7 @@ paths: tags: - udf x-codegen-request-body-name: udf - x-contentType: application/json + x-content-type: application/json x-accepts: application/json post: description: register a UDF in the given namespace @@ -2842,7 +2833,7 @@ paths: tags: - udf x-codegen-request-body-name: udf - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /udf/{namespace}/{name}/share: get: @@ -2904,11 +2895,11 @@ paths: 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. + 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": @@ -2927,7 +2918,7 @@ paths: tags: - udf x-codegen-request-body-name: udf_sharing - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /udf/{namespace}/{name}/copy: post: @@ -2980,12 +2971,12 @@ paths: tags: - udf x-codegen-request-body-name: UDFCopy - x-contentType: application/json + 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 + 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 @@ -3015,7 +3006,7 @@ paths: application/json: schema: $ref: '#/components/schemas/ArrayEndTimestampData' - description: list of timestamps in milliseconds, paginated + description: "list of timestamps in milliseconds, paginated" default: content: application/json: @@ -3093,7 +3084,7 @@ paths: x-accepts: application/json /notebooks/{namespace}/{array}/rename: patch: - description: update name on a notebok, moving related S3 object to new location + 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) @@ -3128,7 +3119,7 @@ paths: tags: - notebook x-codegen-request-body-name: notebook_metadata - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /notebooks/{namespace}/{array}/copy: post: @@ -3152,8 +3143,8 @@ paths: 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 + - 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: @@ -3182,7 +3173,7 @@ paths: tags: - notebook x-codegen-request-body-name: NotebookCopy - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /notebooks/{namespace}/upload: post: @@ -3204,19 +3195,7 @@ paths: content: multipart/form-data: schema: - 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 + $ref: '#/components/schemas/HandleUploadNotebook_request' required: true responses: "201": @@ -3233,12 +3212,12 @@ paths: description: error response tags: - notebook - x-contentType: multipart/form-data + 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 + 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 @@ -3268,7 +3247,7 @@ paths: application/json: schema: $ref: '#/components/schemas/ArrayEndTimestampData' - description: list of timestamps in milliseconds, paginated + description: "list of timestamps in milliseconds, paginated" default: content: application/json: @@ -3315,18 +3294,18 @@ paths: name: per_page schema: type: integer - - description: invitation type, "ARRAY_SHARE", "JOIN_ORGANIZATION" + - description: "invitation type, \"ARRAY_SHARE\", \"JOIN_ORGANIZATION\"" in: query name: type schema: type: string - - description: Filter to only return "PENDING", "ACCEPTED" + - 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 + - description: "sort by which field valid values include timestamp, array_name,\ + \ organization_name" in: query name: orderby schema: @@ -3490,7 +3469,7 @@ paths: tags: - invitation x-codegen-request-body-name: email_invite - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /invitations/{organization}/join: post: @@ -3530,7 +3509,7 @@ paths: tags: - invitation x-codegen-request-body-name: email_invite - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /arrays/browser/shared: get: @@ -3546,8 +3525,8 @@ paths: name: per_page schema: type: integer - - description: search string that will look at name, namespace or description - fields + - description: "search string that will look at name, namespace or description\ + \ fields" in: query name: search schema: @@ -3557,18 +3536,18 @@ paths: name: namespace schema: type: string - - description: sort by which field valid values include last_accessed, size, - name + - 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 + - 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 + - description: "tag to search for, more than one can be included" explode: true in: query name: tag @@ -3577,8 +3556,8 @@ paths: type: string type: array style: form - - description: tags to exclude matching array in results, more than one can - be included + - description: "tags to exclude matching array in results, more than one can\ + \ be included" explode: true in: query name: exclude_tag @@ -3587,7 +3566,7 @@ paths: type: string type: array style: form - - description: file_type to search for, more than one can be included + - description: "file_type to search for, more than one can be included" explode: true in: query name: file_type @@ -3596,8 +3575,8 @@ paths: type: string type: array style: form - - description: file_type to exclude matching array in results, more than one - can be included + - description: "file_type to exclude matching array in results, more than one\ + \ can be included" explode: true in: query name: exclude_file_type @@ -3606,8 +3585,8 @@ paths: 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 + - 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 @@ -3616,6 +3595,16 @@ paths: 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: @@ -3665,8 +3654,8 @@ paths: name: per_page schema: type: integer - - description: search string that will look at name, namespace or description - fields + - description: "search string that will look at name, namespace or description\ + \ fields" in: query name: search schema: @@ -3676,18 +3665,18 @@ paths: name: namespace schema: type: string - - description: sort by which field valid values include last_accessed, size, - name + - 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 + - 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 + - description: "tag to search for, more than one can be included" explode: true in: query name: tag @@ -3696,8 +3685,8 @@ paths: type: string type: array style: form - - description: tags to exclude matching array in results, more than one can - be included + - description: "tags to exclude matching array in results, more than one can\ + \ be included" explode: true in: query name: exclude_tag @@ -3706,7 +3695,7 @@ paths: type: string type: array style: form - - description: file_type to search for, more than one can be included + - description: "file_type to search for, more than one can be included" explode: true in: query name: file_type @@ -3715,8 +3704,8 @@ paths: type: string type: array style: form - - description: file_type to exclude matching array in results, more than one - can be included + - description: "file_type to exclude matching array in results, more than one\ + \ can be included" explode: true in: query name: exclude_file_type @@ -3725,8 +3714,8 @@ paths: 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 + - 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 @@ -3785,8 +3774,8 @@ paths: name: per_page schema: type: integer - - description: search string that will look at name, namespace or description - fields + - description: "search string that will look at name, namespace or description\ + \ fields" in: query name: search schema: @@ -3796,18 +3785,18 @@ paths: name: namespace schema: type: string - - description: sort by which field valid values include last_accessed, size, - name + - 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 + - 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 + - description: "tag to search for, more than one can be included" explode: true in: query name: tag @@ -3816,8 +3805,8 @@ paths: type: string type: array style: form - - description: tags to exclude matching array in results, more than one can - be included + - description: "tags to exclude matching array in results, more than one can\ + \ be included" explode: true in: query name: exclude_tag @@ -3826,7 +3815,7 @@ paths: type: string type: array style: form - - description: file_type to search for, more than one can be included + - description: "file_type to search for, more than one can be included" explode: true in: query name: file_type @@ -3835,8 +3824,8 @@ paths: type: string type: array style: form - - description: file_type to exclude matching array in results, more than one - can be included + - description: "file_type to exclude matching array in results, more than one\ + \ can be included" explode: true in: query name: exclude_file_type @@ -3845,8 +3834,8 @@ paths: 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 + - 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 @@ -4513,7 +4502,7 @@ paths: tags: - files x-codegen-request-body-name: FileCreate - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /files/{namespace}/upload: post: @@ -4535,19 +4524,7 @@ paths: content: multipart/form-data: schema: - 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 + $ref: '#/components/schemas/HandleUploadFile_request' required: true responses: "201": @@ -4564,7 +4541,7 @@ paths: description: error response tags: - files - x-contentType: multipart/form-data + x-content-type: multipart/form-data x-accepts: application/json /files/{namespace}/{file}/export: post: @@ -4606,7 +4583,7 @@ paths: tags: - files x-codegen-request-body-name: FileExport - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /groups/browser/owned/filters: get: @@ -4642,8 +4619,8 @@ paths: name: per_page schema: type: integer - - description: search string that will look at name, namespace or description - fields + - description: "search string that will look at name, namespace or description\ + \ fields" in: query name: search schema: @@ -4653,18 +4630,18 @@ paths: name: namespace schema: type: string - - description: sort by which field valid values include last_accessed, size, - name + - 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 + - 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 + - description: "tag to search for, more than one can be included" explode: true in: query name: tag @@ -4673,8 +4650,8 @@ paths: type: string type: array style: form - - description: tags to exclude matching array in results, more than one can - be included + - description: "tags to exclude matching array in results, more than one can\ + \ be included" explode: true in: query name: exclude_tag @@ -4683,7 +4660,7 @@ paths: type: string type: array style: form - - description: if true, ignores the nesting of groups and searches all of them + - description: "if true, ignores the nesting of groups and searches all of them" in: query name: flat schema: @@ -4743,8 +4720,8 @@ paths: name: per_page schema: type: integer - - description: search string that will look at name, namespace or description - fields + - description: "search string that will look at name, namespace or description\ + \ fields" in: query name: search schema: @@ -4754,18 +4731,18 @@ paths: name: namespace schema: type: string - - description: sort by which field valid values include last_accessed, size, - name + - 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 + - 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 + - description: "tag to search for, more than one can be included" explode: true in: query name: tag @@ -4774,8 +4751,8 @@ paths: type: string type: array style: form - - description: tags to exclude matching array in results, more than one can - be included + - description: "tags to exclude matching array in results, more than one can\ + \ be included" explode: true in: query name: exclude_tag @@ -4784,7 +4761,7 @@ paths: type: string type: array style: form - - description: if true, ignores the nesting of groups and searches all of them + - description: "if true, ignores the nesting of groups and searches all of them" in: query name: flat schema: @@ -4794,6 +4771,16 @@ paths: 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: @@ -4844,8 +4831,8 @@ paths: name: per_page schema: type: integer - - description: search string that will look at name, namespace or description - fields + - description: "search string that will look at name, namespace or description\ + \ fields" in: query name: search schema: @@ -4855,18 +4842,18 @@ paths: name: namespace schema: type: string - - description: sort by which field valid values include last_accessed, size, - name + - 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 + - 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 + - description: "tag to search for, more than one can be included" explode: true in: query name: tag @@ -4875,8 +4862,8 @@ paths: type: string type: array style: form - - description: tags to exclude matching array in results, more than one can - be included + - description: "tags to exclude matching array in results, more than one can\ + \ be included" explode: true in: query name: exclude_tag @@ -4885,7 +4872,7 @@ paths: type: string type: array style: form - - description: if true, ignores the nesting of groups and searches all of them + - description: "if true, ignores the nesting of groups and searches all of them" in: query name: flat schema: @@ -4975,19 +4962,19 @@ paths: name: namespace schema: type: string - - description: search string that will look at name, namespace or description - fields + - 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 + - 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 + - description: "tag to search for, more than one can be included" explode: true in: query name: tag @@ -4996,8 +4983,8 @@ paths: type: string type: array style: form - - description: tags to exclude matching array in results, more than one can - be included + - description: "tags to exclude matching array in results, more than one can\ + \ be included" explode: true in: query name: exclude_tag @@ -5006,7 +4993,7 @@ paths: type: string type: array style: form - - description: member type to search for, more than one can be included + - description: "member type to search for, more than one can be included" explode: true in: query name: member_type @@ -5015,8 +5002,8 @@ paths: type: string type: array style: form - - description: member type to exclude matching groups in results, more than - one can be included + - description: "member type to exclude matching groups in results, more than\ + \ one can be included" explode: true in: query name: exclude_member_type @@ -5076,7 +5063,7 @@ paths: tags: - groups x-codegen-request-body-name: GroupChanges - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /groups/{namespace}/{array}/register: post: @@ -5114,7 +5101,7 @@ paths: tags: - groups x-codegen-request-body-name: GroupRegister - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /groups/{namespace}/create: post: @@ -5146,7 +5133,7 @@ paths: tags: - groups x-codegen-request-body-name: GroupCreate - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /groups/{group_namespace}/{group_name}/share: get: @@ -5208,12 +5195,12 @@ paths: 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. + 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": @@ -5232,7 +5219,7 @@ paths: tags: - groups x-codegen-request-body-name: group_sharing_request - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /groups/{group_namespace}/{group_name}: delete: @@ -5332,7 +5319,7 @@ paths: tags: - groups x-codegen-request-body-name: GroupUpdate - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /taskgraphs/{namespace}/log: post: @@ -5357,8 +5344,9 @@ paths: 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. + 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: @@ -5368,13 +5356,16 @@ paths: tags: - task_graph_logs x-codegen-request-body-name: log - x-contentType: application/json + 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.) - Entries in the response are ordered from newest to oldest. Pagination parameters work as in other API methods; see PaginationMetadata. + 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. @@ -5486,8 +5477,9 @@ paths: 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`. + 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": @@ -5502,7 +5494,7 @@ paths: tags: - task_graph_logs x-codegen-request-body-name: log - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /taskgraphs/{namespace}/logs/{id}/report_client_node: post: @@ -5540,7 +5532,7 @@ paths: tags: - task_graph_logs x-codegen-request-body-name: report - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /taskgraphs/{namespace}/registered/{name}: delete: @@ -5643,11 +5635,10 @@ paths: tags: - registered_task_graphs x-codegen-request-body-name: graph - x-contentType: application/json + x-content-type: application/json x-accepts: application/json post: - description: | - Register a task graph in the given namespace, with the given name. + 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. @@ -5682,7 +5673,7 @@ paths: tags: - registered_task_graphs x-codegen-request-body-name: graph - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /taskgraphs/{namespace}/registered/{name}/share: get: @@ -5747,8 +5738,11 @@ paths: 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. + 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": @@ -5770,16 +5764,9 @@ paths: tags: - registered_task_graphs x-codegen-request-body-name: task_graph_sharing - x-contentType: application/json + x-content-type: application/json x-accepts: application/json components: - requestBodies: - inline_object: - content: - application/json: - schema: - $ref: '#/components/schemas/inline_object' - required: true schemas: ArrayType: description: TileDB array type @@ -6035,6 +6022,7 @@ components: example: uri: uri timestamp: 1540471791873 + queryType: null properties: timestamp: description: timestamp (epoch milliseconds) array is opened at @@ -6067,6 +6055,7 @@ components: uint8: 6 uint16: 5 int16: 1 + type: null - data: int32: 5 int64: 7 @@ -6078,12 +6067,14 @@ components: uint8: 6 uint16: 5 int16: 1 + type: null nullable: true cellValNum: 1 name: attribute1 fillValue: - 6 - 6 + type: null properties: name: description: Attribute name @@ -6140,6 +6131,7 @@ components: uint8: 6 uint16: 5 int16: 1 + type: null - data: int32: 5 int64: 7 @@ -6151,6 +6143,7 @@ components: uint8: 6 uint16: 5 int16: 1 + type: null nullTileExtent: true domain: int32: @@ -6184,6 +6177,7 @@ components: - 1 - 1 name: row + type: null properties: name: description: Dimension name @@ -6209,6 +6203,9 @@ components: Domain: description: Domain of array example: + cellOrder: null + tileOrder: null + type: null dimensions: - tileExtent: int32: 9 @@ -6234,6 +6231,7 @@ components: uint8: 6 uint16: 5 int16: 1 + type: null - data: int32: 5 int64: 7 @@ -6245,6 +6243,7 @@ components: uint8: 6 uint16: 5 int16: 1 + type: null nullTileExtent: true domain: int32: @@ -6278,6 +6277,7 @@ components: - 1 - 1 name: row + type: null - tileExtent: int32: 9 int64: 3 @@ -6302,6 +6302,7 @@ components: uint8: 6 uint16: 5 int16: 1 + type: null - data: int32: 5 int64: 7 @@ -6313,6 +6314,7 @@ components: uint8: 6 uint16: 5 int16: 1 + type: null nullTileExtent: true domain: int32: @@ -6346,6 +6348,7 @@ components: - 1 - 1 name: row + type: null properties: type: $ref: '#/components/schemas/Datatype' @@ -6378,6 +6381,7 @@ components: uint8: 6 uint16: 5 int16: 1 + type: null properties: type: $ref: '#/components/schemas/FilterType' @@ -6401,6 +6405,7 @@ components: uint8: 6 uint16: 5 int16: 1 + type: null - data: int32: 5 int64: 7 @@ -6412,6 +6417,7 @@ components: uint8: 6 uint16: 5 int16: 1 + type: null properties: filters: items: @@ -6436,6 +6442,7 @@ components: uint8: 6 uint16: 5 int16: 1 + type: null - data: int32: 5 int64: 7 @@ -6447,6 +6454,9 @@ components: uint8: 6 uint16: 5 int16: 1 + type: null + arrayType: null + cellOrder: null coordsFilterPipeline: filters: - data: @@ -6460,6 +6470,7 @@ components: uint8: 6 uint16: 5 int16: 1 + type: null - data: int32: 5 int64: 7 @@ -6471,7 +6482,12 @@ components: uint8: 6 uint16: 5 int16: 1 + type: null + tileOrder: null domain: + cellOrder: null + tileOrder: null + type: null dimensions: - tileExtent: int32: 9 @@ -6497,6 +6513,7 @@ components: uint8: 6 uint16: 5 int16: 1 + type: null - data: int32: 5 int64: 7 @@ -6508,6 +6525,7 @@ components: uint8: 6 uint16: 5 int16: 1 + type: null nullTileExtent: true domain: int32: @@ -6541,6 +6559,7 @@ components: - 1 - 1 name: row + type: null - tileExtent: int32: 9 int64: 3 @@ -6565,6 +6584,7 @@ components: uint8: 6 uint16: 5 int16: 1 + type: null - data: int32: 5 int64: 7 @@ -6576,6 +6596,7 @@ components: uint8: 6 uint16: 5 int16: 1 + type: null nullTileExtent: true domain: int32: @@ -6609,6 +6630,7 @@ components: - 1 - 1 name: row + type: null attributes: - filterPipeline: filters: @@ -6623,6 +6645,7 @@ components: uint8: 6 uint16: 5 int16: 1 + type: null - data: int32: 5 int64: 7 @@ -6634,12 +6657,14 @@ components: uint8: 6 uint16: 5 int16: 1 + type: null nullable: true cellValNum: 1 name: attribute1 fillValue: - 6 - 6 + type: null - filterPipeline: filters: - data: @@ -6653,6 +6678,7 @@ components: uint8: 6 uint16: 5 int16: 1 + type: null - data: int32: 5 int64: 7 @@ -6664,12 +6690,14 @@ components: 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 @@ -6812,6 +6840,7 @@ components: buffer: - 1 - 1 + type: null properties: type: $ref: '#/components/schemas/Datatype' @@ -6828,20 +6857,23 @@ components: 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 + description: "List of 1D ranges, one per dimension" items: $ref: '#/components/schemas/SubarrayRanges' type: array @@ -6857,66 +6889,84 @@ components: 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: - - ranges: + - layout: null + ranges: - hasDefaultRange: true buffer: - 1 - 1 + type: null - hasDefaultRange: true buffer: - 1 - 1 - - ranges: + type: null + - layout: null + ranges: - hasDefaultRange: true buffer: - 1 - 1 + type: null - hasDefaultRange: true buffer: - 1 - 1 + type: null multiRange: - - ranges: + - layout: null + ranges: - hasDefaultRange: true buffer: - 1 - 1 + type: null - hasDefaultRange: true buffer: - 1 - 1 - - ranges: + 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 @@ -6961,66 +7011,84 @@ components: 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: - - ranges: + - layout: null + ranges: - hasDefaultRange: true buffer: - 1 - 1 + type: null - hasDefaultRange: true buffer: - 1 - 1 - - ranges: + type: null + - layout: null + ranges: - hasDefaultRange: true buffer: - 1 - 1 + type: null - hasDefaultRange: true buffer: - 1 - 1 + type: null multiRange: - - ranges: + - layout: null + ranges: - hasDefaultRange: true buffer: - 1 - 1 + type: null - hasDefaultRange: true buffer: - 1 - 1 - - ranges: + 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 @@ -7045,6 +7113,7 @@ components: QueryReader: description: Read struct (can't be called reader due to class name conflict) example: + layout: null varOffsetsAddExtraElement: true varOffsetsBitsize: 2 readState: @@ -7059,66 +7128,84 @@ components: 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: - - ranges: + - layout: null + ranges: - hasDefaultRange: true buffer: - 1 - 1 + type: null - hasDefaultRange: true buffer: - 1 - 1 - - ranges: + type: null + - layout: null + ranges: - hasDefaultRange: true buffer: - 1 - 1 + type: null - hasDefaultRange: true buffer: - 1 - 1 + type: null multiRange: - - ranges: + - layout: null + ranges: - hasDefaultRange: true buffer: - 1 - 1 + type: null - hasDefaultRange: true buffer: - 1 - 1 - - ranges: + 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 @@ -7128,15 +7215,18 @@ components: 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' @@ -7158,11 +7248,14 @@ components: type: object Query: example: + layout: null array: uri: uri timestamp: 1540471791873 + queryType: null totalFixedLengthBufferBytes: 4 reader: + layout: null varOffsetsAddExtraElement: true varOffsetsBitsize: 2 readState: @@ -7177,66 +7270,84 @@ components: 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: - - ranges: + - layout: null + ranges: - hasDefaultRange: true buffer: - 1 - 1 + type: null - hasDefaultRange: true buffer: - 1 - 1 - - ranges: + type: null + - layout: null + ranges: - hasDefaultRange: true buffer: - 1 - 1 + type: null - hasDefaultRange: true buffer: - 1 - 1 + type: null multiRange: - - ranges: + - layout: null + ranges: - hasDefaultRange: true buffer: - 1 - 1 + type: null - hasDefaultRange: true buffer: - 1 - 1 - - ranges: + 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 @@ -7246,15 +7357,18 @@ components: 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 @@ -7298,6 +7412,8 @@ components: - 1 - 1 dedupCoords: true + type: null + status: null properties: type: $ref: '#/components/schemas/Querytype' @@ -7409,7 +7525,7 @@ components: - offsetBytes type: object MaxBufferSizes: - description: a list of max buffer sizes, one per attribute + description: "a list of max buffer sizes, one per attribute" example: maxBufferSizes: - dataBytes: 6 @@ -7492,15 +7608,16 @@ components: description: Actvity of an Array example: bytes_received: 1073741824 - query_stats: '{"timers": {"Context.StorageManager.read_load_array_schema_from_uri.sum": - 0.0255293, "...": "..."}, "counters": {"Context.StorageManager.read_unfiltered_byte_num": - 191, "...": "..."}}' + 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}]}' + query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3, \"end\"\ + : 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" username: user1 properties: event_at: @@ -7533,15 +7650,15 @@ components: type: string query_ranges: description: ranges for query - example: '{"rows":[{"start": 1, "end": 1},{"start": 3, "end": 4}],"cols":[{"start": - 1, "end": 4}]}' + 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, "...": "..."}}' + 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 @@ -7552,6 +7669,7 @@ components: - UDF - QUERY - GENERIC_UDF + - CLIENT_COMPUTATION type: string ArrayTaskStatus: description: Status of array task @@ -7560,9 +7678,10 @@ components: - FAILED - COMPLETED - RUNNING - - DENIED + - RESOURCES_UNAVAILABLE - UNKNOWN - CANCELLED + - DENIED type: string ArrayTaskLog: description: Array task stderr/stdout logs @@ -7580,30 +7699,33 @@ components: memory: 1073741824 activity: - bytes_received: 1073741824 - query_stats: '{"timers": {"Context.StorageManager.read_load_array_schema_from_uri.sum": - 0.0255293, "...": "..."}, "counters": {"Context.StorageManager.read_unfiltered_byte_num": - 191, "...": "..."}}' + 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}]}' + query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3, \"end\"\ + : 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" username: user1 - bytes_received: 1073741824 - query_stats: '{"timers": {"Context.StorageManager.read_load_array_schema_from_uri.sum": - 0.0255293, "...": "..."}, "counters": {"Context.StorageManager.read_unfiltered_byte_num": - 191, "...": "..."}}' + 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}]}' + 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 - duration: 3.41E+11 + type: null + duration: 341000000000 sql_init_commands: - sql_init_commands - sql_init_commands @@ -7613,11 +7735,13 @@ components: 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 @@ -7631,19 +7755,29 @@ components: 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 @@ -7651,19 +7785,29 @@ components: 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 @@ -7682,6 +7826,7 @@ components: - null size: 1024.0 read_only: false + file_type: null license_id: license_id license_text: license_text access_credentials_name: access_credentials_name @@ -7695,19 +7840,29 @@ components: 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: @@ -7741,6 +7896,7 @@ components: int16: - 1 - 1 + status: null properties: id: description: task ID @@ -7784,17 +7940,17 @@ components: nullable: true type: string cost: - description: Total accumulated for task in USD, example is $0.12 + 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 + 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 + description: "Cost accumulated for access task in USD, example is $0.12" example: 0.12 format: double type: number @@ -7823,7 +7979,7 @@ components: x-omitempty: false duration: description: duration in nanoseconds of an array task - example: 3.41E+11 + example: 341000000000 type: number sql_init_commands: description: SQL queries or commands to run before main sql query @@ -7839,13 +7995,13 @@ components: 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. + 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. + description: "If set, the client-defined ID of the node within this task's\ + \ graph.\n" type: string x-omitempty: true type: object @@ -7890,30 +8046,33 @@ components: - memory: 1073741824 activity: - bytes_received: 1073741824 - query_stats: '{"timers": {"Context.StorageManager.read_load_array_schema_from_uri.sum": - 0.0255293, "...": "..."}, "counters": {"Context.StorageManager.read_unfiltered_byte_num": - 191, "...": "..."}}' + 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}]}' + query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3, \"\ + end\": 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" username: user1 - bytes_received: 1073741824 - query_stats: '{"timers": {"Context.StorageManager.read_load_array_schema_from_uri.sum": - 0.0255293, "...": "..."}, "counters": {"Context.StorageManager.read_unfiltered_byte_num": - 191, "...": "..."}}' + 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}]}' + 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 - duration: 3.41E+11 + type: null + duration: 341000000000 sql_init_commands: - sql_init_commands - sql_init_commands @@ -7923,11 +8082,13 @@ components: 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 @@ -7941,19 +8102,29 @@ components: 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 @@ -7961,19 +8132,29 @@ components: 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 @@ -7992,6 +8173,7 @@ components: - null size: 1024.0 read_only: false + file_type: null license_id: license_id license_text: license_text access_credentials_name: access_credentials_name @@ -8005,19 +8187,29 @@ components: 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: @@ -8051,33 +8243,37 @@ components: int16: - 1 - 1 + status: null - memory: 1073741824 activity: - bytes_received: 1073741824 - query_stats: '{"timers": {"Context.StorageManager.read_load_array_schema_from_uri.sum": - 0.0255293, "...": "..."}, "counters": {"Context.StorageManager.read_unfiltered_byte_num": - 191, "...": "..."}}' + 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}]}' + query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3, \"\ + end\": 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" username: user1 - bytes_received: 1073741824 - query_stats: '{"timers": {"Context.StorageManager.read_load_array_schema_from_uri.sum": - 0.0255293, "...": "..."}, "counters": {"Context.StorageManager.read_unfiltered_byte_num": - 191, "...": "..."}}' + 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}]}' + 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 - duration: 3.41E+11 + type: null + duration: 341000000000 sql_init_commands: - sql_init_commands - sql_init_commands @@ -8087,11 +8283,13 @@ components: 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 @@ -8105,19 +8303,29 @@ components: 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 @@ -8125,19 +8333,29 @@ components: 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 @@ -8156,6 +8374,7 @@ components: - null size: 1024.0 read_only: false + file_type: null license_id: license_id license_text: license_text access_credentials_name: access_credentials_name @@ -8169,19 +8388,29 @@ components: 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: @@ -8215,6 +8444,7 @@ components: int16: - 1 - 1 + status: null properties: array_tasks: description: Array Tasks @@ -8232,7 +8462,7 @@ components: organizations: - organizations - organizations - result_count_by_namespace: '{}' + result_count_by_namespace: "{}" properties: organizations: description: list of all unique organizations the user is part of that have @@ -8254,6 +8484,7 @@ components: 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 @@ -8281,7 +8512,7 @@ components: ArraySample: description: Sample data from array example: - data: '{}' + data: "{}" properties: data: type: object @@ -8307,19 +8538,29 @@ components: 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 @@ -8327,19 +8568,29 @@ components: 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 @@ -8358,6 +8609,7 @@ components: - null size: 1024.0 read_only: false + file_type: null license_id: license_id license_text: license_text access_credentials_name: access_credentials_name @@ -8371,19 +8623,29 @@ components: 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 @@ -8391,19 +8653,29 @@ components: 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 @@ -8411,19 +8683,29 @@ components: 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 @@ -8442,6 +8724,7 @@ components: - null size: 1024.0 read_only: false + file_type: null license_id: license_id license_text: license_text access_credentials_name: access_credentials_name @@ -8455,19 +8738,29 @@ components: 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: @@ -8506,7 +8799,7 @@ components: description: Object for ui array tasks browser page example: result_count_for_all: 0 - result_count_by_namespace: '{}' + result_count_by_namespace: "{}" namespaces: - namespaces - namespaces @@ -8556,14 +8849,16 @@ components: default_s3_path: default_s3_path name: Jane Doe organizations: - - allowed_actions: + - 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 - - allowed_actions: + - role: null + allowed_actions: - null - null user_id: 00000000-0000-0000-0000-000000000000 @@ -8585,7 +8880,7 @@ components: example: username maxLength: 63 minLength: 1 - pattern: ^[\w.\-]+$ + pattern: "^[\\w.\\-]+$" type: string password: description: password @@ -8593,7 +8888,7 @@ components: minLength: 8 type: string name: - description: the user's full, real name + description: "the user's full, real name" example: Jane Doe minLength: 1 type: string @@ -8618,6 +8913,7 @@ components: 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) @@ -8669,6 +8965,7 @@ components: OrganizationUser: description: user in an organization example: + role: null allowed_actions: - null - null @@ -8705,18 +9002,21 @@ components: Organization: description: Organization example: + role: null created_at: 2000-01-23T04:56:07.000+00:00 description: description unpaid_subscription: true users: - - allowed_actions: + - 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 - - allowed_actions: + - role: null + allowed_actions: - null - null user_id: 00000000-0000-0000-0000-000000000000 @@ -8748,7 +9048,7 @@ components: description: organization name must be unique maxLength: 63 minLength: 1 - pattern: ^[\w.\-]+$ + pattern: "^[\\w.\\-]+$" type: string created_at: description: Datetime organization was created in UTC @@ -8760,6 +9060,7 @@ components: type: string logo: description: Organization logo + nullable: true type: string description: description: Organization description @@ -8913,11 +9214,16 @@ components: 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: @@ -8970,19 +9276,29 @@ components: 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: @@ -9014,19 +9330,29 @@ components: 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 @@ -9034,19 +9360,29 @@ components: 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 @@ -9065,6 +9401,7 @@ components: - null size: 1024.0 read_only: false + file_type: null license_id: license_id license_text: license_text access_credentials_name: access_credentials_name @@ -9078,19 +9415,29 @@ components: 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: @@ -9153,11 +9500,11 @@ components: 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 + 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) + description: "Array type (dense, key-value, sparse)" example: sparse type: string share_count: @@ -9170,8 +9517,8 @@ components: type: boolean x-omitempty: false namespace_subscribed: - description: Depends on the namespace asking, denotes the existence of subscription - of namespace to this array + description: "Depends on the namespace asking, denotes the existence of\ + \ subscription of namespace to this array" example: false readOnly: true type: boolean @@ -9182,7 +9529,7 @@ components: tags: description: optional tags for array items: - description: tag must be lowercase characters or hypen [a-z-] + description: "tag must be lowercase characters or hypen [a-z-]" type: string type: array x-omitempty: false @@ -9209,6 +9556,7 @@ components: 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 @@ -9243,8 +9591,8 @@ components: 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 + 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 @@ -9252,7 +9600,7 @@ components: tags: description: optional tags for array items: - description: tag must be lowercase characters or hypen [a-z-] + description: "tag must be lowercase characters or hypen [a-z-]" type: string type: array x-omitempty: false @@ -9273,23 +9621,24 @@ components: TokenRequest: description: A request from a user for an api token example: - expires: 2000-01-23T04:56:07.000+00:00 + expires: 2018-12-31T12:13:14Z scope: '*' name: myToken properties: expires: - description: Expiration date for token, if empty token defaults to 30 minutes + 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) + 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 * + description: "Optional scope to limit token, defaults to all permissions,\ + \ current supported values are password_reset or *" example: '*' type: string type: object @@ -9318,14 +9667,14 @@ components: type: string scope: default: '*' - description: Optional scope to limit token, defaults to all permissions, - current supported values are password_reset or * + 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 + 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 @@ -9339,7 +9688,7 @@ components: created_at: 2000-01-23T04:56:07.000+00:00 properties: secret_access_key: - description: aws secret access key, never returned in get requests + description: "aws secret access key, never returned in get requests" type: string access_key_id: description: aws access key @@ -9390,7 +9739,7 @@ components: - only type: string DimensionCoordinate: - description: A single, typed coordinate for a dimension + description: "A single, typed coordinate for a dimension" example: int32: 7 int64: 3 @@ -9483,6 +9832,7 @@ components: UDFSubarray: description: Subarray bounds to query for a UDF to operate on example: + layout: null ranges: - range_end: int32: 7 @@ -9534,7 +9884,7 @@ components: layout: $ref: '#/components/schemas/Layout' ranges: - description: List of ranges, + description: "List of ranges," items: $ref: '#/components/schemas/UDFSubarrayRange' type: array @@ -9542,6 +9892,7 @@ components: QueryRanges: description: Subarray bounds to query example: + layout: null ranges: - - 0.8008281904610115 - 0.8008281904610115 @@ -9551,7 +9902,7 @@ components: layout: $ref: '#/components/schemas/Layout' ranges: - description: List of ranges, + description: "List of ranges," items: items: type: number @@ -9567,6 +9918,7 @@ components: - fields - fields query_ranges: + layout: null ranges: - - 0.8008281904610115 - 0.8008281904610115 @@ -9576,8 +9928,8 @@ components: query_ranges: $ref: '#/components/schemas/QueryRanges' fields: - description: List of fields to return data from, empty means return data - for all fields + description: "List of fields to return data from, empty means return data\ + \ for all fields" items: type: string x-omitempty: true @@ -9595,6 +9947,8 @@ components: - 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 @@ -9605,8 +9959,8 @@ components: exec: exec properties: udf_info_name: - description: name of UDFInfo to run, format is {namespace}/{udf_name}. Can - not be used with exec + 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: @@ -9619,8 +9973,10 @@ components: 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. + 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 @@ -9628,19 +9984,19 @@ components: description: Type-specific executable text type: string exec_raw: - description: optional raw text to store of serialized function, used for - showing in UI + 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 + 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 {}. + 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 @@ -9648,13 +10004,13 @@ components: result_format: $ref: '#/components/schemas/ResultFormat' task_name: - description: name of task, optional + 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)' + 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 @@ -9662,21 +10018,22 @@ components: 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. + 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. + 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 + description: "Contains array details for multi-array query including uri, ranges\ + \ buffers" example: ranges: + layout: null ranges: - - 0.8008281904610115 - 0.8008281904610115 @@ -9696,7 +10053,7 @@ components: type: string x-omitempty: true uri: - description: array to set ranges and buffers on, must be in tiledb:// format + description: "array to set ranges and buffers on, must be in tiledb:// format" type: string ranges: $ref: '#/components/schemas/QueryRanges' @@ -9718,6 +10075,7 @@ components: - stored_param_uuids dont_download_results: true ranges: + layout: null ranges: - - 0.8008281904610115 - 0.8008281904610115 @@ -9727,6 +10085,8 @@ components: buffers: - buffers - buffers + language: null + result_format: null store_results: true version: version task_graph_uuid: task_graph_uuid @@ -9734,13 +10094,14 @@ components: image_name: image_name arguments_json: - name: name - value: '{}' + value: "{}" - name: name - value: '{}' + value: "{}" udf_info_name: TileDB-Inc/quickstart_median client_node_uuid: client_node_uuid arrays: - ranges: + layout: null ranges: - - 0.8008281904610115 - 0.8008281904610115 @@ -9752,6 +10113,7 @@ components: uri: uri parameter_id: parameter_id - ranges: + layout: null ranges: - - 0.8008281904610115 - 0.8008281904610115 @@ -9764,6 +10126,7 @@ components: parameter_id: parameter_id exec: exec subarray: + layout: null ranges: - range_end: int32: 7 @@ -9813,8 +10176,8 @@ components: int16: 5 properties: udf_info_name: - description: name of UDFInfo to run, format is {namespace}/{udf_name}. Can - not be used with exec + 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: @@ -9827,8 +10190,10 @@ components: 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. + 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 @@ -9836,34 +10201,36 @@ components: description: Type-specific executable text type: string exec_raw: - description: optional raw text to store of serialized function, used for - showing in UI + 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 + description: "name of task, optional" type: string argument: - 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 + 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. - 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. + 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 {}. + 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 @@ -9893,16 +10260,16 @@ components: type: array x-omitempty: false timeout: - description: 'UDF-type timeout in seconds (default: 900)' + 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. + 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. + description: "If set, the client-defined ID of the node within this task's\ + \ graph.\n" type: string x-omitempty: true type: object @@ -9952,15 +10319,17 @@ components: type: boolean type: object UDFInfoUpdate: - description: User-defined function that can persist in db, used and shared multiple - times + 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: @@ -9985,8 +10354,8 @@ components: description: Type-specific executable text type: string exec_raw: - description: optional raw text to store of serialized function, used for - showing in UI + description: "optional raw text to store of serialized function, used for\ + \ showing in UI" type: string x-omitempty: true readme: @@ -10003,20 +10372,22 @@ components: tags: description: optional tags for UDF items: - description: tag must be lowercase characters or hypen [a-z-] + 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 + 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 @@ -10046,7 +10417,7 @@ components: tags: description: optional tags for UDF items: - description: tag must be lowercase characters or hypen [a-z-] + description: "tag must be lowercase characters or hypen [a-z-]" type: string type: array x-omitempty: false @@ -10055,21 +10426,23 @@ components: 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 + description: "name of task, optional" type: string query: description: query to run @@ -10086,6 +10459,14 @@ components: 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: @@ -10100,19 +10481,21 @@ components: type: object type: array task_graph_uuid: - description: | - If set, the ID of the log for the task graph that this was part of. + 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. + 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 @@ -10143,6 +10526,16 @@ components: 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 @@ -10181,19 +10574,29 @@ components: 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 @@ -10201,19 +10604,29 @@ components: 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 @@ -10232,6 +10645,7 @@ components: - null size: 1024.0 read_only: false + file_type: null license_id: license_id license_text: license_text access_credentials_name: access_credentials_name @@ -10245,19 +10659,29 @@ components: 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 @@ -10265,19 +10689,29 @@ components: 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 @@ -10285,19 +10719,29 @@ components: 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 @@ -10316,6 +10760,7 @@ components: - null size: 1024.0 read_only: false + file_type: null license_id: license_id license_text: license_text access_credentials_name: access_credentials_name @@ -10329,19 +10774,29 @@ components: 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: @@ -10385,19 +10840,29 @@ components: 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 @@ -10405,19 +10870,29 @@ components: 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 @@ -10436,6 +10911,7 @@ components: - null size: 1024.0 read_only: false + file_type: null license_id: license_id license_text: license_text access_credentials_name: access_credentials_name @@ -10449,19 +10925,29 @@ components: 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 @@ -10469,19 +10955,29 @@ components: 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 @@ -10489,19 +10985,29 @@ components: 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 @@ -10520,6 +11026,7 @@ components: - null size: 1024.0 read_only: false + file_type: null license_id: license_id license_text: license_text access_credentials_name: access_credentials_name @@ -10533,19 +11040,29 @@ components: 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: @@ -10589,19 +11106,29 @@ components: 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 @@ -10609,19 +11136,29 @@ components: 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 @@ -10640,6 +11177,7 @@ components: - null size: 1024.0 read_only: false + file_type: null license_id: license_id license_text: license_text access_credentials_name: access_credentials_name @@ -10653,19 +11191,29 @@ components: 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 @@ -10673,19 +11221,29 @@ components: 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 @@ -10693,19 +11251,29 @@ components: 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 @@ -10724,6 +11292,7 @@ components: - null size: 1024.0 read_only: false + file_type: null license_id: license_id license_text: license_text access_credentials_name: access_credentials_name @@ -10737,19 +11306,29 @@ components: 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: @@ -10793,19 +11372,29 @@ components: 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 @@ -10813,19 +11402,29 @@ components: 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 @@ -10844,6 +11443,7 @@ components: - null size: 1024.0 read_only: false + file_type: null license_id: license_id license_text: license_text access_credentials_name: access_credentials_name @@ -10857,19 +11457,29 @@ components: 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 @@ -10877,19 +11487,29 @@ components: 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 @@ -10897,19 +11517,29 @@ components: 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 @@ -10928,6 +11558,7 @@ components: - null size: 1024.0 read_only: false + file_type: null license_id: license_id license_text: license_text access_credentials_name: access_credentials_name @@ -10941,19 +11572,29 @@ components: 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: @@ -10978,8 +11619,8 @@ components: - ACCEPTED type: string InvitationArrayShareEmail: - description: Encapsulates information regarding inviting people using email - to share array, same permissions for all invitees + description: "Encapsulates information regarding inviting people using email\ + \ to share array, same permissions for all invitees" example: invitee_email: - invitee_email @@ -11007,12 +11648,13 @@ components: - invitee_email type: object InvitationOrganizationJoinEmail: - description: Encapsulates information regarding inviting people using email - to join organization, same permissions for all invitees + 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 @@ -11048,10 +11690,13 @@ components: 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 - actions: read,write + organization_role: null + actions: "read,write" email: jane@doe.com + status: null properties: id: description: Unique ID of invitation added to magic link @@ -11074,7 +11719,7 @@ components: type: string x-omitempty: false organization_name: - description: Name of the organization, does not persist in database + description: "Name of the organization, does not persist in database" example: organization_name type: string organization_role: @@ -11085,7 +11730,7 @@ components: type: string x-omitempty: false array_name: - description: Name of the array, does not persist in database + description: "Name of the array, does not persist in database" example: array_name type: string email: @@ -11094,7 +11739,7 @@ components: type: string actions: description: A comma separated list of ArrayActions or NamespaceActions - example: read,write + example: "read,write" type: string status: $ref: '#/components/schemas/InvitationStatus' @@ -11131,10 +11776,13 @@ components: 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 - actions: read,write + 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 @@ -11143,10 +11791,13 @@ components: 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 - actions: read,write + organization_role: null + actions: "read,write" email: jane@doe.com + status: null properties: invitations: description: List of invitations @@ -11302,8 +11953,8 @@ components: 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 + 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: @@ -11421,8 +12072,8 @@ components: 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 + 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 @@ -11436,7 +12087,7 @@ components: tags: description: optional tags for group items: - description: tag must be lowercase characters or hypen [a-z-] + description: "tag must be lowercase characters or hypen [a-z-]" type: string type: array x-omitempty: false @@ -11450,9 +12101,10 @@ components: x-omitempty: true type: object GroupEntry: - description: Object describing a single member of a group, which can be an array - or a group + 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 @@ -11460,19 +12112,29 @@ components: 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 @@ -11480,19 +12142,29 @@ components: 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 @@ -11511,6 +12183,7 @@ components: - null size: 1024.0 read_only: false + file_type: null license_id: license_id license_text: license_text access_credentials_name: access_credentials_name @@ -11524,19 +12197,29 @@ components: 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 @@ -11562,6 +12245,10 @@ components: 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: @@ -11576,26 +12263,37 @@ components: total_pages: 14.0 total_items: 138.0 entries: - - array: + - 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 @@ -11603,19 +12301,29 @@ components: 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 @@ -11634,6 +12342,7 @@ components: - null size: 1024.0 read_only: false + file_type: null license_id: license_id license_text: license_text access_credentials_name: access_credentials_name @@ -11647,19 +12356,29 @@ components: 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 @@ -11684,26 +12403,37 @@ components: logo: logo tiledb_uri: tiledb_uri id: 00000000-0000-0000-0000-000000000000 - - array: + - 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 @@ -11711,19 +12441,29 @@ components: 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 @@ -11742,6 +12482,7 @@ components: - null size: 1024.0 read_only: false + file_type: null license_id: license_id license_text: license_text access_credentials_name: access_credentials_name @@ -11755,19 +12496,29 @@ components: 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 @@ -11915,8 +12666,8 @@ components: 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. + 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. @@ -11926,13 +12677,13 @@ components: 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. + 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-]. + description: "tag must be lowercase characters or hypen [a-z-]." type: string type: array x-omitempty: false @@ -11967,8 +12718,8 @@ components: 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. + 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. @@ -11978,13 +12729,13 @@ components: 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. + 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-]. + description: "tag must be lowercase characters or hypen [a-z-]." type: string type: array x-omitempty: false @@ -12012,6 +12763,7 @@ components: 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. @@ -12020,13 +12772,13 @@ components: 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 + 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-] + description: "tag must be lowercase characters or hypen [a-z-]" type: string type: array x-omitempty: false @@ -12057,9 +12809,10 @@ components: - file type: string GroupMember: - description: A groups member, array or another groups, to add or remove from - an existing group. + 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: @@ -12077,23 +12830,27 @@ components: add or remove. example: add: - - namespace: namespace + - member_type: null + namespace: namespace name: name - - namespace: namespace + - member_type: null + namespace: namespace name: name remove: - - namespace: namespace + - member_type: null + namespace: namespace name: name - - namespace: namespace + - member_type: null + namespace: namespace name: name properties: add: - description: the assets, arrays or groups, to add to the group. + 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. + description: "the assets, arrays or groups, to remove from the group." items: $ref: '#/components/schemas/GroupMember' type: array @@ -12209,30 +12966,33 @@ components: - memory: 1073741824 activity: - bytes_received: 1073741824 - query_stats: '{"timers": {"Context.StorageManager.read_load_array_schema_from_uri.sum": - 0.0255293, "...": "..."}, "counters": {"Context.StorageManager.read_unfiltered_byte_num": - 191, "...": "..."}}' + 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}]}' + query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3,\ + \ \"end\": 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" username: user1 - bytes_received: 1073741824 - query_stats: '{"timers": {"Context.StorageManager.read_load_array_schema_from_uri.sum": - 0.0255293, "...": "..."}, "counters": {"Context.StorageManager.read_unfiltered_byte_num": - 191, "...": "..."}}' + 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}]}' + 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 - duration: 3.41E+11 + type: null + duration: 341000000000 sql_init_commands: - sql_init_commands - sql_init_commands @@ -12242,11 +13002,13 @@ components: 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 @@ -12260,19 +13022,29 @@ components: 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 @@ -12280,19 +13052,29 @@ components: 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 @@ -12311,6 +13093,7 @@ components: - null size: 1024.0 read_only: false + file_type: null license_id: license_id license_text: license_text access_credentials_name: access_credentials_name @@ -12324,19 +13107,29 @@ components: 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: @@ -12370,33 +13163,37 @@ components: int16: - 1 - 1 + status: null - memory: 1073741824 activity: - bytes_received: 1073741824 - query_stats: '{"timers": {"Context.StorageManager.read_load_array_schema_from_uri.sum": - 0.0255293, "...": "..."}, "counters": {"Context.StorageManager.read_unfiltered_byte_num": - 191, "...": "..."}}' + 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}]}' + query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3,\ + \ \"end\": 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" username: user1 - bytes_received: 1073741824 - query_stats: '{"timers": {"Context.StorageManager.read_load_array_schema_from_uri.sum": - 0.0255293, "...": "..."}, "counters": {"Context.StorageManager.read_unfiltered_byte_num": - 191, "...": "..."}}' + 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}]}' + 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 - duration: 3.41E+11 + type: null + duration: 341000000000 sql_init_commands: - sql_init_commands - sql_init_commands @@ -12406,11 +13203,13 @@ components: 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 @@ -12424,19 +13223,29 @@ components: 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 @@ -12444,19 +13253,29 @@ components: 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 @@ -12475,6 +13294,7 @@ components: - null size: 1024.0 read_only: false + file_type: null license_id: license_id license_text: license_text access_credentials_name: access_credentials_name @@ -12488,19 +13308,29 @@ components: 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: @@ -12534,8 +13364,11 @@ components: int16: - 1 - 1 + status: null name: name client_node_uuid: client_node_uuid + run_location: null + status: null - depends_on: - depends_on - depends_on @@ -12543,30 +13376,33 @@ components: - memory: 1073741824 activity: - bytes_received: 1073741824 - query_stats: '{"timers": {"Context.StorageManager.read_load_array_schema_from_uri.sum": - 0.0255293, "...": "..."}, "counters": {"Context.StorageManager.read_unfiltered_byte_num": - 191, "...": "..."}}' + 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}]}' + query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3,\ + \ \"end\": 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" username: user1 - bytes_received: 1073741824 - query_stats: '{"timers": {"Context.StorageManager.read_load_array_schema_from_uri.sum": - 0.0255293, "...": "..."}, "counters": {"Context.StorageManager.read_unfiltered_byte_num": - 191, "...": "..."}}' + 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}]}' + 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 - duration: 3.41E+11 + type: null + duration: 341000000000 sql_init_commands: - sql_init_commands - sql_init_commands @@ -12576,11 +13412,13 @@ components: 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 @@ -12594,19 +13432,29 @@ components: 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 @@ -12614,19 +13462,29 @@ components: 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 @@ -12645,6 +13503,7 @@ components: - null size: 1024.0 read_only: false + file_type: null license_id: license_id license_text: license_text access_credentials_name: access_credentials_name @@ -12658,19 +13517,29 @@ components: 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: @@ -12704,33 +13573,37 @@ components: int16: - 1 - 1 + status: null - memory: 1073741824 activity: - bytes_received: 1073741824 - query_stats: '{"timers": {"Context.StorageManager.read_load_array_schema_from_uri.sum": - 0.0255293, "...": "..."}, "counters": {"Context.StorageManager.read_unfiltered_byte_num": - 191, "...": "..."}}' + 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}]}' + query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3,\ + \ \"end\": 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" username: user1 - bytes_received: 1073741824 - query_stats: '{"timers": {"Context.StorageManager.read_load_array_schema_from_uri.sum": - 0.0255293, "...": "..."}, "counters": {"Context.StorageManager.read_unfiltered_byte_num": - 191, "...": "..."}}' + 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}]}' + 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 - duration: 3.41E+11 + type: null + duration: 341000000000 sql_init_commands: - sql_init_commands - sql_init_commands @@ -12740,11 +13613,13 @@ components: 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 @@ -12758,19 +13633,29 @@ components: 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 @@ -12778,19 +13663,29 @@ components: 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 @@ -12809,6 +13704,7 @@ components: - null size: 1024.0 read_only: false + file_type: null license_id: license_id license_text: license_text access_credentials_name: access_credentials_name @@ -12822,19 +13718,29 @@ components: 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: @@ -12868,29 +13774,34 @@ components: 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. + 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. + description: "A name for this task graph log, displayed in the UI. Does\ + \ not need to be unique.\n" type: string created_at: description: | @@ -12899,16 +13810,16 @@ components: readOnly: true type: string start_time: - description: | - The start time of the task graph, recorded when the server starts executing the first node. + 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. + description: "The end time of the task graph, recorded when the client reports\ + \ completion.\n" format: date-time nullable: true readOnly: true @@ -12917,23 +13828,23 @@ components: status: $ref: '#/components/schemas/TaskGraphLogStatus' total_cost: - description: | - If present, the total cost of executing all nodes in this task graph. + 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. + 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. + 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. + 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: @@ -12944,8 +13855,10 @@ components: 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. + 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 @@ -12960,30 +13873,33 @@ components: - memory: 1073741824 activity: - bytes_received: 1073741824 - query_stats: '{"timers": {"Context.StorageManager.read_load_array_schema_from_uri.sum": - 0.0255293, "...": "..."}, "counters": {"Context.StorageManager.read_unfiltered_byte_num": - 191, "...": "..."}}' + 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}]}' + query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3, \"\ + end\": 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" username: user1 - bytes_received: 1073741824 - query_stats: '{"timers": {"Context.StorageManager.read_load_array_schema_from_uri.sum": - 0.0255293, "...": "..."}, "counters": {"Context.StorageManager.read_unfiltered_byte_num": - 191, "...": "..."}}' + 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}]}' + 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 - duration: 3.41E+11 + type: null + duration: 341000000000 sql_init_commands: - sql_init_commands - sql_init_commands @@ -12993,11 +13909,13 @@ components: 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 @@ -13011,19 +13929,29 @@ components: 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 @@ -13031,19 +13959,29 @@ components: 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 @@ -13062,6 +14000,7 @@ components: - null size: 1024.0 read_only: false + file_type: null license_id: license_id license_text: license_text access_credentials_name: access_credentials_name @@ -13075,19 +14014,29 @@ components: 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: @@ -13121,33 +14070,37 @@ components: int16: - 1 - 1 + status: null - memory: 1073741824 activity: - bytes_received: 1073741824 - query_stats: '{"timers": {"Context.StorageManager.read_load_array_schema_from_uri.sum": - 0.0255293, "...": "..."}, "counters": {"Context.StorageManager.read_unfiltered_byte_num": - 191, "...": "..."}}' + 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}]}' + query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3, \"\ + end\": 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" username: user1 - bytes_received: 1073741824 - query_stats: '{"timers": {"Context.StorageManager.read_load_array_schema_from_uri.sum": - 0.0255293, "...": "..."}, "counters": {"Context.StorageManager.read_unfiltered_byte_num": - 191, "...": "..."}}' + 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}]}' + 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 - duration: 3.41E+11 + type: null + duration: 341000000000 sql_init_commands: - sql_init_commands - sql_init_commands @@ -13157,11 +14110,13 @@ components: 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 @@ -13175,19 +14130,29 @@ components: 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 @@ -13195,19 +14160,29 @@ components: 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 @@ -13226,6 +14201,7 @@ components: - null size: 1024.0 read_only: false + file_type: null license_id: license_id license_text: license_text access_credentials_name: access_credentials_name @@ -13239,19 +14215,29 @@ components: 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: @@ -13285,8 +14271,11 @@ components: 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. @@ -13306,16 +14295,18 @@ components: 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. - This is read-only and generated by the server based on the tasks it has actually executed. + 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. + description: "Response data for a task graph list, including pagination metadata." example: pagination_metadata: per_page: 10.0 @@ -13339,30 +14330,33 @@ components: - memory: 1073741824 activity: - bytes_received: 1073741824 - query_stats: '{"timers": {"Context.StorageManager.read_load_array_schema_from_uri.sum": - 0.0255293, "...": "..."}, "counters": {"Context.StorageManager.read_unfiltered_byte_num": - 191, "...": "..."}}' + 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}]}' + query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3,\ + \ \"end\": 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" username: user1 - bytes_received: 1073741824 - query_stats: '{"timers": {"Context.StorageManager.read_load_array_schema_from_uri.sum": - 0.0255293, "...": "..."}, "counters": {"Context.StorageManager.read_unfiltered_byte_num": - 191, "...": "..."}}' + 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}]}' + 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 - duration: 3.41E+11 + type: null + duration: 341000000000 sql_init_commands: - sql_init_commands - sql_init_commands @@ -13372,11 +14366,13 @@ components: 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 @@ -13390,19 +14386,29 @@ components: 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 @@ -13410,19 +14416,29 @@ components: 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 @@ -13441,6 +14457,7 @@ components: - null size: 1024.0 read_only: false + file_type: null license_id: license_id license_text: license_text access_credentials_name: access_credentials_name @@ -13454,19 +14471,29 @@ components: 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: @@ -13500,33 +14527,37 @@ components: int16: - 1 - 1 + status: null - memory: 1073741824 activity: - bytes_received: 1073741824 - query_stats: '{"timers": {"Context.StorageManager.read_load_array_schema_from_uri.sum": - 0.0255293, "...": "..."}, "counters": {"Context.StorageManager.read_unfiltered_byte_num": - 191, "...": "..."}}' + 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}]}' + query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3,\ + \ \"end\": 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" username: user1 - bytes_received: 1073741824 - query_stats: '{"timers": {"Context.StorageManager.read_load_array_schema_from_uri.sum": - 0.0255293, "...": "..."}, "counters": {"Context.StorageManager.read_unfiltered_byte_num": - 191, "...": "..."}}' + 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}]}' + 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 - duration: 3.41E+11 + type: null + duration: 341000000000 sql_init_commands: - sql_init_commands - sql_init_commands @@ -13536,11 +14567,13 @@ components: 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 @@ -13554,19 +14587,29 @@ components: 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 @@ -13574,19 +14617,29 @@ components: 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 @@ -13605,6 +14658,7 @@ components: - null size: 1024.0 read_only: false + file_type: null license_id: license_id license_text: license_text access_credentials_name: access_credentials_name @@ -13618,19 +14672,29 @@ components: 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: @@ -13664,8 +14728,11 @@ components: int16: - 1 - 1 + status: null name: name client_node_uuid: client_node_uuid + run_location: null + status: null - depends_on: - depends_on - depends_on @@ -13673,30 +14740,33 @@ components: - memory: 1073741824 activity: - bytes_received: 1073741824 - query_stats: '{"timers": {"Context.StorageManager.read_load_array_schema_from_uri.sum": - 0.0255293, "...": "..."}, "counters": {"Context.StorageManager.read_unfiltered_byte_num": - 191, "...": "..."}}' + 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}]}' + query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3,\ + \ \"end\": 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" username: user1 - bytes_received: 1073741824 - query_stats: '{"timers": {"Context.StorageManager.read_load_array_schema_from_uri.sum": - 0.0255293, "...": "..."}, "counters": {"Context.StorageManager.read_unfiltered_byte_num": - 191, "...": "..."}}' + 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}]}' + 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 - duration: 3.41E+11 + type: null + duration: 341000000000 sql_init_commands: - sql_init_commands - sql_init_commands @@ -13706,11 +14776,13 @@ components: 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 @@ -13724,19 +14796,29 @@ components: 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 @@ -13744,19 +14826,29 @@ components: 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 @@ -13775,6 +14867,7 @@ components: - null size: 1024.0 read_only: false + file_type: null license_id: license_id license_text: license_text access_credentials_name: access_credentials_name @@ -13788,19 +14881,29 @@ components: 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: @@ -13834,33 +14937,37 @@ components: int16: - 1 - 1 + status: null - memory: 1073741824 activity: - bytes_received: 1073741824 - query_stats: '{"timers": {"Context.StorageManager.read_load_array_schema_from_uri.sum": - 0.0255293, "...": "..."}, "counters": {"Context.StorageManager.read_unfiltered_byte_num": - 191, "...": "..."}}' + 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}]}' + query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3,\ + \ \"end\": 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" username: user1 - bytes_received: 1073741824 - query_stats: '{"timers": {"Context.StorageManager.read_load_array_schema_from_uri.sum": - 0.0255293, "...": "..."}, "counters": {"Context.StorageManager.read_unfiltered_byte_num": - 191, "...": "..."}}' + 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}]}' + 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 - duration: 3.41E+11 + type: null + duration: 341000000000 sql_init_commands: - sql_init_commands - sql_init_commands @@ -13870,11 +14977,13 @@ components: 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 @@ -13888,19 +14997,29 @@ components: 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 @@ -13908,19 +15027,29 @@ components: 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 @@ -13939,6 +15068,7 @@ components: - null size: 1024.0 read_only: false + file_type: null license_id: license_id license_text: license_text access_credentials_name: access_credentials_name @@ -13952,19 +15082,29 @@ components: 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: @@ -13998,13 +15138,17 @@ components: 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 @@ -14021,30 +15165,33 @@ components: - memory: 1073741824 activity: - bytes_received: 1073741824 - query_stats: '{"timers": {"Context.StorageManager.read_load_array_schema_from_uri.sum": - 0.0255293, "...": "..."}, "counters": {"Context.StorageManager.read_unfiltered_byte_num": - 191, "...": "..."}}' + 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}]}' + query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3,\ + \ \"end\": 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" username: user1 - bytes_received: 1073741824 - query_stats: '{"timers": {"Context.StorageManager.read_load_array_schema_from_uri.sum": - 0.0255293, "...": "..."}, "counters": {"Context.StorageManager.read_unfiltered_byte_num": - 191, "...": "..."}}' + 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}]}' + 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 - duration: 3.41E+11 + type: null + duration: 341000000000 sql_init_commands: - sql_init_commands - sql_init_commands @@ -14054,11 +15201,13 @@ components: 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 @@ -14072,19 +15221,29 @@ components: 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 @@ -14092,19 +15251,29 @@ components: 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 @@ -14123,6 +15292,7 @@ components: - null size: 1024.0 read_only: false + file_type: null license_id: license_id license_text: license_text access_credentials_name: access_credentials_name @@ -14136,19 +15306,29 @@ components: 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: @@ -14182,33 +15362,37 @@ components: int16: - 1 - 1 + status: null - memory: 1073741824 activity: - bytes_received: 1073741824 - query_stats: '{"timers": {"Context.StorageManager.read_load_array_schema_from_uri.sum": - 0.0255293, "...": "..."}, "counters": {"Context.StorageManager.read_unfiltered_byte_num": - 191, "...": "..."}}' + 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}]}' + query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3,\ + \ \"end\": 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" username: user1 - bytes_received: 1073741824 - query_stats: '{"timers": {"Context.StorageManager.read_load_array_schema_from_uri.sum": - 0.0255293, "...": "..."}, "counters": {"Context.StorageManager.read_unfiltered_byte_num": - 191, "...": "..."}}' + 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}]}' + 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 - duration: 3.41E+11 + type: null + duration: 341000000000 sql_init_commands: - sql_init_commands - sql_init_commands @@ -14218,11 +15402,13 @@ components: 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 @@ -14236,19 +15422,29 @@ components: 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 @@ -14256,19 +15452,29 @@ components: 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 @@ -14287,6 +15493,7 @@ components: - null size: 1024.0 read_only: false + file_type: null license_id: license_id license_text: license_text access_credentials_name: access_credentials_name @@ -14300,19 +15507,29 @@ components: 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: @@ -14346,8 +15563,11 @@ components: int16: - 1 - 1 + status: null name: name client_node_uuid: client_node_uuid + run_location: null + status: null - depends_on: - depends_on - depends_on @@ -14355,30 +15575,33 @@ components: - memory: 1073741824 activity: - bytes_received: 1073741824 - query_stats: '{"timers": {"Context.StorageManager.read_load_array_schema_from_uri.sum": - 0.0255293, "...": "..."}, "counters": {"Context.StorageManager.read_unfiltered_byte_num": - 191, "...": "..."}}' + 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}]}' + query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3,\ + \ \"end\": 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" username: user1 - bytes_received: 1073741824 - query_stats: '{"timers": {"Context.StorageManager.read_load_array_schema_from_uri.sum": - 0.0255293, "...": "..."}, "counters": {"Context.StorageManager.read_unfiltered_byte_num": - 191, "...": "..."}}' + 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}]}' + 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 - duration: 3.41E+11 + type: null + duration: 341000000000 sql_init_commands: - sql_init_commands - sql_init_commands @@ -14388,11 +15611,13 @@ components: 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 @@ -14406,19 +15631,29 @@ components: 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 @@ -14426,19 +15661,29 @@ components: 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 @@ -14457,6 +15702,7 @@ components: - null size: 1024.0 read_only: false + file_type: null license_id: license_id license_text: license_text access_credentials_name: access_credentials_name @@ -14470,19 +15716,29 @@ components: 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: @@ -14516,33 +15772,37 @@ components: int16: - 1 - 1 + status: null - memory: 1073741824 activity: - bytes_received: 1073741824 - query_stats: '{"timers": {"Context.StorageManager.read_load_array_schema_from_uri.sum": - 0.0255293, "...": "..."}, "counters": {"Context.StorageManager.read_unfiltered_byte_num": - 191, "...": "..."}}' + 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}]}' + query_ranges: "{\"rows\":[{\"start\": 1, \"end\": 1},{\"start\": 3,\ + \ \"end\": 4}],\"cols\":[{\"start\": 1, \"end\": 4}]}" username: user1 - bytes_received: 1073741824 - query_stats: '{"timers": {"Context.StorageManager.read_load_array_schema_from_uri.sum": - 0.0255293, "...": "..."}, "counters": {"Context.StorageManager.read_unfiltered_byte_num": - 191, "...": "..."}}' + 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}]}' + 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 - duration: 3.41E+11 + type: null + duration: 341000000000 sql_init_commands: - sql_init_commands - sql_init_commands @@ -14552,11 +15812,13 @@ components: 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 @@ -14570,19 +15832,29 @@ components: 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 @@ -14590,19 +15862,29 @@ components: 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 @@ -14621,6 +15903,7 @@ components: - null size: 1024.0 read_only: false + file_type: null license_id: license_id license_text: license_text access_credentials_name: access_credentials_name @@ -14634,19 +15917,29 @@ components: 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: @@ -14680,13 +15973,17 @@ components: 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. @@ -14701,6 +15998,7 @@ components: 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 @@ -14714,6 +16012,7 @@ components: nodes: - array_node: ranges: + layout: null ranges: - - 0.8008281904610115 - 0.8008281904610115 @@ -14729,6 +16028,8 @@ components: - init_commands - init_commands query: query + namespace: namespace + result_format: null parameters: - null - null @@ -14737,24 +16038,29 @@ components: - depends_on input_node: datatype: datatype - default_value: '{}' + 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: '{}' + value: "{}" - name: name - value: '{}' + value: "{}" + result_format: null registered_udf_name: registered_udf_name executable_code: executable_code - array_node: ranges: + layout: null ranges: - - 0.8008281904610115 - 0.8008281904610115 @@ -14770,6 +16076,8 @@ components: - init_commands - init_commands query: query + namespace: namespace + result_format: null parameters: - null - null @@ -14778,20 +16086,24 @@ components: - depends_on input_node: datatype: datatype - default_value: '{}' + 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: '{}' + value: "{}" - name: name - value: '{}' + value: "{}" + result_format: null registered_udf_name: registered_udf_name executable_code: executable_code license_id: license_id @@ -14805,17 +16117,17 @@ components: - tags properties: uuid: - description: A server-assigned unique ID for the UDF, in UUID format. + 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. + 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. + description: "Documentation for the task graph, in Markdown format." type: string license_id: description: SPDX license identifier. @@ -14828,13 +16140,14 @@ components: tags: description: Optional tags to classify the graph. items: - description: Unaccented, lowercase, hyphenated Latin characters. + 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. + 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 @@ -14873,11 +16186,14 @@ components: 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`. + 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 @@ -14893,6 +16209,8 @@ components: - init_commands - init_commands query: query + namespace: namespace + result_format: null parameters: - null - null @@ -14901,20 +16219,24 @@ components: - depends_on input_node: datatype: datatype - default_value: '{}' + 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: '{}' + value: "{}" - name: name - value: '{}' + value: "{}" + result_format: null registered_udf_name: registered_udf_name executable_code: executable_code properties: @@ -14922,8 +16244,8 @@ components: 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. + description: "A client-specified name for the node. If provided, this must\ + \ be unique.\n" nullable: true type: string depends_on: @@ -14942,43 +16264,31 @@ components: $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. + 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: '{}' + 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`. - 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=" - } - } + 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. + 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 @@ -14991,6 +16301,8 @@ components: - init_commands - init_commands query: query + namespace: namespace + result_format: null parameters: - null - null @@ -15002,8 +16314,8 @@ components: 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. + 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: | @@ -15013,6 +16325,11 @@ components: 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: @@ -15021,65 +16338,57 @@ components: 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: '{}' + value: "{}" - name: name - value: '{}' + 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. + 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). + 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. + 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. - 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}, - ] + 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 @@ -15088,95 +16397,88 @@ components: 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. + 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: '{}' + value: "{}" properties: name: - description: The name of the argument, if present. + 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`. - 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=" - } - } + 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`. - 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=" - } - } + 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. + 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. + 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 - inline_response_200: + getTiledbStats_200_response: example: stats: "123" properties: @@ -15185,7 +16487,7 @@ components: example: "123" type: string type: object - inline_object: + resetUserPassword_request: description: Password to update properties: password: @@ -15194,6 +16496,34 @@ components: 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: @@ -15291,15 +16621,18 @@ components: 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' @@ -15321,43 +16654,55 @@ components: start: 2 end: 7 singleRange: - - ranges: + - layout: null + ranges: - hasDefaultRange: true buffer: - 1 - 1 + type: null - hasDefaultRange: true buffer: - 1 - 1 - - ranges: + type: null + - layout: null + ranges: - hasDefaultRange: true buffer: - 1 - 1 + type: null - hasDefaultRange: true buffer: - 1 - 1 + type: null multiRange: - - ranges: + - layout: null + ranges: - hasDefaultRange: true buffer: - 1 - 1 + type: null - hasDefaultRange: true buffer: - 1 - 1 - - ranges: + type: null + - layout: null + ranges: - hasDefaultRange: true buffer: - 1 - 1 + type: null - hasDefaultRange: true buffer: - 1 - 1 + type: null properties: start: description: State start diff --git a/build.gradle b/build.gradle index 5962263..87e58d3 100644 --- a/build.gradle +++ b/build.gradle @@ -27,7 +27,7 @@ apply plugin: 'java' apply plugin: 'com.diffplug.spotless' group 'io.tiledb' -version = '0.0.1' +version = '0.0.5-SNAPSHOT' repositories { mavenCentral() @@ -143,19 +143,22 @@ ext { } dependencies { - implementation 'io.swagger:swagger-annotations:1.5.24' + implementation 'io.swagger:swagger-annotations:1.6.5' implementation "com.google.code.findbugs:jsr305:3.0.2" - implementation 'com.squareup.okhttp3:okhttp:4.9.1' - implementation 'com.squareup.okhttp3:logging-interceptor:4.9.1' - implementation 'com.google.code.gson:gson:2.8.6' - implementation 'io.gsonfire:gson-fire:1.8.4' - implementation 'org.openapitools:jackson-databind-nullable:0.2.1' + implementation 'com.squareup.okhttp3:okhttp:4.9.3' + implementation 'com.squareup.okhttp3:logging-interceptor:4.9.3' + implementation 'com.google.code.gson:gson:2.9.0' + implementation 'io.gsonfire:gson-fire:1.8.5' + implementation 'javax.ws.rs:jsr311-api:1.1.1' + implementation 'javax.ws.rs:javax.ws.rs-api:2.1.1' + implementation 'org.openapitools:jackson-databind-nullable:0.2.3' implementation group: 'org.apache.oltu.oauth2', name: 'org.apache.oltu.oauth2.client', version: '1.0.1' - implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.10' - implementation 'org.threeten:threetenbp:1.4.3' + implementation group: 'org.apache.commons', name: 'commons-lang3', version: '3.12.0' implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version" + testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.2' + testImplementation 'org.mockito:mockito-core:3.12.4' + testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.2' testImplementation 'junit:junit:4.13.1' - testImplementation 'org.mockito:mockito-core:3.11.2' } import org.gradle.plugins.signing.Sign diff --git a/build.sbt b/build.sbt deleted file mode 100644 index 1f8bdc8..0000000 --- a/build.sbt +++ /dev/null @@ -1,27 +0,0 @@ -lazy val root = (project in file(".")). - settings( - organization := "org.openapitools", - name := "openapi-java-client", - version := "2.2.19", - scalaVersion := "2.11.4", - scalacOptions ++= Seq("-feature"), - javacOptions in compile ++= Seq("-Xlint:deprecation"), - publishArtifact in (Compile, packageDoc) := false, - resolvers += Resolver.mavenLocal, - libraryDependencies ++= Seq( - "io.swagger" % "swagger-annotations" % "1.5.24", - "com.squareup.okhttp3" % "okhttp" % "4.9.1", - "com.squareup.okhttp3" % "logging-interceptor" % "4.9.1", - "com.google.code.gson" % "gson" % "2.8.6", - "org.apache.commons" % "commons-lang3" % "3.10", - "org.openapitools" % "jackson-databind-nullable" % "0.2.2", - "org.apache.oltu.oauth2" % "org.apache.oltu.oauth2.client" % "1.0.1", - "org.threeten" % "threetenbp" % "1.4.3" % "compile", - "io.gsonfire" % "gson-fire" % "1.8.3" % "compile", - "jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile", - "com.google.code.findbugs" % "jsr305" % "3.0.2" % "compile", - "jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile", - "junit" % "junit" % "4.13.1" % "test", - "com.novocode" % "junit-interface" % "0.10" % "test" - ) - ) diff --git a/docs/AWSAccessCredentials.md b/docs/AWSAccessCredentials.md index 4e2b088..a041bd5 100644 --- a/docs/AWSAccessCredentials.md +++ b/docs/AWSAccessCredentials.md @@ -6,16 +6,16 @@ Model representing aws keys or service role, service roles are currently ignored ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**secretAccessKey** | **String** | aws secret access key, never returned in get requests | [optional] -**accessKeyId** | **String** | aws access key | [optional] -**serviceRoleArn** | **String** | aws service role to use for access | [optional] -**name** | **String** | human readable name | [optional] -**_default** | **Boolean** | true if this is the default credential to be used within this namespace | [optional] -**buckets** | **List<String>** | a whitelist of one or more buckets this key should access | [optional] -**createdAt** | **OffsetDateTime** | Time when UDF dependencies were created (rfc3339) | [optional] [readonly] -**updatedAt** | **OffsetDateTime** | Time when UDF dependencies was last updated (rfc3339) | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**secretAccessKey** | **String** | aws secret access key, never returned in get requests | [optional] | +|**accessKeyId** | **String** | aws access key | [optional] | +|**serviceRoleArn** | **String** | aws service role to use for access | [optional] | +|**name** | **String** | human readable name | [optional] | +|**_default** | **Boolean** | true if this is the default credential to be used within this namespace | [optional] | +|**buckets** | **List<String>** | a whitelist of one or more buckets this key should access | [optional] | +|**createdAt** | **OffsetDateTime** | Time when UDF dependencies were created (rfc3339) | [optional] [readonly] | +|**updatedAt** | **OffsetDateTime** | Time when UDF dependencies was last updated (rfc3339) | [optional] [readonly] | diff --git a/docs/Array.md b/docs/Array.md index fe821ad..acc9bb8 100644 --- a/docs/Array.md +++ b/docs/Array.md @@ -6,11 +6,11 @@ Represents an open array ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**timestamp** | **BigDecimal** | timestamp (epoch milliseconds) array is opened at | -**queryType** | **Querytype** | | -**uri** | **String** | Array uri | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**timestamp** | **BigDecimal** | timestamp (epoch milliseconds) array is opened at | | +|**queryType** | **Querytype** | | | +|**uri** | **String** | Array uri | | diff --git a/docs/ArrayActivityLog.md b/docs/ArrayActivityLog.md index d9c8acd..62433e9 100644 --- a/docs/ArrayActivityLog.md +++ b/docs/ArrayActivityLog.md @@ -6,17 +6,17 @@ Actvity of an Array ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**eventAt** | **OffsetDateTime** | time event took place (RFC3339) | [optional] -**action** | **ActivityEventType** | | [optional] -**username** | **String** | User who performed action | [optional] -**bytesSent** | **Integer** | Bytes sent to client | [optional] -**bytesReceived** | **Integer** | Bytes recieved from client | [optional] -**arrayTaskId** | **String** | UUID of associated array task | [optional] -**id** | **String** | ID of the activity | [optional] -**queryRanges** | **String** | ranges for query | [optional] -**queryStats** | **String** | stats for query | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**eventAt** | **OffsetDateTime** | time event took place (RFC3339) | [optional] | +|**action** | **ActivityEventType** | | [optional] | +|**username** | **String** | User who performed action | [optional] | +|**bytesSent** | **Integer** | Bytes sent to client | [optional] | +|**bytesReceived** | **Integer** | Bytes recieved from client | [optional] | +|**arrayTaskId** | **String** | UUID of associated array task | [optional] | +|**id** | **String** | ID of the activity | [optional] | +|**queryRanges** | **String** | ranges for query | [optional] | +|**queryStats** | **String** | stats for query | [optional] | diff --git a/docs/ArrayApi.md b/docs/ArrayApi.md index e612af0..fe0f98f 100644 --- a/docs/ArrayApi.md +++ b/docs/ArrayApi.md @@ -2,39 +2,39 @@ All URIs are relative to */v1* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**arrayActivityLog**](ArrayApi.md#arrayActivityLog) | **GET** /arrays/{namespace}/{array}/activity | -[**arraysBrowserOwnedGet**](ArrayApi.md#arraysBrowserOwnedGet) | **GET** /arrays/browser/owned | -[**arraysBrowserOwnedSidebarGet**](ArrayApi.md#arraysBrowserOwnedSidebarGet) | **GET** /arrays/browser/owned/sidebar | -[**arraysBrowserPublicGet**](ArrayApi.md#arraysBrowserPublicGet) | **GET** /arrays/browser/public | -[**arraysBrowserPublicSidebarGet**](ArrayApi.md#arraysBrowserPublicSidebarGet) | **GET** /arrays/browser/public/sidebar | -[**arraysBrowserSharedGet**](ArrayApi.md#arraysBrowserSharedGet) | **GET** /arrays/browser/shared | -[**arraysBrowserSharedSidebarGet**](ArrayApi.md#arraysBrowserSharedSidebarGet) | **GET** /arrays/browser/shared/sidebar | -[**arraysNamespaceArrayEndTimestampsGet**](ArrayApi.md#arraysNamespaceArrayEndTimestampsGet) | **GET** /arrays/{namespace}/{array}/end_timestamps | -[**consolidateArray**](ArrayApi.md#consolidateArray) | **POST** /arrays/{namespace}/{array}/consolidate | -[**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 | -[**getActivityLogById**](ArrayApi.md#getActivityLogById) | **GET** /arrays/{namespace}/{array}/activity/{id} | -[**getAllArrayMetadata**](ArrayApi.md#getAllArrayMetadata) | **GET** /arrays | -[**getArray**](ArrayApi.md#getArray) | **GET** /arrays/{namespace}/{array} | -[**getArrayMaxBufferSizes**](ArrayApi.md#getArrayMaxBufferSizes) | **GET** /arrays/{namespace}/{array}/max_buffer_sizes | -[**getArrayMetaDataJson**](ArrayApi.md#getArrayMetaDataJson) | **GET** /arrays/{namespace}/{array}/metadata_json | -[**getArrayMetadata**](ArrayApi.md#getArrayMetadata) | **GET** /arrays/{namespace}/{array}/metadata | -[**getArrayMetadataCapnp**](ArrayApi.md#getArrayMetadataCapnp) | **GET** /arrays/{namespace}/{array}/array_metadata | -[**getArrayNonEmptyDomain**](ArrayApi.md#getArrayNonEmptyDomain) | **GET** /arrays/{namespace}/{array}/non_empty_domain | -[**getArrayNonEmptyDomainJson**](ArrayApi.md#getArrayNonEmptyDomainJson) | **GET** /arrays/{namespace}/{array}/non_empty_domain_json | -[**getArraySampleData**](ArrayApi.md#getArraySampleData) | **GET** /arrays/{namespace}/{array}/sample | -[**getArraySharingPolicies**](ArrayApi.md#getArraySharingPolicies) | **GET** /arrays/{namespace}/{array}/share | -[**getArraysInNamespace**](ArrayApi.md#getArraysInNamespace) | **GET** /arrays/{namespace} | -[**getFragmentEndTimestamp**](ArrayApi.md#getFragmentEndTimestamp) | **GET** /arrays/{namespace}/{array}/fragment_end_timestamp | -[**getLastAccessedArrays**](ArrayApi.md#getLastAccessedArrays) | **GET** /arrays/last_accessed | -[**registerArray**](ArrayApi.md#registerArray) | **POST** /arrays/{namespace}/{array}/register | -[**shareArray**](ArrayApi.md#shareArray) | **PATCH** /arrays/{namespace}/{array}/share | -[**updateArrayMetadata**](ArrayApi.md#updateArrayMetadata) | **PATCH** /arrays/{namespace}/{array}/metadata | -[**updateArrayMetadataCapnp**](ArrayApi.md#updateArrayMetadataCapnp) | **POST** /arrays/{namespace}/{array}/array_metadata | -[**vacuumArray**](ArrayApi.md#vacuumArray) | **POST** /arrays/{namespace}/{array}/vacuum | +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**arrayActivityLog**](ArrayApi.md#arrayActivityLog) | **GET** /arrays/{namespace}/{array}/activity | | +| [**arraysBrowserOwnedGet**](ArrayApi.md#arraysBrowserOwnedGet) | **GET** /arrays/browser/owned | | +| [**arraysBrowserOwnedSidebarGet**](ArrayApi.md#arraysBrowserOwnedSidebarGet) | **GET** /arrays/browser/owned/sidebar | | +| [**arraysBrowserPublicGet**](ArrayApi.md#arraysBrowserPublicGet) | **GET** /arrays/browser/public | | +| [**arraysBrowserPublicSidebarGet**](ArrayApi.md#arraysBrowserPublicSidebarGet) | **GET** /arrays/browser/public/sidebar | | +| [**arraysBrowserSharedGet**](ArrayApi.md#arraysBrowserSharedGet) | **GET** /arrays/browser/shared | | +| [**arraysBrowserSharedSidebarGet**](ArrayApi.md#arraysBrowserSharedSidebarGet) | **GET** /arrays/browser/shared/sidebar | | +| [**arraysNamespaceArrayEndTimestampsGet**](ArrayApi.md#arraysNamespaceArrayEndTimestampsGet) | **GET** /arrays/{namespace}/{array}/end_timestamps | | +| [**consolidateArray**](ArrayApi.md#consolidateArray) | **POST** /arrays/{namespace}/{array}/consolidate | | +| [**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 | | +| [**getActivityLogById**](ArrayApi.md#getActivityLogById) | **GET** /arrays/{namespace}/{array}/activity/{id} | | +| [**getAllArrayMetadata**](ArrayApi.md#getAllArrayMetadata) | **GET** /arrays | | +| [**getArray**](ArrayApi.md#getArray) | **GET** /arrays/{namespace}/{array} | | +| [**getArrayMaxBufferSizes**](ArrayApi.md#getArrayMaxBufferSizes) | **GET** /arrays/{namespace}/{array}/max_buffer_sizes | | +| [**getArrayMetaDataJson**](ArrayApi.md#getArrayMetaDataJson) | **GET** /arrays/{namespace}/{array}/metadata_json | | +| [**getArrayMetadata**](ArrayApi.md#getArrayMetadata) | **GET** /arrays/{namespace}/{array}/metadata | | +| [**getArrayMetadataCapnp**](ArrayApi.md#getArrayMetadataCapnp) | **GET** /arrays/{namespace}/{array}/array_metadata | | +| [**getArrayNonEmptyDomain**](ArrayApi.md#getArrayNonEmptyDomain) | **GET** /arrays/{namespace}/{array}/non_empty_domain | | +| [**getArrayNonEmptyDomainJson**](ArrayApi.md#getArrayNonEmptyDomainJson) | **GET** /arrays/{namespace}/{array}/non_empty_domain_json | | +| [**getArraySampleData**](ArrayApi.md#getArraySampleData) | **GET** /arrays/{namespace}/{array}/sample | | +| [**getArraySharingPolicies**](ArrayApi.md#getArraySharingPolicies) | **GET** /arrays/{namespace}/{array}/share | | +| [**getArraysInNamespace**](ArrayApi.md#getArraysInNamespace) | **GET** /arrays/{namespace} | | +| [**getFragmentEndTimestamp**](ArrayApi.md#getFragmentEndTimestamp) | **GET** /arrays/{namespace}/{array}/fragment_end_timestamp | | +| [**getLastAccessedArrays**](ArrayApi.md#getLastAccessedArrays) | **GET** /arrays/last_accessed | | +| [**registerArray**](ArrayApi.md#registerArray) | **POST** /arrays/{namespace}/{array}/register | | +| [**shareArray**](ArrayApi.md#shareArray) | **PATCH** /arrays/{namespace}/{array}/share | | +| [**updateArrayMetadata**](ArrayApi.md#updateArrayMetadata) | **PATCH** /arrays/{namespace}/{array}/metadata | | +| [**updateArrayMetadataCapnp**](ArrayApi.md#updateArrayMetadataCapnp) | **POST** /arrays/{namespace}/{array}/array_metadata | | +| [**vacuumArray**](ArrayApi.md#vacuumArray) | **POST** /arrays/{namespace}/{array}/vacuum | | @@ -95,15 +95,15 @@ public class Example { ### 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 | - **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] - **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] +| 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 | | +| **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] | +| **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] | ### Return type @@ -121,8 +121,8 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | log of array activity | - | -**0** | error response | - | +| **200** | log of array activity | - | +| **0** | error response | - | # **arraysBrowserOwnedGet** @@ -186,19 +186,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **page** | **Integer**| pagination offset | [optional] - **perPage** | **Integer**| pagination limit | [optional] - **search** | **String**| search string that will look at name, namespace or description fields | [optional] - **namespace** | **String**| namespace | [optional] - **orderby** | **String**| sort by which field valid values include last_accessed, size, name | [optional] - **permissions** | **String**| permissions valid values include read, read_write, write, admin | [optional] - **tag** | [**List<String>**](String.md)| tag to search for, more than one can be included | [optional] - **excludeTag** | [**List<String>**](String.md)| tags to exclude matching array in results, more than one can be included | [optional] - **fileType** | [**List<String>**](String.md)| file_type to search for, more than one can be included | [optional] - **excludeFileType** | [**List<String>**](String.md)| file_type to exclude matching array in results, more than one can be included | [optional] - **fileProperty** | [**List<String>**](String.md)| file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **page** | **Integer**| pagination offset | [optional] | +| **perPage** | **Integer**| pagination limit | [optional] | +| **search** | **String**| search string that will look at name, namespace or description fields | [optional] | +| **namespace** | **String**| namespace | [optional] | +| **orderby** | **String**| sort by which field valid values include last_accessed, size, name | [optional] | +| **permissions** | **String**| permissions valid values include read, read_write, write, admin | [optional] | +| **tag** | [**List<String>**](String.md)| tag to search for, more than one can be included | [optional] | +| **excludeTag** | [**List<String>**](String.md)| tags to exclude matching array in results, more than one can be included | [optional] | +| **fileType** | [**List<String>**](String.md)| file_type to search for, more than one can be included | [optional] | +| **excludeFileType** | [**List<String>**](String.md)| file_type to exclude matching array in results, more than one can be included | [optional] | +| **fileProperty** | [**List<String>**](String.md)| file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included | [optional] | ### Return type @@ -216,8 +216,8 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Array of array info that are owned directly by user or user's organizations | - | -**0** | error response | - | +| **200** | Array of array info that are owned directly by user or user's organizations | - | +| **0** | error response | - | # **arraysBrowserOwnedSidebarGet** @@ -287,8 +287,8 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Array of array info that are owned directly by user or user's organizations | - | -**0** | error response | - | +| **200** | Array of array info that are owned directly by user or user's organizations | - | +| **0** | error response | - | # **arraysBrowserPublicGet** @@ -352,19 +352,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **page** | **Integer**| pagination offset | [optional] - **perPage** | **Integer**| pagination limit | [optional] - **search** | **String**| search string that will look at name, namespace or description fields | [optional] - **namespace** | **String**| namespace | [optional] - **orderby** | **String**| sort by which field valid values include last_accessed, size, name | [optional] - **permissions** | **String**| permissions valid values include read, read_write, write, admin | [optional] - **tag** | [**List<String>**](String.md)| tag to search for, more than one can be included | [optional] - **excludeTag** | [**List<String>**](String.md)| tags to exclude matching array in results, more than one can be included | [optional] - **fileType** | [**List<String>**](String.md)| file_type to search for, more than one can be included | [optional] - **excludeFileType** | [**List<String>**](String.md)| file_type to exclude matching array in results, more than one can be included | [optional] - **fileProperty** | [**List<String>**](String.md)| file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **page** | **Integer**| pagination offset | [optional] | +| **perPage** | **Integer**| pagination limit | [optional] | +| **search** | **String**| search string that will look at name, namespace or description fields | [optional] | +| **namespace** | **String**| namespace | [optional] | +| **orderby** | **String**| sort by which field valid values include last_accessed, size, name | [optional] | +| **permissions** | **String**| permissions valid values include read, read_write, write, admin | [optional] | +| **tag** | [**List<String>**](String.md)| tag to search for, more than one can be included | [optional] | +| **excludeTag** | [**List<String>**](String.md)| tags to exclude matching array in results, more than one can be included | [optional] | +| **fileType** | [**List<String>**](String.md)| file_type to search for, more than one can be included | [optional] | +| **excludeFileType** | [**List<String>**](String.md)| file_type to exclude matching array in results, more than one can be included | [optional] | +| **fileProperty** | [**List<String>**](String.md)| file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included | [optional] | ### Return type @@ -382,8 +382,8 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Array of array info that has been shared publically | - | -**0** | error response | - | +| **200** | Array of array info that has been shared publically | - | +| **0** | error response | - | # **arraysBrowserPublicSidebarGet** @@ -453,12 +453,12 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Array of array info that has been shared publically | - | -**0** | error response | - | +| **200** | Array of array info that has been shared publically | - | +| **0** | error response | - | # **arraysBrowserSharedGet** -> ArrayBrowserData arraysBrowserSharedGet(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty) +> ArrayBrowserData arraysBrowserSharedGet(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, sharedTo) @@ -502,8 +502,9 @@ public class Example { List fileType = Arrays.asList(); // List | file_type to search for, more than one can be included List excludeFileType = Arrays.asList(); // List | file_type to exclude matching array in results, more than one can be included List fileProperty = Arrays.asList(); // List | file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included + List sharedTo = Arrays.asList(); // List | namespaces to filter results of where there arrays were shared to try { - ArrayBrowserData result = apiInstance.arraysBrowserSharedGet(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty); + ArrayBrowserData result = apiInstance.arraysBrowserSharedGet(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, sharedTo); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ArrayApi#arraysBrowserSharedGet"); @@ -518,19 +519,20 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **page** | **Integer**| pagination offset | [optional] - **perPage** | **Integer**| pagination limit | [optional] - **search** | **String**| search string that will look at name, namespace or description fields | [optional] - **namespace** | **String**| namespace | [optional] - **orderby** | **String**| sort by which field valid values include last_accessed, size, name | [optional] - **permissions** | **String**| permissions valid values include read, read_write, write, admin | [optional] - **tag** | [**List<String>**](String.md)| tag to search for, more than one can be included | [optional] - **excludeTag** | [**List<String>**](String.md)| tags to exclude matching array in results, more than one can be included | [optional] - **fileType** | [**List<String>**](String.md)| file_type to search for, more than one can be included | [optional] - **excludeFileType** | [**List<String>**](String.md)| file_type to exclude matching array in results, more than one can be included | [optional] - **fileProperty** | [**List<String>**](String.md)| file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **page** | **Integer**| pagination offset | [optional] | +| **perPage** | **Integer**| pagination limit | [optional] | +| **search** | **String**| search string that will look at name, namespace or description fields | [optional] | +| **namespace** | **String**| namespace | [optional] | +| **orderby** | **String**| sort by which field valid values include last_accessed, size, name | [optional] | +| **permissions** | **String**| permissions valid values include read, read_write, write, admin | [optional] | +| **tag** | [**List<String>**](String.md)| tag to search for, more than one can be included | [optional] | +| **excludeTag** | [**List<String>**](String.md)| tags to exclude matching array in results, more than one can be included | [optional] | +| **fileType** | [**List<String>**](String.md)| file_type to search for, more than one can be included | [optional] | +| **excludeFileType** | [**List<String>**](String.md)| file_type to exclude matching array in results, more than one can be included | [optional] | +| **fileProperty** | [**List<String>**](String.md)| file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included | [optional] | +| **sharedTo** | [**List<String>**](String.md)| namespaces to filter results of where there arrays were shared to | [optional] | ### Return type @@ -548,8 +550,8 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Array of array info that has been shared with the user | - | -**0** | error response | - | +| **200** | Array of array info that has been shared with the user | - | +| **0** | error response | - | # **arraysBrowserSharedSidebarGet** @@ -619,8 +621,8 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Array of array info that has been shared with the user | - | -**0** | error response | - | +| **200** | Array of array info that has been shared with the user | - | +| **0** | error response | - | # **arraysNamespaceArrayEndTimestampsGet** @@ -677,12 +679,12 @@ public class Example { ### 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 | - **page** | **Integer**| pagination offset | [optional] - **perPage** | **Integer**| pagination limit | [optional] +| 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 | | +| **page** | **Integer**| pagination offset | [optional] | +| **perPage** | **Integer**| pagination limit | [optional] | ### Return type @@ -700,8 +702,8 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | list of timestamps in milliseconds, paginated | - | -**0** | error response | - | +| **200** | list of timestamps in milliseconds, paginated | - | +| **0** | error response | - | # **consolidateArray** @@ -756,11 +758,11 @@ public class Example { ### 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 | - **tiledbConfig** | [**TileDBConfig**](TileDBConfig.md)| tiledb configuration | +| 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 | | +| **tiledbConfig** | [**TileDBConfig**](TileDBConfig.md)| tiledb configuration | | ### Return type @@ -778,8 +780,8 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | array consolidated successfully | - | -**0** | error response | - | +| **204** | array consolidated successfully | - | +| **0** | error response | - | # **createArray** @@ -836,13 +838,13 @@ public class Example { ### 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] - **arraySchema** | [**ArraySchema**](ArraySchema.md)| ArraySchema being created | - **X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME** | **String**| Optional registered access credentials to use for creation | [optional] +| 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] | +| **arraySchema** | [**ArraySchema**](ArraySchema.md)| ArraySchema being created | | +| **X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME** | **String**| Optional registered access credentials to use for creation | [optional] | ### Return type @@ -860,8 +862,8 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | schema created successfully | - | -**0** | error response | - | +| **204** | schema created successfully | - | +| **0** | error response | - | # **deleteArray** @@ -916,11 +918,11 @@ public class Example { ### 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] +| 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] | ### Return type @@ -938,8 +940,8 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | delete array successful | - | -**0** | error response | - | +| **204** | delete array successful | - | +| **0** | error response | - | # **deregisterArray** @@ -993,10 +995,10 @@ public class Example { ### 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 | +| 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 | | ### Return type @@ -1014,8 +1016,8 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | deregistered array successful | - | -**0** | error response | - | +| **204** | deregistered array successful | - | +| **0** | error response | - | # **getActivityLogById** @@ -1071,11 +1073,11 @@ public class Example { ### 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 | - **id** | **String**| ID of the activity | +| 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 | | +| **id** | **String**| ID of the activity | | ### Return type @@ -1093,8 +1095,8 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | array activity | - | -**0** | error response | - | +| **200** | array activity | - | +| **0** | error response | - | # **getAllArrayMetadata** @@ -1148,9 +1150,9 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **publicShare** | **String**| Public share values can be one of exclude, only | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **publicShare** | **String**| Public share values can be one of exclude, only | [optional] | ### Return type @@ -1168,8 +1170,8 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | array metadata for all arrays user has access to | - | -**0** | error response | - | +| **200** | array metadata for all arrays user has access to | - | +| **0** | error response | - | # **getArray** @@ -1225,11 +1227,11 @@ public class Example { ### 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] +| 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] | ### Return type @@ -1247,8 +1249,8 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | get ArraySchema | - | -**0** | error response | - | +| **200** | get ArraySchema | - | +| **0** | error response | - | # **getArrayMaxBufferSizes** @@ -1306,13 +1308,13 @@ public class Example { ### 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 | - **subarray** | **String**| CSV string of subarray to get max buffer sizes for | - **contentType** | **String**| Content Type of input and return mime | [default to application/json] - **xPayer** | **String**| Name of organization or user who should be charged for this request | [optional] +| 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 | | +| **subarray** | **String**| CSV string of subarray to get max buffer sizes for | | +| **contentType** | **String**| Content Type of input and return mime | [default to application/json] | +| **xPayer** | **String**| Name of organization or user who should be charged for this request | [optional] | ### Return type @@ -1330,8 +1332,8 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | get the max buffer sizes of an array for a subarray | - | -**0** | error response | - | +| **200** | get the max buffer sizes of an array for a subarray | - | +| **0** | error response | - | # **getArrayMetaDataJson** @@ -1388,12 +1390,12 @@ public class Example { ### 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 | - **length** | **Integer**| (optional) limit character length of returned values | [optional] - **endTimestamp** | **Integer**| Milliseconds since Unix epoch, metadata will use open_at functionality to open array at the specific timestamp | [optional] +| 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 | | +| **length** | **Integer**| (optional) limit character length of returned values | [optional] | +| **endTimestamp** | **Integer**| Milliseconds since Unix epoch, metadata will use open_at functionality to open array at the specific timestamp | [optional] | ### Return type @@ -1411,8 +1413,8 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | get array metadata | - | -**0** | error response | - | +| **200** | get array metadata | - | +| **0** | error response | - | # **getArrayMetadata** @@ -1467,10 +1469,10 @@ public class Example { ### 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 | +| 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 | | ### Return type @@ -1488,8 +1490,8 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | array metadata for an array | - | -**0** | error response | - | +| **200** | array metadata for an array | - | +| **0** | error response | - | # **getArrayMetadataCapnp** @@ -1544,10 +1546,10 @@ public class Example { ### 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 | +| 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 | | ### Return type @@ -1565,8 +1567,8 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | array metadata for an array | - | -**0** | error response | - | +| **200** | array metadata for an array | - | +| **0** | error response | - | # **getArrayNonEmptyDomain** @@ -1623,12 +1625,12 @@ public class Example { ### 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] - **xPayer** | **String**| Name of organization or user who should be charged for this request | [optional] +| 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] | +| **xPayer** | **String**| Name of organization or user who should be charged for this request | [optional] | ### Return type @@ -1646,8 +1648,8 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | get the non empty domain of an array | - | -**0** | error response | - | +| **200** | get the non empty domain of an array | - | +| **0** | error response | - | # **getArrayNonEmptyDomainJson** @@ -1702,10 +1704,10 @@ public class Example { ### 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 | +| 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 | | ### Return type @@ -1723,8 +1725,8 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | get array non-empty domaim | - | -**0** | error response | - | +| **200** | get array non-empty domaim | - | +| **0** | error response | - | # **getArraySampleData** @@ -1780,11 +1782,11 @@ public class Example { ### 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 | - **samples** | **BigDecimal**| Number of sample results to return | [optional] [default to 5.0] +| 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 | | +| **samples** | **BigDecimal**| Number of sample results to return | [optional] [default to 5.0] | ### Return type @@ -1802,8 +1804,8 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | get array sample data | - | -**0** | error response | - | +| **200** | get array sample data | - | +| **0** | error response | - | # **getArraySharingPolicies** @@ -1858,10 +1860,10 @@ public class Example { ### 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 | +| 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 | | ### Return type @@ -1879,9 +1881,9 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | List of all specific sharing policies | - | -**404** | Array does not exist or user does not have permissions to view array-sharing policies | - | -**0** | error response | - | +| **200** | List of all specific sharing policies | - | +| **404** | Array does not exist or user does not have permissions to view array-sharing policies | - | +| **0** | error response | - | # **getArraysInNamespace** @@ -1935,9 +1937,9 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| namespace array is in (an organization name or user's username) | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| namespace array is in (an organization name or user's username) | | ### Return type @@ -1955,8 +1957,8 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | array metadata for all arrays in a namespace | - | -**0** | error response | - | +| **200** | array metadata for all arrays in a namespace | - | +| **0** | error response | - | # **getFragmentEndTimestamp** @@ -2012,11 +2014,11 @@ public class Example { ### 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 | - **endTimestamp** | **Integer**| Milliseconds since Unix epoch | [optional] +| 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 | | +| **endTimestamp** | **Integer**| Milliseconds since Unix epoch | [optional] | ### Return type @@ -2034,8 +2036,8 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | fragment end_timestamp on an array | - | -**0** | error response | - | +| **200** | fragment end_timestamp on an array | - | +| **0** | error response | - | # **getLastAccessedArrays** @@ -2103,8 +2105,8 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | gets last accessed arrays | - | -**0** | error response | - | +| **200** | gets last accessed arrays | - | +| **0** | error response | - | # **registerArray** @@ -2160,11 +2162,11 @@ public class Example { ### 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 | - **arrayMetadata** | [**ArrayInfoUpdate**](ArrayInfoUpdate.md)| metadata associated with array | +| 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 | | +| **arrayMetadata** | [**ArrayInfoUpdate**](ArrayInfoUpdate.md)| metadata associated with array | | ### Return type @@ -2182,8 +2184,8 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | array registered successfully | - | -**0** | error response | - | +| **200** | array registered successfully | - | +| **0** | error response | - | # **shareArray** @@ -2238,11 +2240,11 @@ public class Example { ### 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 | - **arraySharing** | [**ArraySharing**](ArraySharing.md)| 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. | +| 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 | | +| **arraySharing** | [**ArraySharing**](ArraySharing.md)| 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. | | ### Return type @@ -2260,9 +2262,9 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Array shared successfully | - | -**404** | Array does not exist or user does not have permissions to share array | - | -**0** | error response | - | +| **204** | Array shared successfully | - | +| **404** | Array does not exist or user does not have permissions to share array | - | +| **0** | error response | - | # **updateArrayMetadata** @@ -2317,11 +2319,11 @@ public class Example { ### 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 | - **arrayMetadata** | [**ArrayInfoUpdate**](ArrayInfoUpdate.md)| array metadata to update | +| 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 | | +| **arrayMetadata** | [**ArrayInfoUpdate**](ArrayInfoUpdate.md)| array metadata to update | | ### Return type @@ -2339,8 +2341,8 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | array metadata updated successfully | - | -**0** | error response | - | +| **204** | array metadata updated successfully | - | +| **0** | error response | - | # **updateArrayMetadataCapnp** @@ -2395,11 +2397,11 @@ public class Example { ### 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 | - **arrayMetadataEntries** | [**ArrayMetadata**](ArrayMetadata.md)| List of metadata entries | +| 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 | | +| **arrayMetadataEntries** | [**ArrayMetadata**](ArrayMetadata.md)| List of metadata entries | | ### Return type @@ -2417,8 +2419,8 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | array metadata updated successfully | - | -**0** | error response | - | +| **200** | array metadata updated successfully | - | +| **0** | error response | - | # **vacuumArray** @@ -2473,11 +2475,11 @@ public class Example { ### 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 | - **tiledbConfig** | [**TileDBConfig**](TileDBConfig.md)| tiledb configuration | +| 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 | | +| **tiledbConfig** | [**TileDBConfig**](TileDBConfig.md)| tiledb configuration | | ### Return type @@ -2495,6 +2497,6 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | array vacuumed successfully | - | -**0** | error response | - | +| **204** | array vacuumed successfully | - | +| **0** | error response | - | diff --git a/docs/ArrayBrowserData.md b/docs/ArrayBrowserData.md index 65d0966..9f6e982 100644 --- a/docs/ArrayBrowserData.md +++ b/docs/ArrayBrowserData.md @@ -6,10 +6,10 @@ Object including array info and pagination metadata ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**arrays** | [**List<ArrayInfo>**](ArrayInfo.md) | Array Info | [optional] -**paginationMetadata** | [**PaginationMetadata**](PaginationMetadata.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**arrays** | [**List<ArrayInfo>**](ArrayInfo.md) | Array Info | [optional] | +|**paginationMetadata** | [**PaginationMetadata**](PaginationMetadata.md) | | [optional] | diff --git a/docs/ArrayBrowserSidebar.md b/docs/ArrayBrowserSidebar.md index 2c70432..4be4169 100644 --- a/docs/ArrayBrowserSidebar.md +++ b/docs/ArrayBrowserSidebar.md @@ -6,11 +6,11 @@ Object for ui array tasks browser page ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**namespaces** | **List<String>** | list of all unique namespaces to display | [optional] -**resultCountForAll** | **Integer** | A count of \"all\" of category | [optional] -**resultCountByNamespace** | **Object** | A map that includes the result count by namespace | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**namespaces** | **List<String>** | list of all unique namespaces to display | [optional] | +|**resultCountForAll** | **Integer** | A count of \"all\" of category | [optional] | +|**resultCountByNamespace** | **Object** | A map that includes the result count by namespace | [optional] | diff --git a/docs/ArrayEndTimestampData.md b/docs/ArrayEndTimestampData.md index 10b4af8..32a109e 100644 --- a/docs/ArrayEndTimestampData.md +++ b/docs/ArrayEndTimestampData.md @@ -6,10 +6,10 @@ Object including array end_timestamps (list of Unix epoch timestamps in millisec ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**endTimestamps** | **List<Integer>** | List of timestamps expressed in milliseconds since Unix epoch | [optional] -**paginationMetadata** | [**PaginationMetadata**](PaginationMetadata.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**endTimestamps** | **List<Integer>** | List of timestamps expressed in milliseconds since Unix epoch | [optional] | +|**paginationMetadata** | [**PaginationMetadata**](PaginationMetadata.md) | | [optional] | diff --git a/docs/ArrayFavorite.md b/docs/ArrayFavorite.md index f7d0bfe..10a06a3 100644 --- a/docs/ArrayFavorite.md +++ b/docs/ArrayFavorite.md @@ -6,11 +6,11 @@ A user-favorite array item ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**arrayUuid** | **String** | unique UUID of the array | [optional] -**namespace** | **String** | the namespace of the array | [optional] -**name** | **String** | the name of the array | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**arrayUuid** | **String** | unique UUID of the array | [optional] | +|**namespace** | **String** | the namespace of the array | [optional] | +|**name** | **String** | the name of the array | [optional] | diff --git a/docs/ArrayFavoritesData.md b/docs/ArrayFavoritesData.md index 775316f..2118343 100644 --- a/docs/ArrayFavoritesData.md +++ b/docs/ArrayFavoritesData.md @@ -6,10 +6,10 @@ Object including array favorites and pagination metadata ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**arrays** | [**List<ArrayInfo>**](ArrayInfo.md) | List of array infos | [optional] -**paginationMetadata** | [**PaginationMetadata**](PaginationMetadata.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**arrays** | [**List<ArrayInfo>**](ArrayInfo.md) | List of array infos | [optional] | +|**paginationMetadata** | [**PaginationMetadata**](PaginationMetadata.md) | | [optional] | diff --git a/docs/ArrayInfo.md b/docs/ArrayInfo.md index 4a03576..ab0bd1e 100644 --- a/docs/ArrayInfo.md +++ b/docs/ArrayInfo.md @@ -6,32 +6,32 @@ metadata of an array ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | unique ID of registered array | [optional] -**fileType** | **FileType** | | [optional] -**fileProperties** | **Map<String, String>** | map of file properties created for this array | [optional] -**uri** | **String** | uri of array | [optional] -**namespace** | **String** | namespace array is in | [optional] -**size** | **BigDecimal** | size in bytes of array | [optional] -**lastAccessed** | **OffsetDateTime** | Datetime array was last accessed in UTC | [optional] -**description** | **String** | description of array | [optional] -**name** | **String** | name of array | [optional] -**allowedActions** | **List<ArrayActions>** | list of actions user is allowed to do on this array | [optional] -**pricing** | [**List<Pricing>**](Pricing.md) | list of pricing created for this array | [optional] -**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] -**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] -**tiledbUri** | **String** | uri for access through TileDB cloud | [optional] -**tags** | **List<String>** | optional tags for array | [optional] -**licenseId** | **String** | License identifier from SPDX License List or Custom | [optional] -**licenseText** | **String** | License text | [optional] -**readOnly** | **Boolean** | Suggests if the array is in read_only mode | [optional] -**isFavorite** | **Boolean** | Indicates whether the array is in user favorites | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | unique ID of registered array | [optional] | +|**fileType** | **FileType** | | [optional] | +|**fileProperties** | **Map<String, String>** | map of file properties created for this array | [optional] | +|**uri** | **String** | uri of array | [optional] | +|**namespace** | **String** | namespace array is in | [optional] | +|**size** | **BigDecimal** | size in bytes of array | [optional] | +|**lastAccessed** | **OffsetDateTime** | Datetime array was last accessed in UTC | [optional] | +|**description** | **String** | description of array | [optional] | +|**name** | **String** | name of array | [optional] | +|**allowedActions** | **List<ArrayActions>** | list of actions user is allowed to do on this array | [optional] | +|**pricing** | [**List<Pricing>**](Pricing.md) | list of pricing created for this array | [optional] | +|**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] | +|**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] | +|**tiledbUri** | **String** | uri for access through TileDB cloud | [optional] | +|**tags** | **List<String>** | optional tags for array | [optional] | +|**licenseId** | **String** | License identifier from SPDX License List or Custom | [optional] | +|**licenseText** | **String** | License text | [optional] | +|**readOnly** | **Boolean** | Suggests if the array is in read_only mode | [optional] | +|**isFavorite** | **Boolean** | Indicates whether the array is in user favorites | [optional] | diff --git a/docs/ArrayInfoUpdate.md b/docs/ArrayInfoUpdate.md index 2a3928c..8595020 100644 --- a/docs/ArrayInfoUpdate.md +++ b/docs/ArrayInfoUpdate.md @@ -6,19 +6,19 @@ metadata of an array ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**description** | **String** | description of array | [optional] -**name** | **String** | description of array | [optional] -**uri** | **String** | uri of array | [optional] -**fileType** | **FileType** | | [optional] -**fileProperties** | **Map<String, String>** | map of file properties created for this array | [optional] -**accessCredentialsName** | **String** | the name of the access credentials to use. if unset, the default credentials will be used | [optional] -**logo** | **String** | logo (base64 encoded) for the array. Optional | [optional] -**tags** | **List<String>** | optional tags for array | [optional] -**licenseId** | **String** | License identifier from SPDX License List or Custom | [optional] -**licenseText** | **String** | License text | [optional] -**readOnly** | **Boolean** | Suggests if the array is in read_only mode | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**description** | **String** | description of array | [optional] | +|**name** | **String** | description of array | [optional] | +|**uri** | **String** | uri of array | [optional] | +|**fileType** | **FileType** | | [optional] | +|**fileProperties** | **Map<String, String>** | map of file properties created for this array | [optional] | +|**accessCredentialsName** | **String** | the name of the access credentials to use. if unset, the default credentials will be used | [optional] | +|**logo** | **String** | logo (base64 encoded) for the array. Optional | [optional] | +|**tags** | **List<String>** | optional tags for array | [optional] | +|**licenseId** | **String** | License identifier from SPDX License List or Custom | [optional] | +|**licenseText** | **String** | License text | [optional] | +|**readOnly** | **Boolean** | Suggests if the array is in read_only mode | [optional] | diff --git a/docs/ArrayMetadata.md b/docs/ArrayMetadata.md index 75a9fd5..3157292 100644 --- a/docs/ArrayMetadata.md +++ b/docs/ArrayMetadata.md @@ -6,9 +6,9 @@ user's TileDB array metadata ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**entries** | [**List<ArrayMetadataEntry>**](ArrayMetadataEntry.md) | List of metadata entries | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**entries** | [**List<ArrayMetadataEntry>**](ArrayMetadataEntry.md) | List of metadata entries | [optional] | diff --git a/docs/ArrayMetadataEntry.md b/docs/ArrayMetadataEntry.md index acef8f2..95396bb 100644 --- a/docs/ArrayMetadataEntry.md +++ b/docs/ArrayMetadataEntry.md @@ -6,13 +6,13 @@ key/value pair representing an array metadata map entry ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**key** | **String** | | [optional] -**type** | **String** | | [optional] -**valueNum** | **Integer** | | [optional] -**value** | **List<Integer>** | | [optional] -**del** | **Boolean** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**key** | **String** | | [optional] | +|**type** | **String** | | [optional] | +|**valueNum** | **Integer** | | [optional] | +|**value** | **List<Integer>** | | [optional] | +|**del** | **Boolean** | | [optional] | diff --git a/docs/ArraySample.md b/docs/ArraySample.md index c1ec7e8..d14101d 100644 --- a/docs/ArraySample.md +++ b/docs/ArraySample.md @@ -6,9 +6,9 @@ Sample data from array ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | **Object** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | **Object** | | [optional] | diff --git a/docs/ArraySchema.md b/docs/ArraySchema.md index 711ac72..09cfc17 100644 --- a/docs/ArraySchema.md +++ b/docs/ArraySchema.md @@ -6,19 +6,19 @@ ArraySchema during creation or retrieval ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**uri** | **String** | URI of schema | [optional] -**version** | **List<Integer>** | file format version | -**arrayType** | **ArrayType** | | -**tileOrder** | **Layout** | | -**cellOrder** | **Layout** | | -**capacity** | **Integer** | Capacity of array | -**coordsFilterPipeline** | [**FilterPipeline**](FilterPipeline.md) | | -**offsetFilterPipeline** | [**FilterPipeline**](FilterPipeline.md) | | -**domain** | [**Domain**](Domain.md) | | -**attributes** | [**List<Attribute>**](Attribute.md) | Attributes of array | -**allowsDuplicates** | **Boolean** | True if the array allows coordinate duplicates. Applicable only to sparse arrays. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**uri** | **String** | URI of schema | [optional] | +|**version** | **List<Integer>** | file format version | | +|**arrayType** | **ArrayType** | | | +|**tileOrder** | **Layout** | | | +|**cellOrder** | **Layout** | | | +|**capacity** | **Integer** | Capacity of array | | +|**coordsFilterPipeline** | [**FilterPipeline**](FilterPipeline.md) | | | +|**offsetFilterPipeline** | [**FilterPipeline**](FilterPipeline.md) | | | +|**domain** | [**Domain**](Domain.md) | | | +|**attributes** | [**List<Attribute>**](Attribute.md) | Attributes of array | | +|**allowsDuplicates** | **Boolean** | True if the array allows coordinate duplicates. Applicable only to sparse arrays. | [optional] | diff --git a/docs/ArraySharing.md b/docs/ArraySharing.md index 6021573..a9c9903 100644 --- a/docs/ArraySharing.md +++ b/docs/ArraySharing.md @@ -6,11 +6,11 @@ details for sharing a given array ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**actions** | **List<ArrayActions>** | List of permitted actions | [optional] -**namespace** | **String** | namespace being granted array access can be a user or organization | [optional] -**namespaceType** | **String** | details on if the namespace is a organization or user | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**actions** | **List<ArrayActions>** | List of permitted actions | [optional] | +|**namespace** | **String** | namespace being granted array access can be a user or organization | [optional] | +|**namespaceType** | **String** | details on if the namespace is a organization or user | [optional] | diff --git a/docs/ArrayTask.md b/docs/ArrayTask.md index fdd6875..99b43c1 100644 --- a/docs/ArrayTask.md +++ b/docs/ArrayTask.md @@ -6,35 +6,35 @@ Synchronous Task to Run ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | task ID | [optional] -**name** | **String** | Optional task name | [optional] -**description** | **String** | Optional task description (Tasks purpose) | [optional] -**arrayMetadata** | [**ArrayInfo**](ArrayInfo.md) | | [optional] -**subarray** | [**DomainArray**](DomainArray.md) | | [optional] -**memory** | **Integer** | memory allocated to task in bytes | [optional] -**cpu** | **Integer** | millicpu allocated to task | [optional] -**namespace** | **String** | namespace task is tied to | [optional] -**status** | **ArrayTaskStatus** | | [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] -**egressCost** | **Double** | Total accumulated for egress task in USD, example is $0.12 | [optional] -**accessCost** | **Double** | Cost accumulated for access task in USD, example is $0.12 | [optional] -**queryType** | **Querytype** | | [optional] -**udfCode** | **String** | Optional actual code that is going to be executed | [optional] -**udfLanguage** | **String** | Optional actual language used to express udf_code | [optional] -**sqlQuery** | **String** | Optional actual sql query that is going to be executed | [optional] -**type** | **ArrayTaskType** | | [optional] -**activity** | [**List<ArrayActivityLog>**](ArrayActivityLog.md) | Array activity logs for task | [optional] -**logs** | **String** | logs from array task | [optional] -**duration** | **BigDecimal** | duration in nanoseconds of an array task | [optional] -**sqlInitCommands** | **List<String>** | SQL queries or commands to run before main sql query | [optional] -**sqlParameters** | **List<Object>** | SQL query parameters | [optional] -**resultFormat** | **ResultFormat** | | [optional] -**taskGraphUuid** | **String** | If set, the ID of the log for the task graph that this was part of. | [optional] -**clientNodeUuid** | **String** | If set, the client-defined ID of the node within this task's graph. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | task ID | [optional] | +|**name** | **String** | Optional task name | [optional] | +|**description** | **String** | Optional task description (Tasks purpose) | [optional] | +|**arrayMetadata** | [**ArrayInfo**](ArrayInfo.md) | | [optional] | +|**subarray** | [**DomainArray**](DomainArray.md) | | [optional] | +|**memory** | **Integer** | memory allocated to task in bytes | [optional] | +|**cpu** | **Integer** | millicpu allocated to task | [optional] | +|**namespace** | **String** | namespace task is tied to | [optional] | +|**status** | **ArrayTaskStatus** | | [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] | +|**egressCost** | **Double** | Total accumulated for egress task in USD, example is $0.12 | [optional] | +|**accessCost** | **Double** | Cost accumulated for access task in USD, example is $0.12 | [optional] | +|**queryType** | **Querytype** | | [optional] | +|**udfCode** | **String** | Optional actual code that is going to be executed | [optional] | +|**udfLanguage** | **String** | Optional actual language used to express udf_code | [optional] | +|**sqlQuery** | **String** | Optional actual sql query that is going to be executed | [optional] | +|**type** | **ArrayTaskType** | | [optional] | +|**activity** | [**List<ArrayActivityLog>**](ArrayActivityLog.md) | Array activity logs for task | [optional] | +|**logs** | **String** | logs from array task | [optional] | +|**duration** | **BigDecimal** | duration in nanoseconds of an array task | [optional] | +|**sqlInitCommands** | **List<String>** | SQL queries or commands to run before main sql query | [optional] | +|**sqlParameters** | **List<Object>** | SQL query parameters | [optional] | +|**resultFormat** | **ResultFormat** | | [optional] | +|**taskGraphUuid** | **String** | If set, the ID of the log for the task graph that this was part of. | [optional] | +|**clientNodeUuid** | **String** | If set, the client-defined ID of the node within this task's graph. | [optional] | diff --git a/docs/ArrayTaskBrowserSidebar.md b/docs/ArrayTaskBrowserSidebar.md index 7072f7c..80393e4 100644 --- a/docs/ArrayTaskBrowserSidebar.md +++ b/docs/ArrayTaskBrowserSidebar.md @@ -6,11 +6,11 @@ Object for ui array tasks browser page ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**organizations** | **List<String>** | list of all unique organizations the user is part of that have array tasks | [optional] -**resultCountForAll** | **Integer** | A count of \"all\" | [optional] -**resultCountByNamespace** | **Object** | A map that includes the result count by namespace | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**organizations** | **List<String>** | list of all unique organizations the user is part of that have array tasks | [optional] | +|**resultCountForAll** | **Integer** | A count of \"all\" | [optional] | +|**resultCountByNamespace** | **Object** | A map that includes the result count by namespace | [optional] | diff --git a/docs/ArrayTaskData.md b/docs/ArrayTaskData.md index d5bc562..6b4d07a 100644 --- a/docs/ArrayTaskData.md +++ b/docs/ArrayTaskData.md @@ -6,10 +6,10 @@ Object including array tasks and metadata ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**arrayTasks** | [**List<ArrayTask>**](ArrayTask.md) | Array Tasks | [optional] -**paginationMetadata** | [**PaginationMetadata**](PaginationMetadata.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**arrayTasks** | [**List<ArrayTask>**](ArrayTask.md) | Array Tasks | [optional] | +|**paginationMetadata** | [**PaginationMetadata**](PaginationMetadata.md) | | [optional] | diff --git a/docs/ArrayTaskLog.md b/docs/ArrayTaskLog.md index 29b2011..0c2ab1c 100644 --- a/docs/ArrayTaskLog.md +++ b/docs/ArrayTaskLog.md @@ -6,10 +6,10 @@ Array task stderr/stdout logs ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**arrayTaskId** | **String** | ID of associated task | [optional] -**logs** | **String** | logs from array task | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**arrayTaskId** | **String** | ID of associated task | [optional] | +|**logs** | **String** | logs from array task | [optional] | diff --git a/docs/ArrayTaskStatus.md b/docs/ArrayTaskStatus.md index cf9eec1..8058b47 100644 --- a/docs/ArrayTaskStatus.md +++ b/docs/ArrayTaskStatus.md @@ -13,11 +13,13 @@ * `RUNNING` (value: `"RUNNING"`) -* `DENIED` (value: `"DENIED"`) +* `RESOURCES_UNAVAILABLE` (value: `"RESOURCES_UNAVAILABLE"`) * `UNKNOWN` (value: `"UNKNOWN"`) * `CANCELLED` (value: `"CANCELLED"`) +* `DENIED` (value: `"DENIED"`) + diff --git a/docs/ArrayTaskType.md b/docs/ArrayTaskType.md index e63e801..e69aaa6 100644 --- a/docs/ArrayTaskType.md +++ b/docs/ArrayTaskType.md @@ -13,5 +13,7 @@ * `GENERIC_UDF` (value: `"GENERIC_UDF"`) +* `CLIENT_COMPUTATION` (value: `"CLIENT_COMPUTATION"`) + diff --git a/docs/ArrayTasksApi.md b/docs/ArrayTasksApi.md index 6eb1407..29ad5de 100644 --- a/docs/ArrayTasksApi.md +++ b/docs/ArrayTasksApi.md @@ -2,9 +2,9 @@ All URIs are relative to */v1* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getArrayTasksSidebar**](ArrayTasksApi.md#getArrayTasksSidebar) | **GET** /tasks/sidebar | +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**getArrayTasksSidebar**](ArrayTasksApi.md#getArrayTasksSidebar) | **GET** /tasks/sidebar | | @@ -58,10 +58,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **start** | **Integer**| Fetch tasks created after this time, unix epoch in seconds, default 7 days ago | [optional] - **end** | **Integer**| Fetch tasks created before this time, unix epoch in seconds, default now | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **start** | **Integer**| Fetch tasks created after this time, unix epoch in seconds, default 7 days ago | [optional] | +| **end** | **Integer**| Fetch tasks created before this time, unix epoch in seconds, default now | [optional] | ### Return type @@ -79,7 +79,7 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | sidebar metadata for task definitions for all arrays user has access to | - | -**404** | array tasks not found | - | -**0** | error response | - | +| **200** | sidebar metadata for task definitions for all arrays user has access to | - | +| **404** | array tasks not found | - | +| **0** | error response | - | diff --git a/docs/Attribute.md b/docs/Attribute.md index 81e9164..9bdd4e1 100644 --- a/docs/Attribute.md +++ b/docs/Attribute.md @@ -6,14 +6,14 @@ Attribute of array ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | Attribute name | -**type** | **Datatype** | | -**filterPipeline** | [**FilterPipeline**](FilterPipeline.md) | | -**cellValNum** | **Integer** | Attribute number of values per cell | -**nullable** | **Boolean** | Is attribute nullable | [optional] -**fillValue** | **List<Integer>** | The default fill value | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | Attribute name | | +|**type** | **Datatype** | | | +|**filterPipeline** | [**FilterPipeline**](FilterPipeline.md) | | | +|**cellValNum** | **Integer** | Attribute number of values per cell | | +|**nullable** | **Boolean** | Is attribute nullable | [optional] | +|**fillValue** | **List<Integer>** | The default fill value | [optional] | diff --git a/docs/AttributeBufferHeader.md b/docs/AttributeBufferHeader.md index 3378a94..449573a 100644 --- a/docs/AttributeBufferHeader.md +++ b/docs/AttributeBufferHeader.md @@ -6,11 +6,11 @@ Represents an attribute buffer header information ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | Attribute name | -**fixedLenBufferSizeInBytes** | **Integer** | Number of bytes in the fixed-length attribute data buffer (offsets for var-len attributes) | -**varLenBufferSizeInBytes** | **Integer** | Number of bytes in the var-length attribute data buffer | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | Attribute name | | +|**fixedLenBufferSizeInBytes** | **Integer** | Number of bytes in the fixed-length attribute data buffer (offsets for var-len attributes) | | +|**varLenBufferSizeInBytes** | **Integer** | Number of bytes in the var-length attribute data buffer | | diff --git a/docs/AttributeBufferSize.md b/docs/AttributeBufferSize.md index 035445f..61e308e 100644 --- a/docs/AttributeBufferSize.md +++ b/docs/AttributeBufferSize.md @@ -6,11 +6,11 @@ object representing buffer size of an attribute ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**attribute** | **String** | name of attribute | -**offsetBytes** | **Integer** | buffer size (in bytes) of offset buffer | -**dataBytes** | **Integer** | buffer size (in bytes) of data buffer | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**attribute** | **String** | name of attribute | | +|**offsetBytes** | **Integer** | buffer size (in bytes) of offset buffer | | +|**dataBytes** | **Integer** | buffer size (in bytes) of data buffer | | diff --git a/docs/Dimension.md b/docs/Dimension.md index eaf4d24..e8dc466 100644 --- a/docs/Dimension.md +++ b/docs/Dimension.md @@ -6,14 +6,14 @@ Dimension of array ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | Dimension name | [optional] -**type** | **Datatype** | | -**domain** | [**DomainArray**](DomainArray.md) | | -**nullTileExtent** | **Boolean** | Is tile extent null | -**tileExtent** | [**DimensionTileExtent**](DimensionTileExtent.md) | | [optional] -**filterPipeline** | [**FilterPipeline**](FilterPipeline.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | Dimension name | [optional] | +|**type** | **Datatype** | | | +|**domain** | [**DomainArray**](DomainArray.md) | | | +|**nullTileExtent** | **Boolean** | Is tile extent null | | +|**tileExtent** | [**DimensionTileExtent**](DimensionTileExtent.md) | | [optional] | +|**filterPipeline** | [**FilterPipeline**](FilterPipeline.md) | | [optional] | diff --git a/docs/DimensionCoordinate.md b/docs/DimensionCoordinate.md index c90b745..297c7fc 100644 --- a/docs/DimensionCoordinate.md +++ b/docs/DimensionCoordinate.md @@ -6,18 +6,18 @@ A single, typed coordinate for a dimension ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**int8** | **Integer** | | [optional] -**uint8** | **Integer** | | [optional] -**int16** | **Integer** | | [optional] -**uint16** | **Integer** | | [optional] -**int32** | **Integer** | | [optional] -**uint32** | **Integer** | | [optional] -**int64** | **Long** | | [optional] -**uint64** | **Integer** | | [optional] -**float32** | **Float** | | [optional] -**float64** | **Double** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**int8** | **Integer** | | [optional] | +|**uint8** | **Integer** | | [optional] | +|**int16** | **Integer** | | [optional] | +|**uint16** | **Integer** | | [optional] | +|**int32** | **Integer** | | [optional] | +|**uint32** | **Integer** | | [optional] | +|**int64** | **Long** | | [optional] | +|**uint64** | **Integer** | | [optional] | +|**float32** | **Float** | | [optional] | +|**float64** | **Double** | | [optional] | diff --git a/docs/DimensionTileExtent.md b/docs/DimensionTileExtent.md index 700f1e2..fa9ad86 100644 --- a/docs/DimensionTileExtent.md +++ b/docs/DimensionTileExtent.md @@ -6,18 +6,18 @@ Extent of tile ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**int8** | **Integer** | | [optional] -**uint8** | **Integer** | | [optional] -**int16** | **Integer** | | [optional] -**uint16** | **Integer** | | [optional] -**int32** | **Integer** | | [optional] -**uint32** | **Integer** | | [optional] -**int64** | **Long** | | [optional] -**uint64** | **Integer** | | [optional] -**float32** | **Integer** | | [optional] -**float64** | **Integer** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**int8** | **Integer** | | [optional] | +|**uint8** | **Integer** | | [optional] | +|**int16** | **Integer** | | [optional] | +|**uint16** | **Integer** | | [optional] | +|**int32** | **Integer** | | [optional] | +|**uint32** | **Integer** | | [optional] | +|**int64** | **Long** | | [optional] | +|**uint64** | **Integer** | | [optional] | +|**float32** | **Integer** | | [optional] | +|**float64** | **Integer** | | [optional] | diff --git a/docs/Domain.md b/docs/Domain.md index 3939e25..aa98144 100644 --- a/docs/Domain.md +++ b/docs/Domain.md @@ -6,12 +6,12 @@ Domain of array ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **Datatype** | | -**tileOrder** | **Layout** | | -**cellOrder** | **Layout** | | -**dimensions** | [**List<Dimension>**](Dimension.md) | Array of dimensions | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**type** | **Datatype** | | | +|**tileOrder** | **Layout** | | | +|**cellOrder** | **Layout** | | | +|**dimensions** | [**List<Dimension>**](Dimension.md) | Array of dimensions | | diff --git a/docs/DomainArray.md b/docs/DomainArray.md index e9280b3..251231f 100644 --- a/docs/DomainArray.md +++ b/docs/DomainArray.md @@ -6,18 +6,18 @@ Domain object for an array of each type ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**int8** | **List<Integer>** | | [optional] -**uint8** | **List<Integer>** | | [optional] -**int16** | **List<Integer>** | | [optional] -**uint16** | **List<Integer>** | | [optional] -**int32** | **List<Integer>** | | [optional] -**uint32** | **List<Integer>** | | [optional] -**int64** | **List<Long>** | | [optional] -**uint64** | **List<Integer>** | | [optional] -**float32** | **List<Float>** | | [optional] -**float64** | **List<Double>** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**int8** | **List<Integer>** | | [optional] | +|**uint8** | **List<Integer>** | | [optional] | +|**int16** | **List<Integer>** | | [optional] | +|**uint16** | **List<Integer>** | | [optional] | +|**int32** | **List<Integer>** | | [optional] | +|**uint32** | **List<Integer>** | | [optional] | +|**int64** | **List<Long>** | | [optional] | +|**uint64** | **List<Integer>** | | [optional] | +|**float32** | **List<Float>** | | [optional] | +|**float64** | **List<Double>** | | [optional] | diff --git a/docs/Error.md b/docs/Error.md index 8e641ba..d3b0239 100644 --- a/docs/Error.md +++ b/docs/Error.md @@ -5,11 +5,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **Long** | | [optional] -**message** | **String** | | [optional] -**requestId** | **String** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**code** | **Long** | | [optional] | +|**message** | **String** | | [optional] | +|**requestId** | **String** | | [optional] | diff --git a/docs/FavoritesApi.md b/docs/FavoritesApi.md index b0ad54f..6aac295 100644 --- a/docs/FavoritesApi.md +++ b/docs/FavoritesApi.md @@ -2,28 +2,28 @@ All URIs are relative to */v1* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**addArrayFavorite**](FavoritesApi.md#addArrayFavorite) | **POST** /arrays/favorites/{namespace}/{name} | -[**addMLModelFavorite**](FavoritesApi.md#addMLModelFavorite) | **POST** /ml_models/favorites/{namespace}/{name} | -[**addNotebookFavorite**](FavoritesApi.md#addNotebookFavorite) | **POST** /notebooks/favorites/{namespace}/{name} | -[**addUDFFavorite**](FavoritesApi.md#addUDFFavorite) | **POST** /udfs/favorites/{namespace}/{name} | -[**deleteArrayFavorite**](FavoritesApi.md#deleteArrayFavorite) | **DELETE** /arrays/favorites/{namespace}/{name} | -[**deleteMLModelFavorite**](FavoritesApi.md#deleteMLModelFavorite) | **DELETE** /ml_models/favorites/{namespace}/{name} | -[**deleteNotebookFavorite**](FavoritesApi.md#deleteNotebookFavorite) | **DELETE** /notebooks/favorites/{namespace}/{name} | -[**deleteUDFFavorite**](FavoritesApi.md#deleteUDFFavorite) | **DELETE** /udfs/favorites/{namespace}/{name} | -[**getArrayFavorite**](FavoritesApi.md#getArrayFavorite) | **GET** /arrays/favorites/{namespace}/{name} | -[**getMLModelFavorite**](FavoritesApi.md#getMLModelFavorite) | **GET** /ml_models/favorites/{namespace}/{name} | -[**getNotebookFavorite**](FavoritesApi.md#getNotebookFavorite) | **GET** /notebooks/favorites/{namespace}/{name} | -[**getUDFFavorite**](FavoritesApi.md#getUDFFavorite) | **GET** /udfs/favorites/{namespace}/{name} | -[**listArrayFavorites**](FavoritesApi.md#listArrayFavorites) | **GET** /arrays/favorites | -[**listArrayFavoritesUUIDs**](FavoritesApi.md#listArrayFavoritesUUIDs) | **GET** /arrays/favorites/uuids | -[**listMLModelFavorites**](FavoritesApi.md#listMLModelFavorites) | **GET** /ml_models/favorites | -[**listMLModelFavoritesUUIDs**](FavoritesApi.md#listMLModelFavoritesUUIDs) | **GET** /ml_models/favorites/uuids | -[**listNotebookFavorites**](FavoritesApi.md#listNotebookFavorites) | **GET** /notebooks/favorites | -[**listNotebookFavoritesUUIDs**](FavoritesApi.md#listNotebookFavoritesUUIDs) | **GET** /notebooks/favorites/uuids | -[**listUDFFavorites**](FavoritesApi.md#listUDFFavorites) | **GET** /udfs/favorites | -[**listUDFFavoritesUUIDs**](FavoritesApi.md#listUDFFavoritesUUIDs) | **GET** /udfs/favorites/uuids | +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**addArrayFavorite**](FavoritesApi.md#addArrayFavorite) | **POST** /arrays/favorites/{namespace}/{name} | | +| [**addMLModelFavorite**](FavoritesApi.md#addMLModelFavorite) | **POST** /ml_models/favorites/{namespace}/{name} | | +| [**addNotebookFavorite**](FavoritesApi.md#addNotebookFavorite) | **POST** /notebooks/favorites/{namespace}/{name} | | +| [**addUDFFavorite**](FavoritesApi.md#addUDFFavorite) | **POST** /udfs/favorites/{namespace}/{name} | | +| [**deleteArrayFavorite**](FavoritesApi.md#deleteArrayFavorite) | **DELETE** /arrays/favorites/{namespace}/{name} | | +| [**deleteMLModelFavorite**](FavoritesApi.md#deleteMLModelFavorite) | **DELETE** /ml_models/favorites/{namespace}/{name} | | +| [**deleteNotebookFavorite**](FavoritesApi.md#deleteNotebookFavorite) | **DELETE** /notebooks/favorites/{namespace}/{name} | | +| [**deleteUDFFavorite**](FavoritesApi.md#deleteUDFFavorite) | **DELETE** /udfs/favorites/{namespace}/{name} | | +| [**getArrayFavorite**](FavoritesApi.md#getArrayFavorite) | **GET** /arrays/favorites/{namespace}/{name} | | +| [**getMLModelFavorite**](FavoritesApi.md#getMLModelFavorite) | **GET** /ml_models/favorites/{namespace}/{name} | | +| [**getNotebookFavorite**](FavoritesApi.md#getNotebookFavorite) | **GET** /notebooks/favorites/{namespace}/{name} | | +| [**getUDFFavorite**](FavoritesApi.md#getUDFFavorite) | **GET** /udfs/favorites/{namespace}/{name} | | +| [**listArrayFavorites**](FavoritesApi.md#listArrayFavorites) | **GET** /arrays/favorites | | +| [**listArrayFavoritesUUIDs**](FavoritesApi.md#listArrayFavoritesUUIDs) | **GET** /arrays/favorites/uuids | | +| [**listMLModelFavorites**](FavoritesApi.md#listMLModelFavorites) | **GET** /ml_models/favorites | | +| [**listMLModelFavoritesUUIDs**](FavoritesApi.md#listMLModelFavoritesUUIDs) | **GET** /ml_models/favorites/uuids | | +| [**listNotebookFavorites**](FavoritesApi.md#listNotebookFavorites) | **GET** /notebooks/favorites | | +| [**listNotebookFavoritesUUIDs**](FavoritesApi.md#listNotebookFavoritesUUIDs) | **GET** /notebooks/favorites/uuids | | +| [**listUDFFavorites**](FavoritesApi.md#listUDFFavorites) | **GET** /udfs/favorites | | +| [**listUDFFavoritesUUIDs**](FavoritesApi.md#listUDFFavoritesUUIDs) | **GET** /udfs/favorites/uuids | | @@ -78,10 +78,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| The namespace of the array | - **name** | **String**| The name of the array | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| The namespace of the array | | +| **name** | **String**| The name of the array | | ### Return type @@ -99,8 +99,8 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Item added to favorites successfully | - | -**0** | error response | - | +| **204** | Item added to favorites successfully | - | +| **0** | error response | - | # **addMLModelFavorite** @@ -154,10 +154,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| The namespace of the ML model | - **name** | **String**| The name of the ML model | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| The namespace of the ML model | | +| **name** | **String**| The name of the ML model | | ### Return type @@ -175,8 +175,8 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Item added to favorites successfully | - | -**0** | error response | - | +| **204** | Item added to favorites successfully | - | +| **0** | error response | - | # **addNotebookFavorite** @@ -230,10 +230,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| The namespace of the notebook | - **name** | **String**| The name of the notebook | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| The namespace of the notebook | | +| **name** | **String**| The name of the notebook | | ### Return type @@ -251,8 +251,8 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Item added to favorites successfully | - | -**0** | error response | - | +| **204** | Item added to favorites successfully | - | +| **0** | error response | - | # **addUDFFavorite** @@ -306,10 +306,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| The namespace of the UDF | - **name** | **String**| The name of the UDF | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| The namespace of the UDF | | +| **name** | **String**| The name of the UDF | | ### Return type @@ -327,8 +327,8 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Item added to favorites successfully | - | -**0** | error response | - | +| **204** | Item added to favorites successfully | - | +| **0** | error response | - | # **deleteArrayFavorite** @@ -382,10 +382,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| The namespace of the array | - **name** | **String**| The name of the array | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| The namespace of the array | | +| **name** | **String**| The name of the array | | ### Return type @@ -403,8 +403,8 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | array favorite item deleted successfully | - | -**0** | error response | - | +| **204** | array favorite item deleted successfully | - | +| **0** | error response | - | # **deleteMLModelFavorite** @@ -458,10 +458,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| The namespace of the ML model | - **name** | **String**| The name of the ML model | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| The namespace of the ML model | | +| **name** | **String**| The name of the ML model | | ### Return type @@ -479,8 +479,8 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | ML model favorite item deleted successfully | - | -**0** | error response | - | +| **204** | ML model favorite item deleted successfully | - | +| **0** | error response | - | # **deleteNotebookFavorite** @@ -534,10 +534,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| The namespace of the notebook | - **name** | **String**| The name of the notebook | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| The namespace of the notebook | | +| **name** | **String**| The name of the notebook | | ### Return type @@ -555,8 +555,8 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | notebook favorite item deleted successfully | - | -**0** | error response | - | +| **204** | notebook favorite item deleted successfully | - | +| **0** | error response | - | # **deleteUDFFavorite** @@ -610,10 +610,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| The namespace of the UDF | - **name** | **String**| The name of the UDF | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| The namespace of the UDF | | +| **name** | **String**| The name of the UDF | | ### Return type @@ -631,8 +631,8 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | UDF favorite item deleted successfully | - | -**0** | error response | - | +| **204** | UDF favorite item deleted successfully | - | +| **0** | error response | - | # **getArrayFavorite** @@ -687,10 +687,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| The namespace of the array | - **name** | **String**| The name of the array | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| The namespace of the array | | +| **name** | **String**| The name of the array | | ### Return type @@ -708,8 +708,8 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**0** | error response | - | +| **200** | OK | - | +| **0** | error response | - | # **getMLModelFavorite** @@ -764,10 +764,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| The namespace of the ML model | - **name** | **String**| The name of the ML model | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| The namespace of the ML model | | +| **name** | **String**| The name of the ML model | | ### Return type @@ -785,8 +785,8 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**0** | error response | - | +| **200** | OK | - | +| **0** | error response | - | # **getNotebookFavorite** @@ -841,10 +841,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| The namespace of the notebook | - **name** | **String**| The name of the notebook | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| The namespace of the notebook | | +| **name** | **String**| The name of the notebook | | ### Return type @@ -862,8 +862,8 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**0** | error response | - | +| **200** | OK | - | +| **0** | error response | - | # **getUDFFavorite** @@ -918,10 +918,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| The namespace of the UDF | - **name** | **String**| The name of the UDF | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| The namespace of the UDF | | +| **name** | **String**| The name of the UDF | | ### Return type @@ -939,8 +939,8 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | OK | - | -**0** | error response | - | +| **200** | OK | - | +| **0** | error response | - | # **listArrayFavorites** @@ -995,10 +995,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **page** | **Integer**| pagination offset | [optional] - **perPage** | **Integer**| pagination limit | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **page** | **Integer**| pagination offset | [optional] | +| **perPage** | **Integer**| pagination limit | [optional] | ### Return type @@ -1016,8 +1016,8 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Available array favorites are returned | - | -**0** | error response | - | +| **200** | Available array favorites are returned | - | +| **0** | error response | - | # **listArrayFavoritesUUIDs** @@ -1087,8 +1087,8 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Available favorites array uuids are returned | - | -**0** | error response | - | +| **200** | Available favorites array uuids are returned | - | +| **0** | error response | - | # **listMLModelFavorites** @@ -1143,10 +1143,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **page** | **Integer**| pagination offset | [optional] - **perPage** | **Integer**| pagination limit | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **page** | **Integer**| pagination offset | [optional] | +| **perPage** | **Integer**| pagination limit | [optional] | ### Return type @@ -1164,8 +1164,8 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Available ML models favorites are returned | - | -**0** | error response | - | +| **200** | Available ML models favorites are returned | - | +| **0** | error response | - | # **listMLModelFavoritesUUIDs** @@ -1235,8 +1235,8 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Available favorites ML model uuids are returned | - | -**0** | error response | - | +| **200** | Available favorites ML model uuids are returned | - | +| **0** | error response | - | # **listNotebookFavorites** @@ -1292,11 +1292,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **isDashboard** | **Boolean**| return only dashboards | [optional] - **page** | **Integer**| pagination offset | [optional] - **perPage** | **Integer**| pagination limit | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **isDashboard** | **Boolean**| return only dashboards | [optional] | +| **page** | **Integer**| pagination offset | [optional] | +| **perPage** | **Integer**| pagination limit | [optional] | ### Return type @@ -1314,8 +1314,8 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Available notebook favorites are returned | - | -**0** | error response | - | +| **200** | Available notebook favorites are returned | - | +| **0** | error response | - | # **listNotebookFavoritesUUIDs** @@ -1385,8 +1385,8 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Available favorites notebook uuids are returned | - | -**0** | error response | - | +| **200** | Available favorites notebook uuids are returned | - | +| **0** | error response | - | # **listUDFFavorites** @@ -1441,10 +1441,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **page** | **Integer**| pagination offset | [optional] - **perPage** | **Integer**| pagination limit | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **page** | **Integer**| pagination offset | [optional] | +| **perPage** | **Integer**| pagination limit | [optional] | ### Return type @@ -1462,8 +1462,8 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Available UDF favorites are returned | - | -**0** | error response | - | +| **200** | Available UDF favorites are returned | - | +| **0** | error response | - | # **listUDFFavoritesUUIDs** @@ -1533,6 +1533,6 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Available favorites UDF uuids are returned | - | -**0** | error response | - | +| **200** | Available favorites UDF uuids are returned | - | +| **0** | error response | - | diff --git a/docs/FileCreate.md b/docs/FileCreate.md index 60bae42..586e827 100644 --- a/docs/FileCreate.md +++ b/docs/FileCreate.md @@ -6,11 +6,11 @@ Input/Output information required to create a new file ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**inputUri** | **String** | storage URI of the input file | [optional] -**outputUri** | **String** | output location of the TileDB File | [optional] -**name** | **String** | name to set for registered file | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**inputUri** | **String** | storage URI of the input file | [optional] | +|**outputUri** | **String** | output location of the TileDB File | [optional] | +|**name** | **String** | name to set for registered file | [optional] | diff --git a/docs/FileCreated.md b/docs/FileCreated.md index f8dd600..ce61f30 100644 --- a/docs/FileCreated.md +++ b/docs/FileCreated.md @@ -6,10 +6,10 @@ Created file name and information ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**outputUri** | **String** | output location of the TileDB File | [optional] -**fileName** | **String** | name of the file created | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**outputUri** | **String** | output location of the TileDB File | [optional] | +|**fileName** | **String** | name of the file created | [optional] | diff --git a/docs/FileExport.md b/docs/FileExport.md index 435f4ae..b882eb0 100644 --- a/docs/FileExport.md +++ b/docs/FileExport.md @@ -6,9 +6,9 @@ Output information required to export a file ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**outputUri** | **String** | output location of the TileDB File | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**outputUri** | **String** | output location of the TileDB File | [optional] | diff --git a/docs/FileExported.md b/docs/FileExported.md index 7c19857..c2a1c51 100644 --- a/docs/FileExported.md +++ b/docs/FileExported.md @@ -6,9 +6,9 @@ Output uri of the exported file ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**outputUri** | **String** | output location of the exported file | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**outputUri** | **String** | output location of the exported file | [optional] | diff --git a/docs/FileUploaded.md b/docs/FileUploaded.md index d061600..43308c9 100644 --- a/docs/FileUploaded.md +++ b/docs/FileUploaded.md @@ -6,11 +6,11 @@ Uploaded file name and information ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**outputUri** | **String** | output location of the TileDB File | [optional] -**fileName** | **String** | name of the file uploaded | [optional] -**id** | **String** | unique ID of the uploaded file | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**outputUri** | **String** | output location of the TileDB File | [optional] | +|**fileName** | **String** | name of the file uploaded | [optional] | +|**id** | **String** | unique ID of the uploaded file | | diff --git a/docs/FilesApi.md b/docs/FilesApi.md index 1ffe263..67d14d8 100644 --- a/docs/FilesApi.md +++ b/docs/FilesApi.md @@ -2,11 +2,11 @@ All URIs are relative to */v1* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**handleCreateFile**](FilesApi.md#handleCreateFile) | **POST** /files/{namespace} | -[**handleExportFile**](FilesApi.md#handleExportFile) | **POST** /files/{namespace}/{file}/export | -[**handleUploadFile**](FilesApi.md#handleUploadFile) | **POST** /files/{namespace}/upload | +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**handleCreateFile**](FilesApi.md#handleCreateFile) | **POST** /files/{namespace} | | +| [**handleExportFile**](FilesApi.md#handleExportFile) | **POST** /files/{namespace}/{file}/export | | +| [**handleUploadFile**](FilesApi.md#handleUploadFile) | **POST** /files/{namespace}/upload | | @@ -63,11 +63,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| The namespace of the file | - **fileCreate** | [**FileCreate**](FileCreate.md)| Input/Output information to create a new TileDB file | - **X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME** | **String**| Optional registered access credentials to use for creation | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| The namespace of the file | | +| **fileCreate** | [**FileCreate**](FileCreate.md)| Input/Output information to create a new TileDB file | | +| **X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME** | **String**| Optional registered access credentials to use for creation | [optional] | ### Return type @@ -85,8 +85,8 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**201** | File created | - | -**0** | error response | - | +| **201** | File created | - | +| **0** | error response | - | # **handleExportFile** @@ -142,11 +142,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| The namespace of the file | - **_file** | **String**| The file identifier | - **fileExport** | [**FileExport**](FileExport.md)| Export configuration information | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| The namespace of the file | | +| **_file** | **String**| The file identifier | | +| **fileExport** | [**FileExport**](FileExport.md)| Export configuration information | | ### Return type @@ -164,8 +164,8 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**201** | File exported | - | -**0** | error response | - | +| **201** | File exported | - | +| **0** | error response | - | # **handleUploadFile** @@ -223,13 +223,13 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| The namespace of the file | - **inputFile** | **File**| the file to upload | - **X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME** | **String**| Optional registered access credentials to use for creation | [optional] - **outputUri** | **String**| output location of the TileDB File | [optional] - **name** | **String**| name to set for registered file | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| The namespace of the file | | +| **inputFile** | **File**| the file to upload | | +| **X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME** | **String**| Optional registered access credentials to use for creation | [optional] | +| **outputUri** | **String**| output location of the TileDB File | [optional] | +| **name** | **String**| name to set for registered file | [optional] | ### Return type @@ -247,6 +247,6 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**201** | File uploaded | - | -**0** | error response | - | +| **201** | File uploaded | - | +| **0** | error response | - | diff --git a/docs/Filter.md b/docs/Filter.md index 666e2f9..c2d986c 100644 --- a/docs/Filter.md +++ b/docs/Filter.md @@ -6,10 +6,10 @@ Filter ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **FilterType** | | -**data** | [**FilterData**](FilterData.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**type** | **FilterType** | | | +|**data** | [**FilterData**](FilterData.md) | | [optional] | diff --git a/docs/FilterData.md b/docs/FilterData.md index 74306ba..d404593 100644 --- a/docs/FilterData.md +++ b/docs/FilterData.md @@ -6,18 +6,18 @@ Filter data ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**int8** | **Integer** | | [optional] -**uint8** | **Integer** | | [optional] -**int16** | **Integer** | | [optional] -**uint16** | **Integer** | | [optional] -**int32** | **Integer** | | [optional] -**uint32** | **Integer** | | [optional] -**int64** | **Long** | | [optional] -**uint64** | **Integer** | | [optional] -**float32** | **Integer** | | [optional] -**float64** | **Integer** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**int8** | **Integer** | | [optional] | +|**uint8** | **Integer** | | [optional] | +|**int16** | **Integer** | | [optional] | +|**uint16** | **Integer** | | [optional] | +|**int32** | **Integer** | | [optional] | +|**uint32** | **Integer** | | [optional] | +|**int64** | **Long** | | [optional] | +|**uint64** | **Integer** | | [optional] | +|**float32** | **Integer** | | [optional] | +|**float64** | **Integer** | | [optional] | diff --git a/docs/FilterPipeline.md b/docs/FilterPipeline.md index 3fcbfd4..f208641 100644 --- a/docs/FilterPipeline.md +++ b/docs/FilterPipeline.md @@ -6,9 +6,9 @@ One or more filters to apply ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**filters** | [**List<Filter>**](Filter.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**filters** | [**List<Filter>**](Filter.md) | | [optional] | diff --git a/docs/GenericUDF.md b/docs/GenericUDF.md index aceaefd..7682183 100644 --- a/docs/GenericUDF.md +++ b/docs/GenericUDF.md @@ -6,24 +6,24 @@ User-defined function ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**udfInfoName** | **String** | name of UDFInfo to run, format is {namespace}/{udf_name}. Can not be used with exec | [optional] -**language** | **UDFLanguage** | | [optional] -**version** | **String** | Type-specific version | [optional] -**imageName** | **String** | Docker image name to use for 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] -**exec** | **String** | Type-specific executable text | [optional] -**execRaw** | **String** | optional raw text to store of serialized function, used for showing in UI | [optional] -**argument** | **String** | Argument(s) to pass to UDF function, tuple or list of args/kwargs which can be in native or JSON format | [optional] -**storedParamUuids** | **List<String>** | 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 {}. | [optional] -**resultFormat** | **ResultFormat** | | [optional] -**taskName** | **String** | name of task, optional | [optional] -**storeResults** | **Boolean** | store results for later retrieval | [optional] -**timeout** | **Integer** | UDF-type timeout in seconds (default: 900) | [optional] -**dontDownloadResults** | **Boolean** | 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\"). | [optional] -**taskGraphUuid** | **String** | If set, the ID of the log for the task graph that this was part of. | [optional] -**clientNodeUuid** | **String** | If set, the client-defined ID of the node within this task's graph. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**udfInfoName** | **String** | name of UDFInfo to run, format is {namespace}/{udf_name}. Can not be used with exec | [optional] | +|**language** | **UDFLanguage** | | [optional] | +|**version** | **String** | Type-specific version | [optional] | +|**imageName** | **String** | Docker image name to use for 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] | +|**exec** | **String** | Type-specific executable text | [optional] | +|**execRaw** | **String** | optional raw text to store of serialized function, used for showing in UI | [optional] | +|**argument** | **String** | Argument(s) to pass to UDF function, tuple or list of args/kwargs which can be in native or JSON format | [optional] | +|**storedParamUuids** | **List<String>** | 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 {}. | [optional] | +|**resultFormat** | **ResultFormat** | | [optional] | +|**taskName** | **String** | name of task, optional | [optional] | +|**storeResults** | **Boolean** | store results for later retrieval | [optional] | +|**timeout** | **Integer** | UDF-type timeout in seconds (default: 900) | [optional] | +|**dontDownloadResults** | **Boolean** | 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\"). | [optional] | +|**taskGraphUuid** | **String** | If set, the ID of the log for the task graph that this was part of. | [optional] | +|**clientNodeUuid** | **String** | If set, the client-defined ID of the node within this task's graph. | [optional] | diff --git a/docs/GetTiledbStats200Response.md b/docs/GetTiledbStats200Response.md new file mode 100644 index 0000000..2927de3 --- /dev/null +++ b/docs/GetTiledbStats200Response.md @@ -0,0 +1,13 @@ + + +# GetTiledbStats200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**stats** | **String** | string of stats from tiledb | [optional] | + + + diff --git a/docs/GroupBrowserData.md b/docs/GroupBrowserData.md index c7eb42e..dc41582 100644 --- a/docs/GroupBrowserData.md +++ b/docs/GroupBrowserData.md @@ -6,10 +6,10 @@ Object including group info and pagination metadata ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**groups** | [**List<GroupInfo>**](GroupInfo.md) | Groups Info | [optional] -**paginationMetadata** | [**PaginationMetadata**](PaginationMetadata.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**groups** | [**List<GroupInfo>**](GroupInfo.md) | Groups Info | [optional] | +|**paginationMetadata** | [**PaginationMetadata**](PaginationMetadata.md) | | [optional] | diff --git a/docs/GroupBrowserFilterData.md b/docs/GroupBrowserFilterData.md index af12b3d..ad11ec9 100644 --- a/docs/GroupBrowserFilterData.md +++ b/docs/GroupBrowserFilterData.md @@ -6,9 +6,9 @@ Object with data to fill browser filter ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**namespaces** | **List<String>** | list of all unique namespaces to display | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**namespaces** | **List<String>** | list of all unique namespaces to display | [optional] | diff --git a/docs/GroupChanges.md b/docs/GroupChanges.md index 3d48306..9889ca9 100644 --- a/docs/GroupChanges.md +++ b/docs/GroupChanges.md @@ -6,10 +6,10 @@ A request to change the members of a group. Contains assets to add or remove. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**add** | [**List<GroupMember>**](GroupMember.md) | the assets, arrays or groups, to add to the group. | [optional] -**remove** | [**List<GroupMember>**](GroupMember.md) | the assets, arrays or groups, to remove from the group. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**add** | [**List<GroupMember>**](GroupMember.md) | the assets, arrays or groups, to add to the group. | [optional] | +|**remove** | [**List<GroupMember>**](GroupMember.md) | the assets, arrays or groups, to remove from the group. | [optional] | diff --git a/docs/GroupContents.md b/docs/GroupContents.md index c0c583c..974eed3 100644 --- a/docs/GroupContents.md +++ b/docs/GroupContents.md @@ -6,10 +6,10 @@ Object including a page of members of a group and pagination metadata ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**entries** | [**List<GroupEntry>**](GroupEntry.md) | Groups members | [optional] -**paginationMetadata** | [**PaginationMetadata**](PaginationMetadata.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**entries** | [**List<GroupEntry>**](GroupEntry.md) | Groups members | [optional] | +|**paginationMetadata** | [**PaginationMetadata**](PaginationMetadata.md) | | [optional] | diff --git a/docs/GroupContentsFilterData.md b/docs/GroupContentsFilterData.md index 80eefaa..3f30474 100644 --- a/docs/GroupContentsFilterData.md +++ b/docs/GroupContentsFilterData.md @@ -6,9 +6,9 @@ Object with data to fill contents filter ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**namespaces** | **List<String>** | list of all unique namespaces to display | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**namespaces** | **List<String>** | list of all unique namespaces to display | [optional] | diff --git a/docs/GroupCreate.md b/docs/GroupCreate.md index cfb675f..827debe 100644 --- a/docs/GroupCreate.md +++ b/docs/GroupCreate.md @@ -6,17 +6,17 @@ Initial attributes for the creation of a group. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**description** | **String** | A human readable description of the contents of the group. | [optional] -**name** | **String** | The name of the group. If must be unique within the group. | [optional] -**parent** | **String** | The unique name or id of the parent of the group. If empty, then the new group will be a top level group. | [optional] -**uri** | **String** | uri of group. | [optional] -**logo** | **String** | logo (base64 encoded) for the group. Optional | [optional] -**accessCredentialsName** | **String** | the name of the access credentials to use. if unset, the default credentials will be used. | [optional] -**tags** | **List<String>** | optional tags for groups. | [optional] -**licenseId** | **String** | License identifier from SPDX License List or Custom. | [optional] -**licenseText** | **String** | License text | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**description** | **String** | A human readable description of the contents of the group. | [optional] | +|**name** | **String** | The name of the group. If must be unique within the group. | [optional] | +|**parent** | **String** | The unique name or id of the parent of the group. If empty, then the new group will be a top level group. | [optional] | +|**uri** | **String** | uri of group. | [optional] | +|**logo** | **String** | logo (base64 encoded) for the group. Optional | [optional] | +|**accessCredentialsName** | **String** | the name of the access credentials to use. if unset, the default credentials will be used. | [optional] | +|**tags** | **List<String>** | optional tags for groups. | [optional] | +|**licenseId** | **String** | License identifier from SPDX License List or Custom. | [optional] | +|**licenseText** | **String** | License text | [optional] | diff --git a/docs/GroupEntry.md b/docs/GroupEntry.md index ffef386..0c34f88 100644 --- a/docs/GroupEntry.md +++ b/docs/GroupEntry.md @@ -6,10 +6,11 @@ Object describing a single member of a group, which can be an array or a group ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**group** | [**GroupInfo**](GroupInfo.md) | | [optional] -**array** | [**ArrayInfo**](ArrayInfo.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**memberId** | **String** | The unique member id for the entry | [optional] [readonly] | +|**group** | [**GroupInfo**](GroupInfo.md) | | [optional] | +|**array** | [**ArrayInfo**](ArrayInfo.md) | | [optional] | diff --git a/docs/GroupInfo.md b/docs/GroupInfo.md index eb5bcc8..ba9a33e 100644 --- a/docs/GroupInfo.md +++ b/docs/GroupInfo.md @@ -6,26 +6,26 @@ metadata of a group ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | unique ID of registered group | [optional] -**namespace** | **String** | namespace group is in | [optional] -**name** | **String** | name of group | [optional] -**description** | **String** | description of group | [optional] -**uri** | **String** | uri of group | [optional] -**tiledbUri** | **String** | uri for access through TileDB cloud | [optional] -**assetCount** | **BigDecimal** | A count of direct array members | [optional] -**groupCount** | **BigDecimal** | A count of direct group members | [optional] -**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] -**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] -**publicShare** | **Boolean** | Suggests if the group was shared to public by owner | [optional] -**tags** | **List<String>** | optional tags for group | [optional] -**licenseId** | **String** | License identifier from SPDX License List or Custom | [optional] -**licenseText** | **String** | License text | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | unique ID of registered group | [optional] | +|**namespace** | **String** | namespace group is in | [optional] | +|**name** | **String** | name of group | [optional] | +|**description** | **String** | description of group | [optional] | +|**uri** | **String** | uri of group | [optional] | +|**tiledbUri** | **String** | uri for access through TileDB cloud | [optional] | +|**assetCount** | **BigDecimal** | A count of direct array members | [optional] | +|**groupCount** | **BigDecimal** | A count of direct group members | [optional] | +|**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] | +|**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] | +|**publicShare** | **Boolean** | Suggests if the group was shared to public by owner | [optional] | +|**tags** | **List<String>** | optional tags for group | [optional] | +|**licenseId** | **String** | License identifier from SPDX License List or Custom | [optional] | +|**licenseText** | **String** | License text | [optional] | diff --git a/docs/GroupMember.md b/docs/GroupMember.md index ba10489..65df0a3 100644 --- a/docs/GroupMember.md +++ b/docs/GroupMember.md @@ -6,11 +6,11 @@ A groups member, array or another groups, to add or remove from an existing grou ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**namespace** | **String** | The namespace of the asset. | [optional] -**name** | **String** | The name or id of the asset. | [optional] -**memberType** | **GroupMemberType** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**namespace** | **String** | The namespace of the asset. | [optional] | +|**name** | **String** | The name or id of the asset. | [optional] | +|**memberType** | **GroupMemberType** | | [optional] | diff --git a/docs/GroupRegister.md b/docs/GroupRegister.md index 12c36e5..2de6473 100644 --- a/docs/GroupRegister.md +++ b/docs/GroupRegister.md @@ -6,17 +6,17 @@ Initial attributes for the registration of a an existing group. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**description** | **String** | A human readable description of the contents of the group. | [optional] -**name** | **String** | The name of the group. If must be unique within the group. | [optional] -**parent** | **String** | The unique name or id of the parent of the group. If empty, then the new group will be a top level group. | [optional] -**uri** | **String** | uri of group. | [optional] -**logo** | **String** | logo (base64 encoded) for the group. Optional | [optional] -**accessCredentialsName** | **String** | the name of the access credentials to use. if unset, the default credentials will be used. | [optional] -**tags** | **List<String>** | optional tags for groups. | [optional] -**licenseId** | **String** | License identifier from SPDX License List or Custom. | [optional] -**licenseText** | **String** | License text | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**description** | **String** | A human readable description of the contents of the group. | [optional] | +|**name** | **String** | The name of the group. If must be unique within the group. | [optional] | +|**parent** | **String** | The unique name or id of the parent of the group. If empty, then the new group will be a top level group. | [optional] | +|**uri** | **String** | uri of group. | [optional] | +|**logo** | **String** | logo (base64 encoded) for the group. Optional | [optional] | +|**accessCredentialsName** | **String** | the name of the access credentials to use. if unset, the default credentials will be used. | [optional] | +|**tags** | **List<String>** | optional tags for groups. | [optional] | +|**licenseId** | **String** | License identifier from SPDX License List or Custom. | [optional] | +|**licenseText** | **String** | License text | [optional] | diff --git a/docs/GroupSharing.md b/docs/GroupSharing.md index 443fd58..7a6565e 100644 --- a/docs/GroupSharing.md +++ b/docs/GroupSharing.md @@ -6,12 +6,12 @@ sharing state of a group with a namespace ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**groupActions** | **List<GroupActions>** | List of permitted actions for the group and all subgroups | [optional] -**arrayActions** | **List<ArrayActions>** | List of permitted actions for all the subarrays of the group | [optional] -**namespace** | **String** | namespace being granted group access can be a user or organization | [optional] -**namespaceType** | **String** | details on if the namespace is a organization or user | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**groupActions** | **List<GroupActions>** | List of permitted actions for the group and all subgroups | [optional] | +|**arrayActions** | **List<ArrayActions>** | List of permitted actions for all the subarrays of the group | [optional] | +|**namespace** | **String** | namespace being granted group access can be a user or organization | [optional] | +|**namespaceType** | **String** | details on if the namespace is a organization or user | [optional] | diff --git a/docs/GroupSharingRequest.md b/docs/GroupSharingRequest.md index 60c8d3f..8b0a45d 100644 --- a/docs/GroupSharingRequest.md +++ b/docs/GroupSharingRequest.md @@ -6,11 +6,11 @@ a request to share a group and all the contents with a namespace ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**groupActions** | **List<GroupActions>** | List of permitted actions for the group and all subgroups | [optional] -**arrayActions** | **List<ArrayActions>** | List of permitted actions for all the subarrays of the group | [optional] -**namespace** | **String** | namespace being granted group access can be a user or organization | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**groupActions** | **List<GroupActions>** | List of permitted actions for the group and all subgroups | [optional] | +|**arrayActions** | **List<ArrayActions>** | List of permitted actions for all the subarrays of the group | [optional] | +|**namespace** | **String** | namespace being granted group access can be a user or organization | [optional] | diff --git a/docs/GroupUpdate.md b/docs/GroupUpdate.md index 6969722..2d25819 100644 --- a/docs/GroupUpdate.md +++ b/docs/GroupUpdate.md @@ -6,15 +6,15 @@ Updates for a group. New values for the attributes. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**description** | **String** | A human readable description of the content of the group | [optional] -**name** | **String** | The name of the group. If must be unique within the group. | [optional] -**logo** | **String** | logo (base64 encoded) for the group. Optional | [optional] -**accessCredentialsName** | **String** | the name of the access credentials to use. if unset, the default credentials will be used | [optional] -**tags** | **List<String>** | optional tags for groups | [optional] -**licenseId** | **String** | License identifier from SPDX License List or Custom | [optional] -**licenseText** | **String** | License text | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**description** | **String** | A human readable description of the content of the group | [optional] | +|**name** | **String** | The name of the group. If must be unique within the group. | [optional] | +|**logo** | **String** | logo (base64 encoded) for the group. Optional | [optional] | +|**accessCredentialsName** | **String** | the name of the access credentials to use. if unset, the default credentials will be used | [optional] | +|**tags** | **List<String>** | optional tags for groups | [optional] | +|**licenseId** | **String** | License identifier from SPDX License List or Custom | [optional] | +|**licenseText** | **String** | License text | [optional] | diff --git a/docs/GroupsApi.md b/docs/GroupsApi.md index 1bf0fc4..78ab2a7 100644 --- a/docs/GroupsApi.md +++ b/docs/GroupsApi.md @@ -2,24 +2,24 @@ All URIs are relative to */v1* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**changeGroupContents**](GroupsApi.md#changeGroupContents) | **POST** /groups/{group_namespace}/{group_name}/contents | -[**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} | -[**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 | -[**groupsBrowserPublicFiltersGet**](GroupsApi.md#groupsBrowserPublicFiltersGet) | **GET** /groups/browser/public/filters | -[**groupsBrowserSharedFiltersGet**](GroupsApi.md#groupsBrowserSharedFiltersGet) | **GET** /groups/browser/shared/filters | -[**groupsGroupNamespaceGroupNameContentsFiltersGet**](GroupsApi.md#groupsGroupNamespaceGroupNameContentsFiltersGet) | **GET** /groups/{group_namespace}/{group_name}/contents/filters | -[**listOwnedGroups**](GroupsApi.md#listOwnedGroups) | **GET** /groups/browser/owned | -[**listPublicGroups**](GroupsApi.md#listPublicGroups) | **GET** /groups/browser/public | -[**listSharedGroups**](GroupsApi.md#listSharedGroups) | **GET** /groups/browser/shared | -[**registerGroup**](GroupsApi.md#registerGroup) | **POST** /groups/{namespace}/{array}/register | -[**shareGroup**](GroupsApi.md#shareGroup) | **PATCH** /groups/{group_namespace}/{group_name}/share | -[**updateGroup**](GroupsApi.md#updateGroup) | **PATCH** /groups/{group_namespace}/{group_name} | +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**changeGroupContents**](GroupsApi.md#changeGroupContents) | **POST** /groups/{group_namespace}/{group_name}/contents | | +| [**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} | | +| [**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 | | +| [**groupsBrowserPublicFiltersGet**](GroupsApi.md#groupsBrowserPublicFiltersGet) | **GET** /groups/browser/public/filters | | +| [**groupsBrowserSharedFiltersGet**](GroupsApi.md#groupsBrowserSharedFiltersGet) | **GET** /groups/browser/shared/filters | | +| [**groupsGroupNamespaceGroupNameContentsFiltersGet**](GroupsApi.md#groupsGroupNamespaceGroupNameContentsFiltersGet) | **GET** /groups/{group_namespace}/{group_name}/contents/filters | | +| [**listOwnedGroups**](GroupsApi.md#listOwnedGroups) | **GET** /groups/browser/owned | | +| [**listPublicGroups**](GroupsApi.md#listPublicGroups) | **GET** /groups/browser/public | | +| [**listSharedGroups**](GroupsApi.md#listSharedGroups) | **GET** /groups/browser/shared | | +| [**registerGroup**](GroupsApi.md#registerGroup) | **POST** /groups/{namespace}/{array}/register | | +| [**shareGroup**](GroupsApi.md#shareGroup) | **PATCH** /groups/{group_namespace}/{group_name}/share | | +| [**updateGroup**](GroupsApi.md#updateGroup) | **PATCH** /groups/{group_namespace}/{group_name} | | @@ -75,11 +75,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **groupNamespace** | **String**| The namespace of the group | - **groupName** | **String**| The unique name or id of the group | - **groupChanges** | [**GroupChanges**](GroupChanges.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **groupNamespace** | **String**| The namespace of the group | | +| **groupName** | **String**| The unique name or id of the group | | +| **groupChanges** | [**GroupChanges**](GroupChanges.md)| | [optional] | ### Return type @@ -97,8 +97,8 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | all changes applied successfully | - | -**0** | error response | - | +| **204** | all changes applied successfully | - | +| **0** | error response | - | # **createGroup** @@ -152,10 +152,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| The namespace of the group | - **groupCreate** | [**GroupCreate**](GroupCreate.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| The namespace of the group | | +| **groupCreate** | [**GroupCreate**](GroupCreate.md)| | [optional] | ### Return type @@ -173,8 +173,8 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | group created successfully | - | -**0** | error response | - | +| **204** | group created successfully | - | +| **0** | error response | - | # **deleteGroup** @@ -228,10 +228,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **groupNamespace** | **String**| The namespace of the group | - **groupName** | **String**| The unique name or id of the group | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **groupNamespace** | **String**| The namespace of the group | | +| **groupName** | **String**| The unique name or id of the group | | ### Return type @@ -249,8 +249,8 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | group deleted successfully | - | -**0** | error response | - | +| **204** | group deleted successfully | - | +| **0** | error response | - | # **getGroup** @@ -305,10 +305,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **groupNamespace** | **String**| The namespace of the group | - **groupName** | **String**| The unique name or id of the group | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **groupNamespace** | **String**| The namespace of the group | | +| **groupName** | **String**| The unique name or id of the group | | ### Return type @@ -326,8 +326,8 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | the group metadata | - | -**0** | error response | - | +| **200** | the group metadata | - | +| **0** | error response | - | # **getGroupContents** @@ -391,19 +391,19 @@ public class Example { ### 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 for assets | [optional] - **perPage** | **Integer**| pagination limit for assets | [optional] - **namespace** | **String**| namespace to search for | [optional] - **search** | **String**| search string that will look at name, namespace or description fields | [optional] - **orderby** | **String**| sort by which field valid values include last_accessed, size, name | [optional] - **tag** | [**List<String>**](String.md)| tag to search for, more than one can be included | [optional] - **excludeTag** | [**List<String>**](String.md)| tags to exclude matching array in results, more than one can be included | [optional] - **memberType** | [**List<String>**](String.md)| member type to search for, more than one can be included | [optional] - **excludeMemberType** | [**List<String>**](String.md)| member type to exclude matching groups in results, more than one can be included | [optional] +| 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 for assets | [optional] | +| **perPage** | **Integer**| pagination limit for assets | [optional] | +| **namespace** | **String**| namespace to search for | [optional] | +| **search** | **String**| search string that will look at name, namespace or description fields | [optional] | +| **orderby** | **String**| sort by which field valid values include last_accessed, size, name | [optional] | +| **tag** | [**List<String>**](String.md)| tag to search for, more than one can be included | [optional] | +| **excludeTag** | [**List<String>**](String.md)| tags to exclude matching array in results, more than one can be included | [optional] | +| **memberType** | [**List<String>**](String.md)| member type to search for, more than one can be included | [optional] | +| **excludeMemberType** | [**List<String>**](String.md)| member type to exclude matching groups in results, more than one can be included | [optional] | ### Return type @@ -421,8 +421,8 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | the group contents | - | -**0** | error response | - | +| **200** | the group contents | - | +| **0** | error response | - | # **getGroupSharingPolicies** @@ -477,10 +477,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **groupNamespace** | **String**| The namespace of the group | - **groupName** | **String**| The unique name or id of the group | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **groupNamespace** | **String**| The namespace of the group | | +| **groupName** | **String**| The unique name or id of the group | | ### Return type @@ -498,9 +498,9 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | List of all specific sharing policies | - | -**404** | Group does not exist or user does not have permissions to view group-sharing policies | - | -**0** | error response | - | +| **200** | List of all specific sharing policies | - | +| **404** | Group does not exist or user does not have permissions to view group-sharing policies | - | +| **0** | error response | - | # **groupsBrowserOwnedFiltersGet** @@ -570,8 +570,8 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Filter data | - | -**0** | error response | - | +| **200** | Filter data | - | +| **0** | error response | - | # **groupsBrowserPublicFiltersGet** @@ -641,8 +641,8 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Filter data | - | -**0** | error response | - | +| **200** | Filter data | - | +| **0** | error response | - | # **groupsBrowserSharedFiltersGet** @@ -712,8 +712,8 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Filter data | - | -**0** | error response | - | +| **200** | Filter data | - | +| **0** | error response | - | # **groupsGroupNamespaceGroupNameContentsFiltersGet** @@ -768,10 +768,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **groupNamespace** | **String**| The namespace of the group | - **groupName** | **String**| The unique name or id of the group | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **groupNamespace** | **String**| The namespace of the group | | +| **groupName** | **String**| The unique name or id of the group | | ### Return type @@ -789,8 +789,8 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Filter data | - | -**0** | error response | - | +| **200** | Filter data | - | +| **0** | error response | - | # **listOwnedGroups** @@ -853,18 +853,18 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **page** | **Integer**| pagination offset | [optional] - **perPage** | **Integer**| pagination limit | [optional] - **search** | **String**| search string that will look at name, namespace or description fields | [optional] - **namespace** | **String**| namespace | [optional] - **orderby** | **String**| sort by which field valid values include last_accessed, size, name | [optional] - **permissions** | **String**| permissions valid values include read, read_write, write, admin | [optional] - **tag** | [**List<String>**](String.md)| tag to search for, more than one can be included | [optional] - **excludeTag** | [**List<String>**](String.md)| tags to exclude matching array in results, more than one can be included | [optional] - **flat** | **Boolean**| if true, ignores the nesting of groups and searches all of them | [optional] - **parent** | **String**| search only the children of the groups with this uuid | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **page** | **Integer**| pagination offset | [optional] | +| **perPage** | **Integer**| pagination limit | [optional] | +| **search** | **String**| search string that will look at name, namespace or description fields | [optional] | +| **namespace** | **String**| namespace | [optional] | +| **orderby** | **String**| sort by which field valid values include last_accessed, size, name | [optional] | +| **permissions** | **String**| permissions valid values include read, read_write, write, admin | [optional] | +| **tag** | [**List<String>**](String.md)| tag to search for, more than one can be included | [optional] | +| **excludeTag** | [**List<String>**](String.md)| tags to exclude matching array in results, more than one can be included | [optional] | +| **flat** | **Boolean**| if true, ignores the nesting of groups and searches all of them | [optional] | +| **parent** | **String**| search only the children of the groups with this uuid | [optional] | ### Return type @@ -882,8 +882,8 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | the group contents | - | -**0** | error response | - | +| **200** | the group contents | - | +| **0** | error response | - | # **listPublicGroups** @@ -946,18 +946,18 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **page** | **Integer**| pagination offset | [optional] - **perPage** | **Integer**| pagination limit | [optional] - **search** | **String**| search string that will look at name, namespace or description fields | [optional] - **namespace** | **String**| namespace | [optional] - **orderby** | **String**| sort by which field valid values include last_accessed, size, name | [optional] - **permissions** | **String**| permissions valid values include read, read_write, write, admin | [optional] - **tag** | [**List<String>**](String.md)| tag to search for, more than one can be included | [optional] - **excludeTag** | [**List<String>**](String.md)| tags to exclude matching array in results, more than one can be included | [optional] - **flat** | **Boolean**| if true, ignores the nesting of groups and searches all of them | [optional] - **parent** | **String**| search only the children of the groups with this uuid | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **page** | **Integer**| pagination offset | [optional] | +| **perPage** | **Integer**| pagination limit | [optional] | +| **search** | **String**| search string that will look at name, namespace or description fields | [optional] | +| **namespace** | **String**| namespace | [optional] | +| **orderby** | **String**| sort by which field valid values include last_accessed, size, name | [optional] | +| **permissions** | **String**| permissions valid values include read, read_write, write, admin | [optional] | +| **tag** | [**List<String>**](String.md)| tag to search for, more than one can be included | [optional] | +| **excludeTag** | [**List<String>**](String.md)| tags to exclude matching array in results, more than one can be included | [optional] | +| **flat** | **Boolean**| if true, ignores the nesting of groups and searches all of them | [optional] | +| **parent** | **String**| search only the children of the groups with this uuid | [optional] | ### Return type @@ -975,12 +975,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | the group contents | - | -**0** | error response | - | +| **200** | the group contents | - | +| **0** | error response | - | # **listSharedGroups** -> GroupBrowserData listSharedGroups(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, flat, parent) +> GroupBrowserData listSharedGroups(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, sharedTo) @@ -1023,8 +1023,9 @@ public class Example { List excludeTag = Arrays.asList(); // List | tags to exclude matching array in results, more than one can be included Boolean flat = true; // Boolean | if true, ignores the nesting of groups and searches all of them String parent = "parent_example"; // String | search only the children of the groups with this uuid + List sharedTo = Arrays.asList(); // List | namespaces to filter results of where there groups were shared to try { - GroupBrowserData result = apiInstance.listSharedGroups(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, flat, parent); + GroupBrowserData result = apiInstance.listSharedGroups(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, sharedTo); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling GroupsApi#listSharedGroups"); @@ -1039,18 +1040,19 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **page** | **Integer**| pagination offset | [optional] - **perPage** | **Integer**| pagination limit | [optional] - **search** | **String**| search string that will look at name, namespace or description fields | [optional] - **namespace** | **String**| namespace | [optional] - **orderby** | **String**| sort by which field valid values include last_accessed, size, name | [optional] - **permissions** | **String**| permissions valid values include read, read_write, write, admin | [optional] - **tag** | [**List<String>**](String.md)| tag to search for, more than one can be included | [optional] - **excludeTag** | [**List<String>**](String.md)| tags to exclude matching array in results, more than one can be included | [optional] - **flat** | **Boolean**| if true, ignores the nesting of groups and searches all of them | [optional] - **parent** | **String**| search only the children of the groups with this uuid | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **page** | **Integer**| pagination offset | [optional] | +| **perPage** | **Integer**| pagination limit | [optional] | +| **search** | **String**| search string that will look at name, namespace or description fields | [optional] | +| **namespace** | **String**| namespace | [optional] | +| **orderby** | **String**| sort by which field valid values include last_accessed, size, name | [optional] | +| **permissions** | **String**| permissions valid values include read, read_write, write, admin | [optional] | +| **tag** | [**List<String>**](String.md)| tag to search for, more than one can be included | [optional] | +| **excludeTag** | [**List<String>**](String.md)| tags to exclude matching array in results, more than one can be included | [optional] | +| **flat** | **Boolean**| if true, ignores the nesting of groups and searches all of them | [optional] | +| **parent** | **String**| search only the children of the groups with this uuid | [optional] | +| **sharedTo** | [**List<String>**](String.md)| namespaces to filter results of where there groups were shared to | [optional] | ### Return type @@ -1068,8 +1070,8 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | the group contents | - | -**0** | error response | - | +| **200** | the group contents | - | +| **0** | error response | - | # **registerGroup** @@ -1124,11 +1126,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| The namespace of the group | - **array** | **String**| The unique name or id of the group | - **groupRegister** | [**GroupRegister**](GroupRegister.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| The namespace of the group | | +| **array** | **String**| The unique name or id of the group | | +| **groupRegister** | [**GroupRegister**](GroupRegister.md)| | [optional] | ### Return type @@ -1146,8 +1148,8 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | group created successfully | - | -**0** | error response | - | +| **204** | group created successfully | - | +| **0** | error response | - | # **shareGroup** @@ -1202,11 +1204,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **groupNamespace** | **String**| The namespace of the group | - **groupName** | **String**| The unique name or id of the group | - **groupSharingRequest** | [**GroupSharingRequest**](GroupSharingRequest.md)| 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. | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **groupNamespace** | **String**| The namespace of the group | | +| **groupName** | **String**| The unique name or id of the group | | +| **groupSharingRequest** | [**GroupSharingRequest**](GroupSharingRequest.md)| 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. | | ### Return type @@ -1224,9 +1226,9 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Group shared successfully | - | -**404** | Group does not exist or user does not have permissions to share group | - | -**0** | error response | - | +| **204** | Group shared successfully | - | +| **404** | Group does not exist or user does not have permissions to share group | - | +| **0** | error response | - | # **updateGroup** @@ -1281,11 +1283,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **groupNamespace** | **String**| The namespace of the group | - **groupName** | **String**| The unique name or id of the group | - **groupUpdate** | [**GroupUpdate**](GroupUpdate.md)| | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **groupNamespace** | **String**| The namespace of the group | | +| **groupName** | **String**| The unique name or id of the group | | +| **groupUpdate** | [**GroupUpdate**](GroupUpdate.md)| | [optional] | ### Return type @@ -1303,6 +1305,6 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | attributes changed successfully | - | -**0** | error response | - | +| **204** | attributes changed successfully | - | +| **0** | error response | - | diff --git a/docs/Invitation.md b/docs/Invitation.md index 4adcc6e..3abce27 100644 --- a/docs/Invitation.md +++ b/docs/Invitation.md @@ -6,23 +6,23 @@ Invitations to share or collaborate ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**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] -**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] -**arrayUuid** | **String** | Unique ID of the array | [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] -**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] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**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] | +|**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] | +|**arrayUuid** | **String** | Unique ID of the array | [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] | +|**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] | diff --git a/docs/InvitationApi.md b/docs/InvitationApi.md index f6697bf..4e30982 100644 --- a/docs/InvitationApi.md +++ b/docs/InvitationApi.md @@ -2,14 +2,14 @@ All URIs are relative to */v1* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**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 | -[**fetchInvitations**](InvitationApi.md#fetchInvitations) | **GET** /invitations | -[**joinOrganization**](InvitationApi.md#joinOrganization) | **POST** /invitations/{organization}/join | -[**shareArrayByInvite**](InvitationApi.md#shareArrayByInvite) | **POST** /invitations/{namespace}/{array}/share | +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**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 | | +| [**fetchInvitations**](InvitationApi.md#fetchInvitations) | **GET** /invitations | | +| [**joinOrganization**](InvitationApi.md#joinOrganization) | **POST** /invitations/{organization}/join | | +| [**shareArrayByInvite**](InvitationApi.md#shareArrayByInvite) | **POST** /invitations/{namespace}/{array}/share | | @@ -63,9 +63,9 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **invitation** | **String**| the ID of invitation about to be accepted | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **invitation** | **String**| the ID of invitation about to be accepted | | ### Return type @@ -83,9 +83,9 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Invitation was accepted successfully | - | -**404** | Could not find invitation identifier | - | -**0** | error response | - | +| **204** | Invitation was accepted successfully | - | +| **404** | Could not find invitation identifier | - | +| **0** | error response | - | # **cancelJoinOrganization** @@ -139,10 +139,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **invitation** | **String**| the ID of invitation about to be cancelled | - **organization** | **String**| name or UUID of organization | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **invitation** | **String**| the ID of invitation about to be cancelled | | +| **organization** | **String**| name or UUID of organization | | ### Return type @@ -160,9 +160,9 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Invitation cancelled successfully | - | -**404** | No invitation was found to cancel | - | -**0** | error response | - | +| **204** | Invitation cancelled successfully | - | +| **404** | No invitation was found to cancel | - | +| **0** | error response | - | # **cancelShareArrayByInvite** @@ -217,11 +217,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| namespace array is in (an organization name or user's username) | - **invitation** | **String**| the ID of invitation about to be cancelled | - **array** | **String**| name/uri of array that is url-encoded | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **invitation** | **String**| the ID of invitation about to be cancelled | | +| **array** | **String**| name/uri of array that is url-encoded | | ### Return type @@ -239,9 +239,9 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Invitation cancelled successfully | - | -**404** | No invitation was found to cancel | - | -**0** | error response | - | +| **204** | Invitation cancelled successfully | - | +| **404** | No invitation was found to cancel | - | +| **0** | error response | - | # **fetchInvitations** @@ -303,17 +303,17 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **organization** | **String**| name or ID of organization to filter | [optional] - **array** | **String**| name/uri of array that is url-encoded 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] - **perPage** | **Integer**| pagination limit | [optional] - **type** | **String**| invitation type, \"ARRAY_SHARE\", \"JOIN_ORGANIZATION\" | [optional] - **status** | **String**| Filter to only return \"PENDING\", \"ACCEPTED\" | [optional] - **orderby** | **String**| sort by which field valid values include timestamp, array_name, organization_name | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **organization** | **String**| name or ID of organization to filter | [optional] | +| **array** | **String**| name/uri of array that is url-encoded 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] | +| **perPage** | **Integer**| pagination limit | [optional] | +| **type** | **String**| invitation type, \"ARRAY_SHARE\", \"JOIN_ORGANIZATION\" | [optional] | +| **status** | **String**| Filter to only return \"PENDING\", \"ACCEPTED\" | [optional] | +| **orderby** | **String**| sort by which field valid values include timestamp, array_name, organization_name | [optional] | ### Return type @@ -331,8 +331,8 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | List of invitations and pagination metadata | - | -**0** | error response | - | +| **200** | List of invitations and pagination metadata | - | +| **0** | error response | - | # **joinOrganization** @@ -386,10 +386,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **organization** | **String**| name or UUID of organization | - **emailInvite** | [**InvitationOrganizationJoinEmail**](InvitationOrganizationJoinEmail.md)| list of email recipients | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **organization** | **String**| name or UUID of organization | | +| **emailInvite** | [**InvitationOrganizationJoinEmail**](InvitationOrganizationJoinEmail.md)| list of email recipients | | ### Return type @@ -407,9 +407,9 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Email sent successfully to user for email confirmation link | - | -**404** | Could not reach one or more recipients | - | -**0** | error response | - | +| **204** | Email sent successfully to user for email confirmation link | - | +| **404** | Could not reach one or more recipients | - | +| **0** | error response | - | # **shareArrayByInvite** @@ -464,11 +464,11 @@ public class Example { ### 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 | - **emailInvite** | [**InvitationArrayShareEmail**](InvitationArrayShareEmail.md)| list of email recipients | +| 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 | | +| **emailInvite** | [**InvitationArrayShareEmail**](InvitationArrayShareEmail.md)| list of email recipients | | ### Return type @@ -486,7 +486,7 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Email sent successfully to user for email confirmation link | - | -**404** | Could not reach one or more recipients | - | -**0** | error response | - | +| **204** | Email sent successfully to user for email confirmation link | - | +| **404** | Could not reach one or more recipients | - | +| **0** | error response | - | diff --git a/docs/InvitationArrayShareEmail.md b/docs/InvitationArrayShareEmail.md index bd46aa5..f6ef955 100644 --- a/docs/InvitationArrayShareEmail.md +++ b/docs/InvitationArrayShareEmail.md @@ -6,10 +6,10 @@ Encapsulates information regarding inviting people using email to share array, s ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**actions** | **List<ArrayActions>** | List of permitted actions | -**inviteeEmail** | **List<String>** | | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**actions** | **List<ArrayActions>** | List of permitted actions | | +|**inviteeEmail** | **List<String>** | | | diff --git a/docs/InvitationData.md b/docs/InvitationData.md index fc123b3..b4c836c 100644 --- a/docs/InvitationData.md +++ b/docs/InvitationData.md @@ -6,10 +6,10 @@ Object including invitations and metadata ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**invitations** | [**List<Invitation>**](Invitation.md) | List of invitations | [optional] -**paginationMetadata** | [**PaginationMetadata**](PaginationMetadata.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**invitations** | [**List<Invitation>**](Invitation.md) | List of invitations | [optional] | +|**paginationMetadata** | [**PaginationMetadata**](PaginationMetadata.md) | | [optional] | diff --git a/docs/InvitationOrganizationJoinEmail.md b/docs/InvitationOrganizationJoinEmail.md index 7a40575..4cbb1a9 100644 --- a/docs/InvitationOrganizationJoinEmail.md +++ b/docs/InvitationOrganizationJoinEmail.md @@ -6,11 +6,11 @@ Encapsulates information regarding inviting people using email to join organizat ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**actions** | **List<NamespaceActions>** | List of permitted actions | [optional] -**organizationRole** | **OrganizationRoles** | | -**inviteeEmail** | **List<String>** | | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**actions** | **List<NamespaceActions>** | List of permitted actions | [optional] | +|**organizationRole** | **OrganizationRoles** | | | +|**inviteeEmail** | **List<String>** | | | diff --git a/docs/LastAccessedArray.md b/docs/LastAccessedArray.md index e246f16..638c34d 100644 --- a/docs/LastAccessedArray.md +++ b/docs/LastAccessedArray.md @@ -6,13 +6,13 @@ Information related to last access of an array ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**arrayId** | **String** | unique ID of array | [optional] -**arrayName** | **String** | name of the array | [optional] -**namespace** | **String** | namespace of a user or organization | [optional] -**accessedTime** | **BigDecimal** | timestamp (epoch milliseconds) array is last accessed | [optional] -**accessType** | **ActivityEventType** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**arrayId** | **String** | unique ID of array | [optional] | +|**arrayName** | **String** | name of the array | [optional] | +|**namespace** | **String** | namespace of a user or organization | [optional] | +|**accessedTime** | **BigDecimal** | timestamp (epoch milliseconds) array is last accessed | [optional] | +|**accessType** | **ActivityEventType** | | [optional] | diff --git a/docs/MLModelFavorite.md b/docs/MLModelFavorite.md index fcac82b..e704cd5 100644 --- a/docs/MLModelFavorite.md +++ b/docs/MLModelFavorite.md @@ -6,11 +6,11 @@ A user-favorite MLModel item ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**mlmodelUuid** | **String** | unique UUID of the MLModel | [optional] -**namespace** | **String** | the namespace of the MLModel | [optional] -**name** | **String** | the name of the MLModel | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**mlmodelUuid** | **String** | unique UUID of the MLModel | [optional] | +|**namespace** | **String** | the namespace of the MLModel | [optional] | +|**name** | **String** | the name of the MLModel | [optional] | diff --git a/docs/MLModelFavoritesData.md b/docs/MLModelFavoritesData.md index e5d5be9..4d6ca32 100644 --- a/docs/MLModelFavoritesData.md +++ b/docs/MLModelFavoritesData.md @@ -6,10 +6,10 @@ Object including MLModel favorites and pagination metadata ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**mlmodels** | [**List<ArrayInfo>**](ArrayInfo.md) | List of MLModel infos | [optional] -**paginationMetadata** | [**PaginationMetadata**](PaginationMetadata.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**mlmodels** | [**List<ArrayInfo>**](ArrayInfo.md) | List of MLModel infos | [optional] | +|**paginationMetadata** | [**PaginationMetadata**](PaginationMetadata.md) | | [optional] | diff --git a/docs/MaxBufferSizes.md b/docs/MaxBufferSizes.md index 23383c2..c016b73 100644 --- a/docs/MaxBufferSizes.md +++ b/docs/MaxBufferSizes.md @@ -6,9 +6,9 @@ a list of max buffer sizes, one per attribute ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**maxBufferSizes** | [**List<AttributeBufferSize>**](AttributeBufferSize.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**maxBufferSizes** | [**List<AttributeBufferSize>**](AttributeBufferSize.md) | | [optional] | diff --git a/docs/MultiArrayUDF.md b/docs/MultiArrayUDF.md index 961f5ab..93b5157 100644 --- a/docs/MultiArrayUDF.md +++ b/docs/MultiArrayUDF.md @@ -6,29 +6,29 @@ User-defined function ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**udfInfoName** | **String** | name of UDFInfo to run, format is {namespace}/{udf_name}. Can not be used with exec | [optional] -**language** | **UDFLanguage** | | [optional] -**version** | **String** | Type-specific version | [optional] -**imageName** | **String** | Docker image name to use for 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] -**exec** | **String** | Type-specific executable text | [optional] -**execRaw** | **String** | optional raw text to store of serialized function, used for showing in UI | [optional] -**resultFormat** | **ResultFormat** | | [optional] -**taskName** | **String** | name of task, optional | [optional] -**argument** | **String** | 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 | [optional] -**argumentsJson** | [**List<TGUDFArgument>**](TGUDFArgument.md) | 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. | [optional] -**storedParamUuids** | **List<String>** | 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 {}. | [optional] -**storeResults** | **Boolean** | store results for later retrieval | [optional] -**dontDownloadResults** | **Boolean** | 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\"). | [optional] -**ranges** | [**QueryRanges**](QueryRanges.md) | | [optional] -**subarray** | [**UDFSubarray**](UDFSubarray.md) | | [optional] -**buffers** | **List<String>** | List of buffers to fetch (attributes + dimensions). Deprecated; please set arrays with `UDFArrayDetails`. | [optional] -**arrays** | [**List<UDFArrayDetails>**](UDFArrayDetails.md) | Array ranges/buffer into to run UDF on | [optional] -**timeout** | **Integer** | UDF-type timeout in seconds (default: 900) | [optional] -**taskGraphUuid** | **String** | If set, the ID of the log for the task graph that this was part of. | [optional] -**clientNodeUuid** | **String** | If set, the client-defined ID of the node within this task's graph. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**udfInfoName** | **String** | name of UDFInfo to run, format is {namespace}/{udf_name}. Can not be used with exec | [optional] | +|**language** | **UDFLanguage** | | [optional] | +|**version** | **String** | Type-specific version | [optional] | +|**imageName** | **String** | Docker image name to use for 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] | +|**exec** | **String** | Type-specific executable text | [optional] | +|**execRaw** | **String** | optional raw text to store of serialized function, used for showing in UI | [optional] | +|**resultFormat** | **ResultFormat** | | [optional] | +|**taskName** | **String** | name of task, optional | [optional] | +|**argument** | **String** | 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 | [optional] | +|**argumentsJson** | [**List<TGUDFArgument>**](TGUDFArgument.md) | 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. | [optional] | +|**storedParamUuids** | **List<String>** | 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 {}. | [optional] | +|**storeResults** | **Boolean** | store results for later retrieval | [optional] | +|**dontDownloadResults** | **Boolean** | 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\"). | [optional] | +|**ranges** | [**QueryRanges**](QueryRanges.md) | | [optional] | +|**subarray** | [**UDFSubarray**](UDFSubarray.md) | | [optional] | +|**buffers** | **List<String>** | List of buffers to fetch (attributes + dimensions). Deprecated; please set arrays with `UDFArrayDetails`. | [optional] | +|**arrays** | [**List<UDFArrayDetails>**](UDFArrayDetails.md) | Array ranges/buffer into to run UDF on | [optional] | +|**timeout** | **Integer** | UDF-type timeout in seconds (default: 900) | [optional] | +|**taskGraphUuid** | **String** | If set, the ID of the log for the task graph that this was part of. | [optional] | +|**clientNodeUuid** | **String** | If set, the client-defined ID of the node within this task's graph. | [optional] | diff --git a/docs/NonEmptyDomain.md b/docs/NonEmptyDomain.md index b91635c..9ebb4c4 100644 --- a/docs/NonEmptyDomain.md +++ b/docs/NonEmptyDomain.md @@ -6,10 +6,10 @@ object representing a non-empty domain ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**nonEmptyDomain** | [**DomainArray**](DomainArray.md) | | -**isEmpty** | **Boolean** | Is non-empty domain really empty? | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**nonEmptyDomain** | [**DomainArray**](DomainArray.md) | | | +|**isEmpty** | **Boolean** | Is non-empty domain really empty? | | diff --git a/docs/NotebookApi.md b/docs/NotebookApi.md index 8e0f490..12e95c1 100644 --- a/docs/NotebookApi.md +++ b/docs/NotebookApi.md @@ -2,13 +2,13 @@ All URIs are relative to */v1* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getNotebookServerStatus**](NotebookApi.md#getNotebookServerStatus) | **GET** /notebooks/server/{namespace}/status | -[**handleCopyNotebook**](NotebookApi.md#handleCopyNotebook) | **POST** /notebooks/{namespace}/{array}/copy | -[**handleUploadNotebook**](NotebookApi.md#handleUploadNotebook) | **POST** /notebooks/{namespace}/upload | -[**shutdownNotebookServer**](NotebookApi.md#shutdownNotebookServer) | **DELETE** /notebooks/server/{namespace} | -[**updateNotebookName**](NotebookApi.md#updateNotebookName) | **PATCH** /notebooks/{namespace}/{array}/rename | +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**getNotebookServerStatus**](NotebookApi.md#getNotebookServerStatus) | **GET** /notebooks/server/{namespace}/status | | +| [**handleCopyNotebook**](NotebookApi.md#handleCopyNotebook) | **POST** /notebooks/{namespace}/{array}/copy | | +| [**handleUploadNotebook**](NotebookApi.md#handleUploadNotebook) | **POST** /notebooks/{namespace}/upload | | +| [**shutdownNotebookServer**](NotebookApi.md#shutdownNotebookServer) | **DELETE** /notebooks/server/{namespace} | | +| [**updateNotebookName**](NotebookApi.md#updateNotebookName) | **PATCH** /notebooks/{namespace}/{array}/rename | | @@ -63,9 +63,9 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| namespace notebook is in (an organization name or user's username) | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| namespace notebook is in (an organization name or user's username) | | ### Return type @@ -83,11 +83,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | status of running notebook | - | -**202** | Notebook server is pending | - | -**402** | Payment required | - | -**404** | Notebook is not running | - | -**0** | error response | - | +| **200** | status of running notebook | - | +| **202** | Notebook server is pending | - | +| **402** | Payment required | - | +| **404** | Notebook is not running | - | +| **0** | error response | - | # **handleCopyNotebook** @@ -145,13 +145,13 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| The namespace of the notebook | - **array** | **String**| The name of the notebook | - **notebookCopy** | [**NotebookCopy**](NotebookCopy.md)| Input/Output information to create a new TileDB file | - **X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME** | **String**| Optional registered access credentials to use for creation | [optional] - **endTimestamp** | **Integer**| Milliseconds since Unix epoch, copy will use open_at functionality to copy notebook created at the specific timestamp | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| The namespace of the notebook | | +| **array** | **String**| The name of the notebook | | +| **notebookCopy** | [**NotebookCopy**](NotebookCopy.md)| Input/Output information to create a new TileDB file | | +| **X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME** | **String**| Optional registered access credentials to use for creation | [optional] | +| **endTimestamp** | **Integer**| Milliseconds since Unix epoch, copy will use open_at functionality to copy notebook created at the specific timestamp | [optional] | ### Return type @@ -169,8 +169,8 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**201** | Notebook copied | - | -**0** | error response | - | +| **201** | Notebook copied | - | +| **0** | error response | - | # **handleUploadNotebook** @@ -228,13 +228,13 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| The namespace of the notebook | - **inputFile** | **File**| the notebook to upload | - **X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME** | **String**| Optional registered access credentials to use for creation | [optional] - **outputUri** | **String**| output location of the TileDB File | [optional] - **name** | **String**| name to set for registered file | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| The namespace of the notebook | | +| **inputFile** | **File**| the notebook to upload | | +| **X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME** | **String**| Optional registered access credentials to use for creation | [optional] | +| **outputUri** | **String**| output location of the TileDB File | [optional] | +| **name** | **String**| name to set for registered file | [optional] | ### Return type @@ -252,8 +252,8 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**201** | File uploaded | - | -**0** | error response | - | +| **201** | File uploaded | - | +| **0** | error response | - | # **shutdownNotebookServer** @@ -306,9 +306,9 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| namespace notebook is in (an organization name or user's username) | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| namespace notebook is in (an organization name or user's username) | | ### Return type @@ -326,9 +326,9 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Notebook shutdown successfully | - | -**404** | Notebook is not running | - | -**0** | error response | - | +| **204** | Notebook shutdown successfully | - | +| **404** | Notebook is not running | - | +| **0** | error response | - | # **updateNotebookName** @@ -383,11 +383,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| namespace array is in (an organization name or user's username) | - **array** | **String**| name/uri of notebook (array) that is url-encoded | - **notebookMetadata** | [**ArrayInfoUpdate**](ArrayInfoUpdate.md)| notebook (array) metadata to update | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **array** | **String**| name/uri of notebook (array) that is url-encoded | | +| **notebookMetadata** | [**ArrayInfoUpdate**](ArrayInfoUpdate.md)| notebook (array) metadata to update | | ### Return type @@ -405,6 +405,6 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | notebook name updated successfully | - | -**0** | error response | - | +| **204** | notebook name updated successfully | - | +| **0** | error response | - | diff --git a/docs/NotebookCopied.md b/docs/NotebookCopied.md index 74ce762..7b85018 100644 --- a/docs/NotebookCopied.md +++ b/docs/NotebookCopied.md @@ -6,12 +6,12 @@ Copied notebook uri and information ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**outputUri** | **String** | output location of the TileDB Notebook | [optional] -**name** | **String** | name of the notebook created | [optional] -**namespace** | **String** | namespace copied to | [optional] -**id** | **String** | unique ID of the copied notebook | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**outputUri** | **String** | output location of the TileDB Notebook | [optional] | +|**name** | **String** | name of the notebook created | [optional] | +|**namespace** | **String** | namespace copied to | [optional] | +|**id** | **String** | unique ID of the copied notebook | | diff --git a/docs/NotebookCopy.md b/docs/NotebookCopy.md index 2a4d2b1..2113e58 100644 --- a/docs/NotebookCopy.md +++ b/docs/NotebookCopy.md @@ -6,11 +6,11 @@ Output information required to copy a notebook ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**outputUri** | **String** | output location of the TileDB File | [optional] -**name** | **String** | name to set for registered notebook | [optional] -**namespace** | **String** | namespace to copy to | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**outputUri** | **String** | output location of the TileDB File | [optional] | +|**name** | **String** | name to set for registered notebook | [optional] | +|**namespace** | **String** | namespace to copy to | [optional] | diff --git a/docs/NotebookFavorite.md b/docs/NotebookFavorite.md index 909dc9c..6121ae6 100644 --- a/docs/NotebookFavorite.md +++ b/docs/NotebookFavorite.md @@ -6,11 +6,11 @@ A user-favorite notebook item ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**notebookUuid** | **String** | unique UUID of the notebook | [optional] -**namespace** | **String** | the namespace of the notebook | [optional] -**name** | **String** | the name of the notebook | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**notebookUuid** | **String** | unique UUID of the notebook | [optional] | +|**namespace** | **String** | the namespace of the notebook | [optional] | +|**name** | **String** | the name of the notebook | [optional] | diff --git a/docs/NotebookFavoritesData.md b/docs/NotebookFavoritesData.md index 3cd0082..bc52f6d 100644 --- a/docs/NotebookFavoritesData.md +++ b/docs/NotebookFavoritesData.md @@ -6,10 +6,10 @@ Object including notebook favorites and pagination metadata ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**notebooks** | [**List<ArrayInfo>**](ArrayInfo.md) | List of notebook infos | [optional] -**paginationMetadata** | [**PaginationMetadata**](PaginationMetadata.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**notebooks** | [**List<ArrayInfo>**](ArrayInfo.md) | List of notebook infos | [optional] | +|**paginationMetadata** | [**PaginationMetadata**](PaginationMetadata.md) | | [optional] | diff --git a/docs/NotebookStatus.md b/docs/NotebookStatus.md index 3c08675..cff8f30 100644 --- a/docs/NotebookStatus.md +++ b/docs/NotebookStatus.md @@ -6,14 +6,16 @@ Status details of a notebook server ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**namespace** | **String** | namespace of notebook | [optional] -**uptime** | **Integer** | duration notebook has been running in seconds | [optional] -**cpuUsage** | **Integer** | current cpu usage in millicpu | [optional] -**memoryUsage** | **Integer** | memory usage in bytes | [optional] -**memoryLimit** | **Integer** | memory allocated to notebook server in bytes | [optional] -**cpuCount** | **Integer** | millicpu allocated to notebook server | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**namespace** | **String** | namespace of notebook | [optional] | +|**uptime** | **Integer** | duration notebook has been running in seconds | [optional] | +|**cpuUsage** | **Integer** | current cpu usage in millicpu | [optional] | +|**memoryUsage** | **Integer** | memory usage in bytes | [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] | diff --git a/docs/NotebooksApi.md b/docs/NotebooksApi.md index d05f30f..c68d850 100644 --- a/docs/NotebooksApi.md +++ b/docs/NotebooksApi.md @@ -2,9 +2,9 @@ All URIs are relative to */v1* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**notebooksNamespaceArrayEndTimestampsGet**](NotebooksApi.md#notebooksNamespaceArrayEndTimestampsGet) | **GET** /notebooks/{namespace}/{array}/end_timestamps | +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**notebooksNamespaceArrayEndTimestampsGet**](NotebooksApi.md#notebooksNamespaceArrayEndTimestampsGet) | **GET** /notebooks/{namespace}/{array}/end_timestamps | | @@ -62,12 +62,12 @@ public class Example { ### 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 | - **page** | **Integer**| pagination offset | [optional] - **perPage** | **Integer**| pagination limit | [optional] +| 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 | | +| **page** | **Integer**| pagination offset | [optional] | +| **perPage** | **Integer**| pagination limit | [optional] | ### Return type @@ -85,6 +85,6 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | list of timestamps in milliseconds, paginated | - | -**0** | error response | - | +| **200** | list of timestamps in milliseconds, paginated | - | +| **0** | error response | - | diff --git a/docs/Organization.md b/docs/Organization.md index 7c6f259..32b1515 100644 --- a/docs/Organization.md +++ b/docs/Organization.md @@ -6,23 +6,23 @@ Organization ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | unique ID of organization | [optional] -**role** | **OrganizationRoles** | | [optional] -**name** | **String** | organization name must be unique | -**createdAt** | **OffsetDateTime** | Datetime organization was created in UTC | [optional] -**updatedAt** | **OffsetDateTime** | Datetime organization was updated in UTC | [optional] -**logo** | **String** | Organization logo | [optional] -**description** | **String** | Organization description | [optional] -**users** | [**List<OrganizationUser>**](OrganizationUser.md) | | [optional] -**allowedActions** | **List<NamespaceActions>** | list of actions user is allowed to do on this organization | [optional] -**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] -**stripeConnect** | **Boolean** | Denotes that the organization is able to apply pricing to arrays by means of Stripe Connect | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | unique ID of organization | [optional] | +|**role** | **OrganizationRoles** | | [optional] | +|**name** | **String** | organization name must be unique | | +|**createdAt** | **OffsetDateTime** | Datetime organization was created in UTC | [optional] | +|**updatedAt** | **OffsetDateTime** | Datetime organization was updated in UTC | [optional] | +|**logo** | **String** | Organization logo | [optional] | +|**description** | **String** | Organization description | [optional] | +|**users** | [**List<OrganizationUser>**](OrganizationUser.md) | | [optional] | +|**allowedActions** | **List<NamespaceActions>** | list of actions user is allowed to do on this organization | [optional] | +|**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] | +|**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 c40181c..ddc40eb 100644 --- a/docs/OrganizationApi.md +++ b/docs/OrganizationApi.md @@ -2,22 +2,22 @@ All URIs are relative to */v1* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**addAWSAccessCredentials**](OrganizationApi.md#addAWSAccessCredentials) | **POST** /credentials/{namespace}/aws | -[**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} | -[**createOrganization**](OrganizationApi.md#createOrganization) | **POST** /organization | -[**deleteAWSAccessCredentials**](OrganizationApi.md#deleteAWSAccessCredentials) | **DELETE** /credentials/{namespace}/aws/{name} | -[**deleteOrganization**](OrganizationApi.md#deleteOrganization) | **DELETE** /organizations/{organization} | -[**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} | -[**updateAWSAccessCredentials**](OrganizationApi.md#updateAWSAccessCredentials) | **PATCH** /credentials/{namespace}/aws/{name} | -[**updateOrganization**](OrganizationApi.md#updateOrganization) | **PATCH** /organizations/{organization} | -[**updateUserInOrganization**](OrganizationApi.md#updateUserInOrganization) | **PATCH** /organizations/{organization}/{username} | +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**addAWSAccessCredentials**](OrganizationApi.md#addAWSAccessCredentials) | **POST** /credentials/{namespace}/aws | | +| [**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} | | +| [**createOrganization**](OrganizationApi.md#createOrganization) | **POST** /organization | | +| [**deleteAWSAccessCredentials**](OrganizationApi.md#deleteAWSAccessCredentials) | **DELETE** /credentials/{namespace}/aws/{name} | | +| [**deleteOrganization**](OrganizationApi.md#deleteOrganization) | **DELETE** /organizations/{organization} | | +| [**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} | | +| [**updateAWSAccessCredentials**](OrganizationApi.md#updateAWSAccessCredentials) | **PATCH** /credentials/{namespace}/aws/{name} | | +| [**updateOrganization**](OrganizationApi.md#updateOrganization) | **PATCH** /organizations/{organization} | | +| [**updateUserInOrganization**](OrganizationApi.md#updateUserInOrganization) | **PATCH** /organizations/{organization}/{username} | | @@ -72,10 +72,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| namespace | - **awsAccessCredentials** | [**AWSAccessCredentials**](AWSAccessCredentials.md)| aws access credentials to store for a namespace | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| namespace | | +| **awsAccessCredentials** | [**AWSAccessCredentials**](AWSAccessCredentials.md)| aws access credentials to store for a namespace | | ### Return type @@ -93,8 +93,8 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | AWS keys added successfully | - | -**0** | error response | - | +| **204** | AWS keys added successfully | - | +| **0** | error response | - | # **addUserToOrganization** @@ -148,10 +148,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **organization** | **String**| organization name | - **user** | [**OrganizationUser**](OrganizationUser.md)| user to add | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **organization** | **String**| organization name | | +| **user** | [**OrganizationUser**](OrganizationUser.md)| user to add | | ### Return type @@ -169,8 +169,8 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | user added to organization successfully | - | -**0** | error response | - | +| **204** | user added to organization successfully | - | +| **0** | error response | - | # **checkAWSAccessCredentials** @@ -224,9 +224,9 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| namespace | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| namespace | | ### Return type @@ -244,8 +244,8 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | AWS keys are set | - | -**0** | error response | - | +| **200** | AWS keys are set | - | +| **0** | error response | - | # **checkAWSAccessCredentialsByName** @@ -300,10 +300,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| namespace | - **name** | **String**| name | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| namespace | | +| **name** | **String**| name | | ### Return type @@ -321,8 +321,8 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | AWS keys are set | - | -**0** | error response | - | +| **200** | AWS keys are set | - | +| **0** | error response | - | # **createOrganization** @@ -375,9 +375,9 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **organization** | [**Organization**](Organization.md)| organization to create | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **organization** | [**Organization**](Organization.md)| organization to create | | ### Return type @@ -395,8 +395,8 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | organization created successfully | - | -**0** | error response | - | +| **204** | organization created successfully | - | +| **0** | error response | - | # **deleteAWSAccessCredentials** @@ -450,10 +450,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| namespace | - **name** | **String**| name | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| namespace | | +| **name** | **String**| name | | ### Return type @@ -471,8 +471,8 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | AWS credentials deleted | - | -**0** | error response | - | +| **204** | AWS credentials deleted | - | +| **0** | error response | - | # **deleteOrganization** @@ -525,9 +525,9 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **organization** | **String**| organization name or ID | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **organization** | **String**| organization name or ID | | ### Return type @@ -545,8 +545,8 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | organization deleted | - | -**0** | error response | - | +| **204** | organization deleted | - | +| **0** | error response | - | # **deleteUserFromOrganization** @@ -600,10 +600,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **organization** | **String**| organization name | - **username** | **String**| username to manipulate | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **organization** | **String**| organization name | | +| **username** | **String**| username to manipulate | | ### Return type @@ -621,8 +621,8 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | user delete from organization successfully | - | -**0** | error response | - | +| **204** | user delete from organization successfully | - | +| **0** | error response | - | # **getAllOrganizations** @@ -692,10 +692,10 @@ This endpoint does not need any parameter. ### 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 | - | -**0** | error response | - | +| **200** | array of organizations the user is member of | - | +| **400** | Error finding organizations | - | +| **500** | Request user not found, or has empty context | - | +| **0** | error response | - | # **getOrganization** @@ -749,9 +749,9 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **organization** | **String**| organization name or ID | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **organization** | **String**| organization name or ID | | ### Return type @@ -769,9 +769,9 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | organization details | - | -**404** | Organization does not exist | - | -**0** | error response | - | +| **200** | organization details | - | +| **404** | Organization does not exist | - | +| **0** | error response | - | # **getOrganizationUser** @@ -826,10 +826,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **organization** | **String**| organization name | - **username** | **String**| username to manipulate | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **organization** | **String**| organization name | | +| **username** | **String**| username to manipulate | | ### Return type @@ -847,9 +847,9 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | user from organization | - | -**404** | User is not in organization | - | -**0** | error response | - | +| **200** | user from organization | - | +| **404** | User is not in organization | - | +| **0** | error response | - | # **updateAWSAccessCredentials** @@ -904,11 +904,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| namespace | - **name** | **String**| name | - **awsAccessCredentials** | [**AWSAccessCredentials**](AWSAccessCredentials.md)| aws credentials to update | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| namespace | | +| **name** | **String**| name | | +| **awsAccessCredentials** | [**AWSAccessCredentials**](AWSAccessCredentials.md)| aws credentials to update | | ### Return type @@ -926,8 +926,8 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | AWS keys updated successfully | - | -**0** | error response | - | +| **204** | AWS keys updated successfully | - | +| **0** | error response | - | # **updateOrganization** @@ -981,10 +981,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **organization** | **String**| organization name or ID | - **organizationDetails** | [**Organization**](Organization.md)| organization details to update | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **organization** | **String**| organization name or ID | | +| **organizationDetails** | [**Organization**](Organization.md)| organization details to update | | ### Return type @@ -1002,8 +1002,8 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | organization updated successfully | - | -**0** | error response | - | +| **204** | organization updated successfully | - | +| **0** | error response | - | # **updateUserInOrganization** @@ -1058,11 +1058,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **organization** | **String**| organization name | - **username** | **String**| username to manipulate | - **user** | [**OrganizationUser**](OrganizationUser.md)| user details to update | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **organization** | **String**| organization name | | +| **username** | **String**| username to manipulate | | +| **user** | [**OrganizationUser**](OrganizationUser.md)| user details to update | | ### Return type @@ -1080,6 +1080,6 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | user update in organization successfully | - | -**0** | error response | - | +| **204** | user update in organization successfully | - | +| **0** | error response | - | diff --git a/docs/OrganizationUser.md b/docs/OrganizationUser.md index 5c413de..e0d2752 100644 --- a/docs/OrganizationUser.md +++ b/docs/OrganizationUser.md @@ -6,14 +6,14 @@ user in an organization ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**userId** | **String** | unique ID of user | [optional] -**organizationId** | **String** | unique ID of organization | [optional] -**username** | **String** | username for user | [optional] -**organizationName** | **String** | name of organization | [optional] -**role** | **OrganizationRoles** | | [optional] -**allowedActions** | **List<NamespaceActions>** | list of actions user is allowed to do on this organization | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**userId** | **String** | unique ID of user | [optional] | +|**organizationId** | **String** | unique ID of organization | [optional] | +|**username** | **String** | username for user | [optional] | +|**organizationName** | **String** | name of organization | [optional] | +|**role** | **OrganizationRoles** | | [optional] | +|**allowedActions** | **List<NamespaceActions>** | list of actions user is allowed to do on this organization | [optional] | diff --git a/docs/PaginationMetadata.md b/docs/PaginationMetadata.md index 02d018a..43e28c7 100644 --- a/docs/PaginationMetadata.md +++ b/docs/PaginationMetadata.md @@ -5,12 +5,12 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**page** | **BigDecimal** | pagination offset. Use it to skip the first ((page - 1) * per_page) items | [optional] -**perPage** | **BigDecimal** | pagination limit (page size) | [optional] -**totalPages** | **BigDecimal** | number of total pages with current limit | [optional] -**totalItems** | **BigDecimal** | number of total available items | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**page** | **BigDecimal** | pagination offset. Use it to skip the first ((page - 1) * per_page) items | [optional] | +|**perPage** | **BigDecimal** | pagination limit (page size) | [optional] | +|**totalPages** | **BigDecimal** | number of total pages with current limit | [optional] | +|**totalItems** | **BigDecimal** | number of total available items | [optional] | diff --git a/docs/Pricing.md b/docs/Pricing.md index 54149e5..2cf25ad 100644 --- a/docs/Pricing.md +++ b/docs/Pricing.md @@ -6,21 +6,21 @@ Pricing created by converting an array to product ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | Unique ID of plan as defined by Stripe | [optional] -**arrayUuid** | **String** | Unique ID of registered array | [optional] -**pricingName** | **String** | Name of pricing | [optional] -**pricingType** | **PricingType** | | [optional] -**productName** | **String** | Name of product | [optional] -**productStatementDescriptor** | **String** | Extra information about a product which will appear on the credit card statement of the customer | [optional] -**productUnitLabel** | **PricingUnitLabel** | | [optional] -**currency** | **PricingCurrency** | | [optional] -**aggregateUsage** | **PricingAggregateUsage** | | [optional] -**interval** | **PricingInterval** | | [optional] -**dividedBy** | **Long** | Group of n product unit labels | [optional] -**charge** | **Double** | Price in cents (decimal) per unitlabel | [optional] -**activated** | **Boolean** | If pricing is activated | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | Unique ID of plan as defined by Stripe | [optional] | +|**arrayUuid** | **String** | Unique ID of registered array | [optional] | +|**pricingName** | **String** | Name of pricing | [optional] | +|**pricingType** | **PricingType** | | [optional] | +|**productName** | **String** | Name of product | [optional] | +|**productStatementDescriptor** | **String** | Extra information about a product which will appear on the credit card statement of the customer | [optional] | +|**productUnitLabel** | **PricingUnitLabel** | | [optional] | +|**currency** | **PricingCurrency** | | [optional] | +|**aggregateUsage** | **PricingAggregateUsage** | | [optional] | +|**interval** | **PricingInterval** | | [optional] | +|**dividedBy** | **Long** | Group of n product unit labels | [optional] | +|**charge** | **Double** | Price in cents (decimal) per unitlabel | [optional] | +|**activated** | **Boolean** | If pricing is activated | [optional] | diff --git a/docs/Query.md b/docs/Query.md index 0d54212..54ae3bf 100644 --- a/docs/Query.md +++ b/docs/Query.md @@ -5,17 +5,17 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **Querytype** | | -**layout** | **Layout** | | -**status** | **Querystatus** | | -**attributeBufferHeaders** | [**List<AttributeBufferHeader>**](AttributeBufferHeader.md) | List of attribute buffer headers | -**writer** | [**Writer**](Writer.md) | | [optional] -**reader** | [**QueryReader**](QueryReader.md) | | [optional] -**array** | [**Array**](Array.md) | | -**totalFixedLengthBufferBytes** | **Integer** | Total number of bytes in fixed size attribute buffers. | -**totalVarLenBufferBytes** | **Integer** | Total number of bytes in variable size attribute buffers. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**type** | **Querytype** | | | +|**layout** | **Layout** | | | +|**status** | **Querystatus** | | | +|**attributeBufferHeaders** | [**List<AttributeBufferHeader>**](AttributeBufferHeader.md) | List of attribute buffer headers | | +|**writer** | [**Writer**](Writer.md) | | [optional] | +|**reader** | [**QueryReader**](QueryReader.md) | | [optional] | +|**array** | [**Array**](Array.md) | | | +|**totalFixedLengthBufferBytes** | **Integer** | Total number of bytes in fixed size attribute buffers. | | +|**totalVarLenBufferBytes** | **Integer** | Total number of bytes in variable size attribute buffers. | | diff --git a/docs/QueryApi.md b/docs/QueryApi.md index 6541e16..404461f 100644 --- a/docs/QueryApi.md +++ b/docs/QueryApi.md @@ -2,13 +2,13 @@ All URIs are relative to */v1* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**finalizeQuery**](QueryApi.md#finalizeQuery) | **POST** /arrays/{namespace}/{array}/query/finalize | -[**getEstResultSizes**](QueryApi.md#getEstResultSizes) | **POST** /arrays/{namespace}/{array}/query/est_result_sizes | -[**getFile**](QueryApi.md#getFile) | **GET** /arrays/{namespace}/{array}/query/get_file | -[**submitQuery**](QueryApi.md#submitQuery) | **POST** /arrays/{namespace}/{array}/query/submit | -[**submitQueryJson**](QueryApi.md#submitQueryJson) | **POST** /arrays/{namespace}/{array}/query/submit_query_json | +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**finalizeQuery**](QueryApi.md#finalizeQuery) | **POST** /arrays/{namespace}/{array}/query/finalize | | +| [**getEstResultSizes**](QueryApi.md#getEstResultSizes) | **POST** /arrays/{namespace}/{array}/query/est_result_sizes | | +| [**getFile**](QueryApi.md#getFile) | **GET** /arrays/{namespace}/{array}/query/get_file | | +| [**submitQuery**](QueryApi.md#submitQuery) | **POST** /arrays/{namespace}/{array}/query/submit | | +| [**submitQueryJson**](QueryApi.md#submitQueryJson) | **POST** /arrays/{namespace}/{array}/query/submit_query_json | | @@ -69,15 +69,15 @@ public class Example { ### 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 | - **type** | **String**| type of query | - **contentType** | **String**| Content Type of input and return mime | [default to application/json] - **query** | [**Query**](Query.md)| query to run | - **xPayer** | **String**| Name of organization or user who should be charged for this request | [optional] - **openAt** | **Integer**| open_at for array in unix epoch | [optional] +| 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 | | +| **type** | **String**| type of query | | +| **contentType** | **String**| Content Type of input and return mime | [default to application/json] | +| **query** | [**Query**](Query.md)| query to run | | +| **xPayer** | **String**| Name of organization or user who should be charged for this request | [optional] | +| **openAt** | **Integer**| open_at for array in unix epoch | [optional] | ### Return type @@ -95,9 +95,9 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | query completed and results are returned in query object | * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
| -**204** | query completed successfully with no return | - | -**0** | error response | - | +| **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 | - | +| **0** | error response | - | # **getEstResultSizes** @@ -157,15 +157,15 @@ public class Example { ### 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 | - **type** | **String**| type of query | - **contentType** | **String**| Content Type of input and return mime | [default to application/json] - **query** | [**Query**](Query.md)| query to run | - **xPayer** | **String**| Name of organization or user who should be charged for this request | [optional] - **openAt** | **Integer**| open_at for array in unix epoch | [optional] +| 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 | | +| **type** | **String**| type of query | | +| **contentType** | **String**| Content Type of input and return mime | [default to application/json] | +| **query** | [**Query**](Query.md)| query to run | | +| **xPayer** | **String**| Name of organization or user who should be charged for this request | [optional] | +| **openAt** | **Integer**| open_at for array in unix epoch | [optional] | ### Return type @@ -183,9 +183,9 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | query est result size computed and results are returned in query object | * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
| -**204** | query completed successfully with no return | - | -**0** | error response | - | +| **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 | - | +| **0** | error response | - | # **getFile** @@ -242,12 +242,12 @@ public class Example { ### 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] - **xPayer** | **String**| Name of organization or user who should be charged for this request | [optional] +| 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] | +| **xPayer** | **String**| Name of organization or user who should be charged for this request | [optional] | ### Return type @@ -265,8 +265,8 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | query completed and result bytes are returned | * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
| -**0** | error response | - | +| **200** | query completed and result bytes are returned | * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
| +| **0** | error response | - | # **submitQuery** @@ -326,15 +326,15 @@ public class Example { ### 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 | - **type** | **String**| type of query | - **contentType** | **String**| Content Type of input and return mime | [default to application/json] - **query** | [**Query**](Query.md)| query to run | - **xPayer** | **String**| Name of organization or user who should be charged for this request | [optional] - **openAt** | **Integer**| open_at for array in unix epoch | [optional] +| 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 | | +| **type** | **String**| type of query | | +| **contentType** | **String**| Content Type of input and return mime | [default to application/json] | +| **query** | [**Query**](Query.md)| query to run | | +| **xPayer** | **String**| Name of organization or user who should be charged for this request | [optional] | +| **openAt** | **Integer**| open_at for array in unix epoch | [optional] | ### Return type @@ -352,9 +352,9 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | query completed and results are returned in query object | * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
| -**204** | query completed successfully with no return | - | -**0** | error response | - | +| **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 | - | +| **0** | error response | - | # **submitQueryJson** @@ -412,13 +412,13 @@ public class Example { ### 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] - **queryJson** | [**QueryJson**](QueryJson.md)| query to run | - **xPayer** | **String**| Name of organization or user who should be charged for this request | [optional] +| 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] | +| **queryJson** | [**QueryJson**](QueryJson.md)| query to run | | +| **xPayer** | **String**| Name of organization or user who should be charged for this request | [optional] | ### Return type @@ -436,6 +436,6 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | query completed and results are returned in JSON format | * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
| -**0** | error response | - | +| **200** | query completed and results are returned in JSON format | * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request
| +| **0** | error response | - | diff --git a/docs/QueryJson.md b/docs/QueryJson.md index ac5dee2..36bb0b7 100644 --- a/docs/QueryJson.md +++ b/docs/QueryJson.md @@ -6,10 +6,10 @@ Query returning results as JSON ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**queryRanges** | [**QueryRanges**](QueryRanges.md) | | [optional] -**fields** | **List<String>** | List of fields to return data from, empty means return data for all fields | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**queryRanges** | [**QueryRanges**](QueryRanges.md) | | [optional] | +|**fields** | **List<String>** | List of fields to return data from, empty means return data for all fields | [optional] | diff --git a/docs/QueryRanges.md b/docs/QueryRanges.md index 7c718bc..d346730 100644 --- a/docs/QueryRanges.md +++ b/docs/QueryRanges.md @@ -6,10 +6,10 @@ Subarray bounds to query ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**layout** | **Layout** | | [optional] -**ranges** | **List<List<BigDecimal>>** | List of ranges, | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**layout** | **Layout** | | [optional] | +|**ranges** | **List<List<BigDecimal>>** | List of ranges, | [optional] | diff --git a/docs/QueryReader.md b/docs/QueryReader.md index ed34337..0df14ff 100644 --- a/docs/QueryReader.md +++ b/docs/QueryReader.md @@ -6,14 +6,14 @@ Read struct (can't be called reader due to class name conflict) ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**layout** | **Layout** | | [optional] -**subarray** | [**Subarray**](Subarray.md) | | [optional] -**readState** | [**ReadState**](ReadState.md) | | [optional] -**varOffsetsMode** | **String** | The offsets format (bytes or elements) to be used. | [optional] -**varOffsetsAddExtraElement** | **Boolean** | True if an extra element will be added to the end of the offsets buffer. | [optional] -**varOffsetsBitsize** | **Integer** | The offsets bitsize (32 or 64) to be used. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**layout** | **Layout** | | [optional] | +|**subarray** | [**Subarray**](Subarray.md) | | [optional] | +|**readState** | [**ReadState**](ReadState.md) | | [optional] | +|**varOffsetsMode** | **String** | The offsets format (bytes or elements) to be used. | [optional] | +|**varOffsetsAddExtraElement** | **Boolean** | True if an extra element will be added to the end of the offsets buffer. | [optional] | +|**varOffsetsBitsize** | **Integer** | The offsets bitsize (32 or 64) to be used. | [optional] | diff --git a/docs/ReadState.md b/docs/ReadState.md index e74e9af..ce1a984 100644 --- a/docs/ReadState.md +++ b/docs/ReadState.md @@ -6,12 +6,12 @@ state for reads ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**initialized** | **Boolean** | True if the reader has been initialized. | [optional] -**overflowed** | **Boolean** | True if the query produced results that could not fit in some buffer. | [optional] -**unsplittable** | **Boolean** | True if the current subarray partition is unsplittable. | [optional] -**subarrayPartitioner** | [**SubarrayPartitioner**](SubarrayPartitioner.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**initialized** | **Boolean** | True if the reader has been initialized. | [optional] | +|**overflowed** | **Boolean** | True if the query produced results that could not fit in some buffer. | [optional] | +|**unsplittable** | **Boolean** | True if the current subarray partition is unsplittable. | [optional] | +|**subarrayPartitioner** | [**SubarrayPartitioner**](SubarrayPartitioner.md) | | [optional] | diff --git a/docs/RegisteredTaskGraph.md b/docs/RegisteredTaskGraph.md index 3061718..1a7b21f 100644 --- a/docs/RegisteredTaskGraph.md +++ b/docs/RegisteredTaskGraph.md @@ -6,16 +6,16 @@ The structure and metadata of a task graph that can be stored on TileDB Cloud an ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**uuid** | **String** | A server-assigned unique ID for the UDF, in UUID format. | [optional] -**namespace** | **String** | The namespace that owns this task graph log. | [optional] -**name** | **String** | The name of this graph, to appear in URLs. Must be unique per-namespace. | [optional] -**readme** | **String** | Documentation for the task graph, in Markdown format. | [optional] -**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] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**uuid** | **String** | A server-assigned unique ID for the UDF, in UUID format. | [optional] | +|**namespace** | **String** | The namespace that owns this task graph log. | [optional] | +|**name** | **String** | The name of this graph, to appear in URLs. Must be unique per-namespace. | [optional] | +|**readme** | **String** | Documentation for the task graph, in Markdown format. | [optional] | +|**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] | diff --git a/docs/RegisteredTaskGraphNode.md b/docs/RegisteredTaskGraphNode.md index 76de699..54cd2cc 100644 --- a/docs/RegisteredTaskGraphNode.md +++ b/docs/RegisteredTaskGraphNode.md @@ -6,15 +6,15 @@ Information about a single node within a registered task graph. A single node re ## 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] +| 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] | diff --git a/docs/RegisteredTaskGraphsApi.md b/docs/RegisteredTaskGraphsApi.md index 84d6959..08393d9 100644 --- a/docs/RegisteredTaskGraphsApi.md +++ b/docs/RegisteredTaskGraphsApi.md @@ -2,14 +2,14 @@ All URIs are relative to */v1* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**deleteRegisteredTaskGraph**](RegisteredTaskGraphsApi.md#deleteRegisteredTaskGraph) | **DELETE** /taskgraphs/{namespace}/registered/{name} | -[**getRegisteredTaskGraph**](RegisteredTaskGraphsApi.md#getRegisteredTaskGraph) | **GET** /taskgraphs/{namespace}/registered/{name} | -[**getRegisteredTaskGraphSharingPolicies**](RegisteredTaskGraphsApi.md#getRegisteredTaskGraphSharingPolicies) | **GET** /taskgraphs/{namespace}/registered/{name}/share | -[**registerRegisteredTaskGraph**](RegisteredTaskGraphsApi.md#registerRegisteredTaskGraph) | **POST** /taskgraphs/{namespace}/registered/{name} | -[**shareRegisteredTaskGraph**](RegisteredTaskGraphsApi.md#shareRegisteredTaskGraph) | **PATCH** /taskgraphs/{namespace}/registered/{name}/share | -[**updateRegisteredTaskGraph**](RegisteredTaskGraphsApi.md#updateRegisteredTaskGraph) | **PATCH** /taskgraphs/{namespace}/registered/{name} | +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**deleteRegisteredTaskGraph**](RegisteredTaskGraphsApi.md#deleteRegisteredTaskGraph) | **DELETE** /taskgraphs/{namespace}/registered/{name} | | +| [**getRegisteredTaskGraph**](RegisteredTaskGraphsApi.md#getRegisteredTaskGraph) | **GET** /taskgraphs/{namespace}/registered/{name} | | +| [**getRegisteredTaskGraphSharingPolicies**](RegisteredTaskGraphsApi.md#getRegisteredTaskGraphSharingPolicies) | **GET** /taskgraphs/{namespace}/registered/{name}/share | | +| [**registerRegisteredTaskGraph**](RegisteredTaskGraphsApi.md#registerRegisteredTaskGraph) | **POST** /taskgraphs/{namespace}/registered/{name} | | +| [**shareRegisteredTaskGraph**](RegisteredTaskGraphsApi.md#shareRegisteredTaskGraph) | **PATCH** /taskgraphs/{namespace}/registered/{name}/share | | +| [**updateRegisteredTaskGraph**](RegisteredTaskGraphsApi.md#updateRegisteredTaskGraph) | **PATCH** /taskgraphs/{namespace}/registered/{name} | | @@ -64,10 +64,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| The namespace that owns this registered UDF. | - **name** | **String**| The name of the registered task graph. | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| The namespace that owns this registered UDF. | | +| **name** | **String**| The name of the registered task graph. | | ### Return type @@ -85,8 +85,8 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Task graph successfully deleted. | - | -**0** | error response | - | +| **204** | Task graph successfully deleted. | - | +| **0** | error response | - | # **getRegisteredTaskGraph** @@ -141,10 +141,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| The namespace that owns this registered UDF. | - **name** | **String**| The name of the registered task graph. | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| The namespace that owns this registered UDF. | | +| **name** | **String**| The name of the registered task graph. | | ### Return type @@ -162,8 +162,8 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | The contents of the registered task graph. | - | -**0** | error response | - | +| **200** | The contents of the registered task graph. | - | +| **0** | error response | - | # **getRegisteredTaskGraphSharingPolicies** @@ -218,10 +218,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| The namespace that owns the registered task graph. | - **name** | **String**| The name of the task graph. | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| The namespace that owns the registered task graph. | | +| **name** | **String**| The name of the task graph. | | ### Return type @@ -239,9 +239,9 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | List of all specific sharing policies | - | -**404** | The task graph does not exist (or the user does not have permission to view policies) | - | -**0** | error response | - | +| **200** | List of all specific sharing policies | - | +| **404** | The task graph does not exist (or the user does not have permission to view policies) | - | +| **0** | error response | - | # **registerRegisteredTaskGraph** @@ -296,11 +296,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| The namespace that owns this registered UDF. | - **name** | **String**| The name of the registered task graph. | - **graph** | [**RegisteredTaskGraph**](RegisteredTaskGraph.md)| Task graph to register. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| The namespace that owns this registered UDF. | | +| **name** | **String**| The name of the registered task graph. | | +| **graph** | [**RegisteredTaskGraph**](RegisteredTaskGraph.md)| Task graph to register. | [optional] | ### Return type @@ -318,8 +318,8 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Task graph registered successfully. | - | -**0** | error response | - | +| **204** | Task graph registered successfully. | - | +| **0** | error response | - | # **shareRegisteredTaskGraph** @@ -374,11 +374,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| The namespace that owns the registered task graph. | - **name** | **String**| The name of the task graph. | - **taskGraphSharing** | [**TaskGraphSharing**](TaskGraphSharing.md)| 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. | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| The namespace that owns the registered task graph. | | +| **name** | **String**| The name of the task graph. | | +| **taskGraphSharing** | [**TaskGraphSharing**](TaskGraphSharing.md)| 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. | | ### Return type @@ -396,9 +396,9 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | UDF shared successfully | - | -**404** | UDF does not exist or user does not have permissions to share UDF | - | -**0** | error response | - | +| **204** | UDF shared successfully | - | +| **404** | UDF does not exist or user does not have permissions to share UDF | - | +| **0** | error response | - | # **updateRegisteredTaskGraph** @@ -453,11 +453,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| The namespace that owns this registered UDF. | - **name** | **String**| The name of the registered task graph. | - **graph** | [**RegisteredTaskGraph**](RegisteredTaskGraph.md)| The new contents of the task graph. | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| The namespace that owns this registered UDF. | | +| **name** | **String**| The name of the registered task graph. | | +| **graph** | [**RegisteredTaskGraph**](RegisteredTaskGraph.md)| The new contents of the task graph. | [optional] | ### Return type @@ -475,6 +475,6 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Task graph updated successfully. | - | -**0** | error response | - | +| **204** | Task graph updated successfully. | - | +| **0** | error response | - | diff --git a/docs/ResetUserPasswordRequest.md b/docs/ResetUserPasswordRequest.md new file mode 100644 index 0000000..73490a9 --- /dev/null +++ b/docs/ResetUserPasswordRequest.md @@ -0,0 +1,14 @@ + + +# ResetUserPasswordRequest + +Password to update + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**password** | **String** | password | [optional] | + + + diff --git a/docs/SQLParameters.md b/docs/SQLParameters.md index fce929a..134f5ff 100644 --- a/docs/SQLParameters.md +++ b/docs/SQLParameters.md @@ -6,18 +6,19 @@ Parameters for running sql query ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | name of task, optional | [optional] -**query** | **String** | query to run | [optional] -**outputUri** | **String** | Output array uri | [optional] -**storeResults** | **Boolean** | store results for later retrieval | [optional] -**dontDownloadResults** | **Boolean** | 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\"). | [optional] -**resultFormat** | **ResultFormat** | | [optional] -**initCommands** | **List<String>** | Queries or commands to run before main query | [optional] -**parameters** | **List<Object>** | SQL query parameters | [optional] -**taskGraphUuid** | **String** | If set, the ID of the log for the task graph that this was part of. | [optional] -**clientNodeUuid** | **String** | If set, the client-defined ID of the node within this task's graph. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | name of task, optional | [optional] | +|**query** | **String** | query to run | [optional] | +|**outputUri** | **String** | Output array uri | [optional] | +|**storeResults** | **Boolean** | store results for later retrieval | [optional] | +|**dontDownloadResults** | **Boolean** | 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\"). | [optional] | +|**resourceClass** | **String** | 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. | [optional] | +|**resultFormat** | **ResultFormat** | | [optional] | +|**initCommands** | **List<String>** | Queries or commands to run before main query | [optional] | +|**parameters** | **List<Object>** | SQL query parameters | [optional] | +|**taskGraphUuid** | **String** | If set, the ID of the log for the task graph that this was part of. | [optional] | +|**clientNodeUuid** | **String** | If set, the client-defined ID of the node within this task's graph. | [optional] | diff --git a/docs/SqlApi.md b/docs/SqlApi.md index 06d43b8..d8d661f 100644 --- a/docs/SqlApi.md +++ b/docs/SqlApi.md @@ -2,9 +2,9 @@ All URIs are relative to */v1* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**runSQL**](SqlApi.md#runSQL) | **POST** /sql/{namespace} | +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**runSQL**](SqlApi.md#runSQL) | **POST** /sql/{namespace} | | @@ -61,11 +61,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| namespace to run task under is in (an organization name or user's username) | - **sql** | [**SQLParameters**](SQLParameters.md)| sql being submitted | - **acceptEncoding** | **String**| Encoding to use | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| namespace to run task under is in (an organization name or user's username) | | +| **sql** | [**SQLParameters**](SQLParameters.md)| sql being submitted | | +| **acceptEncoding** | **String**| Encoding to use | [optional] | ### Return type @@ -83,7 +83,7 @@ Name | Type | Description | Notes ### 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 | - | +| **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 | - | diff --git a/docs/StatsApi.md b/docs/StatsApi.md index 3aae149..df478a4 100644 --- a/docs/StatsApi.md +++ b/docs/StatsApi.md @@ -2,14 +2,14 @@ All URIs are relative to */v1* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**getTiledbStats**](StatsApi.md#getTiledbStats) | **GET** /.stats | +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**getTiledbStats**](StatsApi.md#getTiledbStats) | **GET** /.stats | | # **getTiledbStats** -> InlineResponse200 getTiledbStats() +> GetTiledbStats200Response getTiledbStats() @@ -43,7 +43,7 @@ public class Example { StatsApi apiInstance = new StatsApi(defaultClient); try { - InlineResponse200 result = apiInstance.getTiledbStats(); + GetTiledbStats200Response result = apiInstance.getTiledbStats(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling StatsApi#getTiledbStats"); @@ -61,7 +61,7 @@ This endpoint does not need any parameter. ### Return type -[**InlineResponse200**](InlineResponse200.md) +[**GetTiledbStats200Response**](GetTiledbStats200Response.md) ### Authorization @@ -75,6 +75,6 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | stats | - | -**0** | error response | - | +| **200** | stats | - | +| **0** | error response | - | diff --git a/docs/Subarray.md b/docs/Subarray.md index d1ca73f..bc4cc14 100644 --- a/docs/Subarray.md +++ b/docs/Subarray.md @@ -6,10 +6,10 @@ A Subarray ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**layout** | **Layout** | | [optional] -**ranges** | [**List<SubarrayRanges>**](SubarrayRanges.md) | List of 1D ranges, one per dimension | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**layout** | **Layout** | | [optional] | +|**ranges** | [**List<SubarrayRanges>**](SubarrayRanges.md) | List of 1D ranges, one per dimension | [optional] | diff --git a/docs/SubarrayPartitioner.md b/docs/SubarrayPartitioner.md index 502997b..fb86424 100644 --- a/docs/SubarrayPartitioner.md +++ b/docs/SubarrayPartitioner.md @@ -6,14 +6,14 @@ The subarray partitioner ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**subarray** | [**Subarray**](Subarray.md) | | [optional] -**budget** | [**List<AttributeBufferSize>**](AttributeBufferSize.md) | Result size budget (in bytes) for all attributes. | [optional] -**current** | [**SubarrayPartitionerCurrent**](SubarrayPartitionerCurrent.md) | | [optional] -**state** | [**SubarrayPartitionerState**](SubarrayPartitionerState.md) | | [optional] -**memoryBudget** | **Integer** | The memory budget for the fixed-sized attributes and the offsets of the var-sized attributes | [optional] -**memoryBudgetVar** | **Integer** | The memory budget for the var-sized attributes | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**subarray** | [**Subarray**](Subarray.md) | | [optional] | +|**budget** | [**List<AttributeBufferSize>**](AttributeBufferSize.md) | Result size budget (in bytes) for all attributes. | [optional] | +|**current** | [**SubarrayPartitionerCurrent**](SubarrayPartitionerCurrent.md) | | [optional] | +|**state** | [**SubarrayPartitionerState**](SubarrayPartitionerState.md) | | [optional] | +|**memoryBudget** | **Integer** | The memory budget for the fixed-sized attributes and the offsets of the var-sized attributes | [optional] | +|**memoryBudgetVar** | **Integer** | The memory budget for the var-sized attributes | [optional] | diff --git a/docs/SubarrayPartitionerCurrent.md b/docs/SubarrayPartitionerCurrent.md index 648bb9e..2a805af 100644 --- a/docs/SubarrayPartitionerCurrent.md +++ b/docs/SubarrayPartitionerCurrent.md @@ -6,12 +6,12 @@ The current partition info ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**subarray** | [**Subarray**](Subarray.md) | | [optional] -**start** | **Integer** | PartitionInfo start | [optional] -**end** | **Integer** | PartitionInfo end | [optional] -**splitMultiRange** | **Boolean** | PartitionInfo splitMultiRange | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**subarray** | [**Subarray**](Subarray.md) | | [optional] | +|**start** | **Integer** | PartitionInfo start | [optional] | +|**end** | **Integer** | PartitionInfo end | [optional] | +|**splitMultiRange** | **Boolean** | PartitionInfo splitMultiRange | [optional] | diff --git a/docs/SubarrayPartitionerState.md b/docs/SubarrayPartitionerState.md index f9584d2..5cf200f 100644 --- a/docs/SubarrayPartitionerState.md +++ b/docs/SubarrayPartitionerState.md @@ -6,12 +6,12 @@ The state information for the remaining partitions to be produced ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**start** | **Integer** | State start | [optional] -**end** | **Integer** | State end | [optional] -**singleRange** | [**List<Subarray>**](Subarray.md) | State singleRange | [optional] -**multiRange** | [**List<Subarray>**](Subarray.md) | State multiRange | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**start** | **Integer** | State start | [optional] | +|**end** | **Integer** | State end | [optional] | +|**singleRange** | [**List<Subarray>**](Subarray.md) | State singleRange | [optional] | +|**multiRange** | [**List<Subarray>**](Subarray.md) | State multiRange | [optional] | diff --git a/docs/SubarrayRanges.md b/docs/SubarrayRanges.md index 75b23fc..12afb4c 100644 --- a/docs/SubarrayRanges.md +++ b/docs/SubarrayRanges.md @@ -6,11 +6,11 @@ A set of 1D ranges for a subarray ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **Datatype** | | [optional] -**hasDefaultRange** | **Boolean** | True if the range is the default range | [optional] -**buffer** | **List<Integer>** | The bytes of the ranges | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**type** | **Datatype** | | [optional] | +|**hasDefaultRange** | **Boolean** | True if the range is the default range | [optional] | +|**buffer** | **List<Integer>** | The bytes of the ranges | [optional] | diff --git a/docs/Subscription.md b/docs/Subscription.md index da340a8..b7475f1 100644 --- a/docs/Subscription.md +++ b/docs/Subscription.md @@ -6,12 +6,12 @@ Subscription of a user (customer) to another user's arrays ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | Unique ID of subscription as defined by Stripe | [optional] -**ownerNamespaceUuid** | **String** | Unique ID of the array (product) owner | [optional] -**customerNamespaceUuid** | **String** | Unique ID of the array (product) user (customer) | [optional] -**pricing** | [**List<Pricing>**](Pricing.md) | list of pricing used by this subscription | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | Unique ID of subscription as defined by Stripe | [optional] | +|**ownerNamespaceUuid** | **String** | Unique ID of the array (product) owner | [optional] | +|**customerNamespaceUuid** | **String** | Unique ID of the array (product) user (customer) | [optional] | +|**pricing** | [**List<Pricing>**](Pricing.md) | list of pricing used by this subscription | [optional] | diff --git a/docs/TGInputNodeData.md b/docs/TGInputNodeData.md index 00cff30..fe0e631 100644 --- a/docs/TGInputNodeData.md +++ b/docs/TGInputNodeData.md @@ -6,10 +6,10 @@ Specifies that a node is an “input value”, allowing for parameterized task g ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**defaultValue** | **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] -**datatype** | **String** | 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. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**defaultValue** | **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] | +|**datatype** | **String** | 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. | [optional] | diff --git a/docs/TGSQLNodeData.md b/docs/TGSQLNodeData.md index 0e82a7a..5cd5938 100644 --- a/docs/TGSQLNodeData.md +++ b/docs/TGSQLNodeData.md @@ -6,12 +6,13 @@ A node specifying an SQL query to execute in TileDB Cloud. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**initCommands** | **List<String>** | The commands to execute before running the query itself. | [optional] -**query** | **String** | The text of the SQL query to execute. Parameters are substituted in for `?`s, just as in a regular MariaDB query. | [optional] -**parameters** | **List<Object>** | The parameters to substitute in for arguments in the `query`. Fixed-length. Arguments must be in JSON format. | [optional] -**resultFormat** | **ResultFormat** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**initCommands** | **List<String>** | The commands to execute before running the query itself. | [optional] | +|**query** | **String** | The text of the SQL query to execute. Parameters are substituted in for `?`s, just as in a regular MariaDB query. | [optional] | +|**parameters** | **List<Object>** | The parameters to substitute in for arguments in the `query`. Fixed-length. Arguments must be in JSON format. | [optional] | +|**resultFormat** | **ResultFormat** | | [optional] | +|**namespace** | **String** | If set, the non-default namespace to execute this SQL query under. | [optional] | diff --git a/docs/TGUDFArgument.md b/docs/TGUDFArgument.md index 524a5cd..1d75deb 100644 --- a/docs/TGUDFArgument.md +++ b/docs/TGUDFArgument.md @@ -6,10 +6,10 @@ A single argument to a UDF. This may represent a positional argument or a named ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the argument, if present. | [optional] -**value** | **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] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | The name of the argument, if present. | [optional] | +|**value** | **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 84b0902..dcda8f5 100644 --- a/docs/TGUDFEnvironment.md +++ b/docs/TGUDFEnvironment.md @@ -6,12 +6,14 @@ Metadata about the environment where we want to execute a UDF. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**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] -**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] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**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] | +|**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] | +|**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] | diff --git a/docs/TGUDFNodeData.md b/docs/TGUDFNodeData.md index 58c8f18..440287c 100644 --- a/docs/TGUDFNodeData.md +++ b/docs/TGUDFNodeData.md @@ -6,14 +6,14 @@ A node specifying the execution of a user-defined function. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**registeredUdfName** | **String** | 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. | [optional] -**executableCode** | **String** | 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). | [optional] -**sourceText** | **String** | 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. | [optional] -**environment** | [**TGUDFEnvironment**](TGUDFEnvironment.md) | | [optional] -**arguments** | [**List<TGUDFArgument>**](TGUDFArgument.md) | 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}, ] | [optional] -**resultFormat** | **ResultFormat** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**registeredUdfName** | **String** | 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. | [optional] | +|**executableCode** | **String** | 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). | [optional] | +|**sourceText** | **String** | 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. | [optional] | +|**environment** | [**TGUDFEnvironment**](TGUDFEnvironment.md) | | [optional] | +|**arguments** | [**List<TGUDFArgument>**](TGUDFArgument.md) | 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}, ] | [optional] | +|**resultFormat** | **ResultFormat** | | [optional] | diff --git a/docs/TaskGraphClientNodeStatus.md b/docs/TaskGraphClientNodeStatus.md index b8666a7..a4c6286 100644 --- a/docs/TaskGraphClientNodeStatus.md +++ b/docs/TaskGraphClientNodeStatus.md @@ -6,10 +6,10 @@ A report of the execution status of a node that ran on the client side. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**clientNodeUuid** | **String** | | [optional] -**status** | **ArrayTaskStatus** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**clientNodeUuid** | **String** | | [optional] | +|**status** | **ArrayTaskStatus** | | [optional] | diff --git a/docs/TaskGraphLog.md b/docs/TaskGraphLog.md index 1c48915..21ccb3f 100644 --- a/docs/TaskGraphLog.md +++ b/docs/TaskGraphLog.md @@ -6,22 +6,22 @@ Logging information about the execution of 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 log. 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 log, displayed in the UI. Does not need to be unique. | [optional] -**createdAt** | **OffsetDateTime** | The date/time when this task graph log was originally created. This is distinct from the execution start_time. | [optional] [readonly] -**startTime** | **OffsetDateTime** | The start time of the task graph, recorded when the server starts executing the first node. | [optional] [readonly] -**endTime** | **OffsetDateTime** | The end time of the task graph, recorded when the client reports completion. | [optional] [readonly] -**status** | **TaskGraphLogStatus** | | [optional] -**totalCost** | **BigDecimal** | If present, the total cost of executing all nodes in this task graph. | [optional] -**accessCost** | **BigDecimal** | If present, the total cost of access from execution of the nodes in this task graph. | [optional] -**egressCost** | **BigDecimal** | If present, the total cost of access from execution of the nodes in this task graph. | [optional] -**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] +| 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 log. 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 log, displayed in the UI. Does not need to be unique. | [optional] | +|**createdAt** | **OffsetDateTime** | The date/time when this task graph log was originally created. This is distinct from the execution start_time. | [optional] [readonly] | +|**startTime** | **OffsetDateTime** | The start time of the task graph, recorded when the server starts executing the first node. | [optional] [readonly] | +|**endTime** | **OffsetDateTime** | The end time of the task graph, recorded when the client reports completion. | [optional] [readonly] | +|**status** | **TaskGraphLogStatus** | | [optional] | +|**totalCost** | **BigDecimal** | If present, the total cost of executing all nodes in this task graph. | [optional] | +|**accessCost** | **BigDecimal** | If present, the total cost of access from execution of the nodes in this task graph. | [optional] | +|**egressCost** | **BigDecimal** | If present, the total cost of access from execution of the nodes in this task graph. | [optional] | +|**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] | diff --git a/docs/TaskGraphLogsApi.md b/docs/TaskGraphLogsApi.md index 9e2295d..b08907f 100644 --- a/docs/TaskGraphLogsApi.md +++ b/docs/TaskGraphLogsApi.md @@ -2,13 +2,13 @@ All URIs are relative to */v1* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**createTaskGraphLog**](TaskGraphLogsApi.md#createTaskGraphLog) | **POST** /taskgraphs/{namespace}/log | -[**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 | -[**updateTaskGraphLog**](TaskGraphLogsApi.md#updateTaskGraphLog) | **PATCH** /taskgraphs/{namespace}/logs/{id} | +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**createTaskGraphLog**](TaskGraphLogsApi.md#createTaskGraphLog) | **POST** /taskgraphs/{namespace}/log | | +| [**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 | | +| [**updateTaskGraphLog**](TaskGraphLogsApi.md#updateTaskGraphLog) | **PATCH** /taskgraphs/{namespace}/logs/{id} | | @@ -64,10 +64,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| The namespace that will own this task graph log. | - **log** | [**TaskGraphLog**](TaskGraphLog.md)| | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| The namespace that will own this task graph log. | | +| **log** | [**TaskGraphLog**](TaskGraphLog.md)| | | ### Return type @@ -85,8 +85,8 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**201** | The task graph was created. The returned TaskGraphLog will include the data the client sent, with the server-defined fields added in. | - | -**0** | error response | - | +| **201** | The task graph was created. The returned TaskGraphLog will include the data the client sent, with the server-defined fields added in. | - | +| **0** | error response | - | # **getTaskGraphLog** @@ -141,10 +141,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| The namespace that owns this task graph log. | - **id** | **String**| The UUID of the task graph log entry. | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| The namespace that owns this task graph log. | | +| **id** | **String**| The UUID of the task graph log entry. | | ### Return type @@ -162,8 +162,8 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Information about the execution of a single task graph. | - | -**0** | error response | - | +| **200** | Information about the execution of a single task graph. | - | +| **0** | error response | - | # **listTaskGraphLogs** @@ -223,15 +223,15 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| Include logs for this namespace. | [optional] - **createdBy** | **String**| Include logs from only this user. | [optional] - **search** | **String**| search string that will look at name. | [optional] - **startTime** | **OffsetDateTime**| Include logs created after this time. | [optional] - **endTime** | **OffsetDateTime**| Include logs created before this time. | [optional] - **page** | **Integer**| pagination offset | [optional] - **perPage** | **Integer**| pagination limit | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| Include logs for this namespace. | [optional] | +| **createdBy** | **String**| Include logs from only this user. | [optional] | +| **search** | **String**| search string that will look at name. | [optional] | +| **startTime** | **OffsetDateTime**| Include logs created after this time. | [optional] | +| **endTime** | **OffsetDateTime**| Include logs created before this time. | [optional] | +| **page** | **Integer**| pagination offset | [optional] | +| **perPage** | **Integer**| pagination limit | [optional] | ### Return type @@ -249,8 +249,8 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | The task graph logs that matched the user's query. | - | -**0** | error response | - | +| **200** | The task graph logs that matched the user's query. | - | +| **0** | error response | - | # **reportClientNode** @@ -303,11 +303,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| The namespace that owns this task graph log. | - **id** | **String**| The UUID of the task graph log entry. | - **report** | [**TaskGraphClientNodeStatus**](TaskGraphClientNodeStatus.md)| The node status to report. | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| The namespace that owns this task graph log. | | +| **id** | **String**| The UUID of the task graph log entry. | | +| **report** | [**TaskGraphClientNodeStatus**](TaskGraphClientNodeStatus.md)| The node status to report. | | ### Return type @@ -325,8 +325,8 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Status reported successfully. | - | -**0** | error response | - | +| **204** | Status reported successfully. | - | +| **0** | error response | - | # **updateTaskGraphLog** @@ -381,11 +381,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| The namespace that owns this task graph log. | - **id** | **String**| The UUID of the task graph log entry. | - **log** | [**TaskGraphLog**](TaskGraphLog.md)| 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`. | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| The namespace that owns this task graph log. | | +| **id** | **String**| The UUID of the task graph log entry. | | +| **log** | [**TaskGraphLog**](TaskGraphLog.md)| 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`. | | ### Return type @@ -403,6 +403,6 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | Log entry updated successfully. | - | -**0** | error response | - | +| **204** | Log entry updated successfully. | - | +| **0** | error response | - | diff --git a/docs/TaskGraphLogsData.md b/docs/TaskGraphLogsData.md index f3b718e..cc84f8c 100644 --- a/docs/TaskGraphLogsData.md +++ b/docs/TaskGraphLogsData.md @@ -6,10 +6,10 @@ Response data for a task graph list, including pagination metadata. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**taskGraphLogs** | [**List<TaskGraphLog>**](TaskGraphLog.md) | The requested task graph logs. | [optional] -**paginationMetadata** | [**PaginationMetadata**](PaginationMetadata.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**taskGraphLogs** | [**List<TaskGraphLog>**](TaskGraphLog.md) | The requested task graph logs. | [optional] | +|**paginationMetadata** | [**PaginationMetadata**](PaginationMetadata.md) | | [optional] | diff --git a/docs/TaskGraphNodeMetadata.md b/docs/TaskGraphNodeMetadata.md index 3a850dd..8ad54c9 100644 --- a/docs/TaskGraphNodeMetadata.md +++ b/docs/TaskGraphNodeMetadata.md @@ -6,14 +6,14 @@ Metadata about an individual node in a task graph. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**clientNodeUuid** | **String** | The client-generated UUID of the given graph node. | [optional] -**name** | **String** | The client-generated name of the node. This is not guaranteed to 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] -**runLocation** | **TaskGraphLogRunLocation** | | [optional] -**status** | **ArrayTaskStatus** | | [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] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**clientNodeUuid** | **String** | The client-generated UUID of the given graph node. | [optional] | +|**name** | **String** | The client-generated name of the node. This is not guaranteed to 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] | +|**runLocation** | **TaskGraphLogRunLocation** | | [optional] | +|**status** | **ArrayTaskStatus** | | [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/TaskGraphSharing.md b/docs/TaskGraphSharing.md index 1442916..f06398f 100644 --- a/docs/TaskGraphSharing.md +++ b/docs/TaskGraphSharing.md @@ -6,11 +6,11 @@ details for sharing a given registered task graph ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**actions** | **List<TaskGraphActions>** | List of permitted actions | [optional] -**namespace** | **String** | namespace being granted array access can be a user or organization | [optional] -**namespaceType** | **String** | details on if the namespace is a organization or user | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**actions** | **List<TaskGraphActions>** | List of permitted actions | [optional] | +|**namespace** | **String** | namespace being granted array access can be a user or organization | [optional] | +|**namespaceType** | **String** | details on if the namespace is a organization or user | [optional] | diff --git a/docs/TasksApi.md b/docs/TasksApi.md index dc722bb..c480506 100644 --- a/docs/TasksApi.md +++ b/docs/TasksApi.md @@ -2,12 +2,12 @@ All URIs are relative to */v1* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**runSQL**](TasksApi.md#runSQL) | **POST** /sql/{namespace} | -[**taskIdGet**](TasksApi.md#taskIdGet) | **GET** /task/{id} | -[**taskIdResultGet**](TasksApi.md#taskIdResultGet) | **GET** /task/{id}/result | -[**tasksGet**](TasksApi.md#tasksGet) | **GET** /tasks | +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**runSQL**](TasksApi.md#runSQL) | **POST** /sql/{namespace} | | +| [**taskIdGet**](TasksApi.md#taskIdGet) | **GET** /task/{id} | | +| [**taskIdResultGet**](TasksApi.md#taskIdResultGet) | **GET** /task/{id}/result | | +| [**tasksGet**](TasksApi.md#tasksGet) | **GET** /tasks | | @@ -64,11 +64,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| namespace to run task under is in (an organization name or user's username) | - **sql** | [**SQLParameters**](SQLParameters.md)| sql being submitted | - **acceptEncoding** | **String**| Encoding to use | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| namespace to run task under is in (an organization name or user's username) | | +| **sql** | [**SQLParameters**](SQLParameters.md)| sql being submitted | | +| **acceptEncoding** | **String**| Encoding to use | [optional] | ### Return type @@ -86,9 +86,9 @@ Name | Type | Description | Notes ### 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 | - | +| **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 | - | # **taskIdGet** @@ -142,9 +142,9 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| task ID to fetch | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **id** | **String**| task ID to fetch | | ### Return type @@ -162,8 +162,8 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Array task | - | -**0** | error response | - | +| **200** | Array task | - | +| **0** | error response | - | # **taskIdResultGet** @@ -218,10 +218,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **String**| task ID to retrieve stored results | - **acceptEncoding** | **String**| Encoding to use | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **id** | **String**| task ID to retrieve stored results | | +| **acceptEncoding** | **String**| Encoding to use | [optional] | ### Return type @@ -239,10 +239,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | output and format of originating request | * Content-Type - format results are delivered in
| -**202** | task is still executing | - | -**404** | results were not saved, or results have expored | - | -**0** | error response | - | +| **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 | - | +| **0** | error response | - | # **tasksGet** @@ -309,22 +309,22 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| namespace to filter | [optional] - **createdBy** | **String**| username to filter | [optional] - **array** | **String**| name/uri of array that is url-encoded 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] - **perPage** | **Integer**| pagination limit | [optional] - **type** | **String**| task type, \"QUERY\", \"SQL\", \"UDF\", \"GENERIC_UDF\" | [optional] - **excludeType** | [**List<String>**](String.md)| task_type to exclude matching array in results, more than one can be included | [optional] - **fileType** | [**List<String>**](String.md)| match file_type of task array, more than one can be included | [optional] - **excludeFileType** | [**List<String>**](String.md)| exclude file_type of task arrays, more than one can be included | [optional] - **status** | **String**| Filter to only return these statuses | [optional] - **search** | **String**| search string that will look at name, namespace or description fields | [optional] - **orderby** | **String**| sort by which field valid values include start_time, name | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| namespace to filter | [optional] | +| **createdBy** | **String**| username to filter | [optional] | +| **array** | **String**| name/uri of array that is url-encoded 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] | +| **perPage** | **Integer**| pagination limit | [optional] | +| **type** | **String**| task type, \"QUERY\", \"SQL\", \"UDF\", \"GENERIC_UDF\" | [optional] | +| **excludeType** | [**List<String>**](String.md)| task_type to exclude matching array in results, more than one can be included | [optional] | +| **fileType** | [**List<String>**](String.md)| match file_type of task array, more than one can be included | [optional] | +| **excludeFileType** | [**List<String>**](String.md)| exclude file_type of task arrays, more than one can be included | [optional] | +| **status** | **String**| Filter to only return these statuses | [optional] | +| **search** | **String**| search string that will look at name, namespace or description fields | [optional] | +| **orderby** | **String**| sort by which field valid values include start_time, name | [optional] | ### Return type @@ -342,6 +342,6 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Array of all tasks user has access too | - | -**0** | error response | - | +| **200** | Array of all tasks user has access too | - | +| **0** | error response | - | diff --git a/docs/TileDBConfig.md b/docs/TileDBConfig.md index 3550edc..0e763ad 100644 --- a/docs/TileDBConfig.md +++ b/docs/TileDBConfig.md @@ -6,9 +6,9 @@ user's TileDB config ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**configs** | **Map<String, String>** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**configs** | **Map<String, String>** | | [optional] | diff --git a/docs/Token.md b/docs/Token.md index 8458b97..88c6a68 100644 --- a/docs/Token.md +++ b/docs/Token.md @@ -6,13 +6,13 @@ A api token and its metadata ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**token** | **String** | A api token | [optional] -**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] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**token** | **String** | A api token | [optional] | +|**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] | diff --git a/docs/TokenRequest.md b/docs/TokenRequest.md index 2333d46..af364ba 100644 --- a/docs/TokenRequest.md +++ b/docs/TokenRequest.md @@ -6,11 +6,11 @@ A request from a user for an api token ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**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] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**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] | diff --git a/docs/UDFArrayDetails.md b/docs/UDFArrayDetails.md index 7098030..1bed302 100644 --- a/docs/UDFArrayDetails.md +++ b/docs/UDFArrayDetails.md @@ -6,12 +6,12 @@ Contains array details for multi-array query including uri, ranges buffers ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**parameterId** | **String** | 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. | [optional] -**uri** | **String** | array to set ranges and buffers on, must be in tiledb:// format | [optional] -**ranges** | [**QueryRanges**](QueryRanges.md) | | [optional] -**buffers** | **List<String>** | List of buffers to fetch (attributes + dimensions) | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**parameterId** | **String** | 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. | [optional] | +|**uri** | **String** | array to set ranges and buffers on, must be in tiledb:// format | [optional] | +|**ranges** | [**QueryRanges**](QueryRanges.md) | | [optional] | +|**buffers** | **List<String>** | List of buffers to fetch (attributes + dimensions) | [optional] | diff --git a/docs/UDFCopied.md b/docs/UDFCopied.md index 0b7bd78..8375660 100644 --- a/docs/UDFCopied.md +++ b/docs/UDFCopied.md @@ -6,12 +6,12 @@ Copied udf uri and information ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**outputUri** | **String** | output location of the TileDB udf | [optional] -**namespace** | **String** | namespace of the copied udf | [optional] -**name** | **String** | name of the copied udf | [optional] -**id** | **String** | unique ID of the copied udf | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**outputUri** | **String** | output location of the TileDB udf | [optional] | +|**namespace** | **String** | namespace of the copied udf | [optional] | +|**name** | **String** | name of the copied udf | [optional] | +|**id** | **String** | unique ID of the copied udf | | diff --git a/docs/UDFCopy.md b/docs/UDFCopy.md index 0f5f5c9..278c50a 100644 --- a/docs/UDFCopy.md +++ b/docs/UDFCopy.md @@ -6,11 +6,11 @@ information required to copy a udf ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**outputUri** | **String** | output location of the TileDB File | [optional] -**namespace** | **String** | namespace to register the copy. If empty use the namespace of the request user | [optional] -**name** | **String** | name to set for the copy. If empty use the name as the original udf, if it not already used in the namespace | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**outputUri** | **String** | output location of the TileDB File | [optional] | +|**namespace** | **String** | namespace to register the copy. If empty use the namespace of the request user | [optional] | +|**name** | **String** | name to set for the copy. If empty use the name as the original udf, if it not already used in the namespace | [optional] | diff --git a/docs/UDFFavorite.md b/docs/UDFFavorite.md index ab50fd5..ad65aee 100644 --- a/docs/UDFFavorite.md +++ b/docs/UDFFavorite.md @@ -6,11 +6,11 @@ A user-favorite UDF item ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**udfUuid** | **String** | unique UUID of the UDF | [optional] -**namespace** | **String** | the namespace of the UDF | [optional] -**name** | **String** | the name of the UDF | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**udfUuid** | **String** | unique UUID of the UDF | [optional] | +|**namespace** | **String** | the namespace of the UDF | [optional] | +|**name** | **String** | the name of the UDF | [optional] | diff --git a/docs/UDFFavoritesData.md b/docs/UDFFavoritesData.md index 2c62842..d1eb62a 100644 --- a/docs/UDFFavoritesData.md +++ b/docs/UDFFavoritesData.md @@ -6,10 +6,10 @@ Object including UDF favorites and pagination metadata ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**udfs** | [**List<ArrayInfo>**](ArrayInfo.md) | List of UDF infos | [optional] -**paginationMetadata** | [**PaginationMetadata**](PaginationMetadata.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**udfs** | [**List<ArrayInfo>**](ArrayInfo.md) | List of UDF infos | [optional] | +|**paginationMetadata** | [**PaginationMetadata**](PaginationMetadata.md) | | [optional] | diff --git a/docs/UDFImage.md b/docs/UDFImage.md index 20b3284..10e0d7b 100644 --- a/docs/UDFImage.md +++ b/docs/UDFImage.md @@ -6,11 +6,11 @@ Defines a set of images related to a specific name ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | Unique ID of set of images | [optional] -**name** | **String** | name of UDF | [optional] -**language** | **UDFLanguage** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | Unique ID of set of images | [optional] | +|**name** | **String** | name of UDF | [optional] | +|**language** | **UDFLanguage** | | [optional] | diff --git a/docs/UDFImageVersion.md b/docs/UDFImageVersion.md index cb6b185..81a49a9 100644 --- a/docs/UDFImageVersion.md +++ b/docs/UDFImageVersion.md @@ -6,15 +6,15 @@ Defines an image that belongs to a set of images having a version ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | Unique ID of a versioned image | [optional] -**name** | **String** | name of UDFImageVersion | [optional] -**udfImageUuid** | **String** | Unique ID of the UDF image set | [optional] -**dockerImage** | **String** | Uri of docker image related to current entry | [optional] -**version** | **BigDecimal** | Image-specific version | [optional] -**_default** | **Boolean** | If current image is default version | [optional] -**latest** | **Boolean** | If current image is latest version | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | Unique ID of a versioned image | [optional] | +|**name** | **String** | name of UDFImageVersion | [optional] | +|**udfImageUuid** | **String** | Unique ID of the UDF image set | [optional] | +|**dockerImage** | **String** | Uri of docker image related to current entry | [optional] | +|**version** | **BigDecimal** | Image-specific version | [optional] | +|**_default** | **Boolean** | If current image is default version | [optional] | +|**latest** | **Boolean** | If current image is latest version | [optional] | diff --git a/docs/UDFInfo.md b/docs/UDFInfo.md index df65fdf..84c2f40 100644 --- a/docs/UDFInfo.md +++ b/docs/UDFInfo.md @@ -6,16 +6,16 @@ User-defined function that can persist in db, used and shared multiple times ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | Unique ID of UDF | [optional] -**name** | **String** | name of UDF | [optional] -**language** | **UDFLanguage** | | [optional] -**type** | **UDFType** | | [optional] -**readme** | **String** | Markdown readme of UDFs | [optional] -**licenseId** | **String** | License identifier from SPDX License List or Custom | [optional] -**licenseText** | **String** | License text | [optional] -**tags** | **List<String>** | optional tags for UDF | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | Unique ID of UDF | [optional] | +|**name** | **String** | name of UDF | [optional] | +|**language** | **UDFLanguage** | | [optional] | +|**type** | **UDFType** | | [optional] | +|**readme** | **String** | Markdown readme of UDFs | [optional] | +|**licenseId** | **String** | License identifier from SPDX License List or Custom | [optional] | +|**licenseText** | **String** | License text | [optional] | +|**tags** | **List<String>** | optional tags for UDF | [optional] | diff --git a/docs/UDFInfoUpdate.md b/docs/UDFInfoUpdate.md index fabbeb8..ec5a51a 100644 --- a/docs/UDFInfoUpdate.md +++ b/docs/UDFInfoUpdate.md @@ -6,19 +6,19 @@ User-defined function that can persist in db, used and shared multiple times ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | name of UDF | [optional] -**language** | **UDFLanguage** | | [optional] -**version** | **String** | Type-specific version | [optional] -**imageName** | **String** | Docker image name to use for UDF | [optional] -**type** | **UDFType** | | [optional] -**exec** | **String** | Type-specific executable text | [optional] -**execRaw** | **String** | optional raw text to store of serialized function, used for showing in UI | [optional] -**readme** | **String** | Markdown readme of UDFs | [optional] -**licenseId** | **String** | License identifier from SPDX License List or Custom | [optional] -**licenseText** | **String** | License text | [optional] -**tags** | **List<String>** | optional tags for UDF | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | name of UDF | [optional] | +|**language** | **UDFLanguage** | | [optional] | +|**version** | **String** | Type-specific version | [optional] | +|**imageName** | **String** | Docker image name to use for UDF | [optional] | +|**type** | **UDFType** | | [optional] | +|**exec** | **String** | Type-specific executable text | [optional] | +|**execRaw** | **String** | optional raw text to store of serialized function, used for showing in UI | [optional] | +|**readme** | **String** | Markdown readme of UDFs | [optional] | +|**licenseId** | **String** | License identifier from SPDX License List or Custom | [optional] | +|**licenseText** | **String** | License text | [optional] | +|**tags** | **List<String>** | optional tags for UDF | [optional] | diff --git a/docs/UDFSharing.md b/docs/UDFSharing.md index 8389f12..dfccb91 100644 --- a/docs/UDFSharing.md +++ b/docs/UDFSharing.md @@ -6,11 +6,11 @@ details for sharing a given UDF ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**actions** | **List<UDFActions>** | List of permitted actions | [optional] -**namespace** | **String** | namespace being granted array access can be a user or organization | [optional] -**namespaceType** | **String** | details on if the namespace is a organization or user | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**actions** | **List<UDFActions>** | List of permitted actions | [optional] | +|**namespace** | **String** | namespace being granted array access can be a user or organization | [optional] | +|**namespaceType** | **String** | details on if the namespace is a organization or user | [optional] | diff --git a/docs/UDFSubarray.md b/docs/UDFSubarray.md index 1da903c..b57b41d 100644 --- a/docs/UDFSubarray.md +++ b/docs/UDFSubarray.md @@ -6,10 +6,10 @@ Subarray bounds to query for a UDF to operate on ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**layout** | **Layout** | | [optional] -**ranges** | [**List<UDFSubarrayRange>**](UDFSubarrayRange.md) | List of ranges, | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**layout** | **Layout** | | [optional] | +|**ranges** | [**List<UDFSubarrayRange>**](UDFSubarrayRange.md) | List of ranges, | [optional] | diff --git a/docs/UDFSubarrayRange.md b/docs/UDFSubarrayRange.md index 2d28c72..aa53a26 100644 --- a/docs/UDFSubarrayRange.md +++ b/docs/UDFSubarrayRange.md @@ -6,11 +6,11 @@ A dimension range to query ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**dimensionId** | **Integer** | The dimension index | [optional] -**rangeStart** | [**DimensionCoordinate**](DimensionCoordinate.md) | | [optional] -**rangeEnd** | [**DimensionCoordinate**](DimensionCoordinate.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**dimensionId** | **Integer** | The dimension index | [optional] | +|**rangeStart** | [**DimensionCoordinate**](DimensionCoordinate.md) | | [optional] | +|**rangeEnd** | [**DimensionCoordinate**](DimensionCoordinate.md) | | [optional] | diff --git a/docs/UdfApi.md b/docs/UdfApi.md index daf20ee..69165e6 100644 --- a/docs/UdfApi.md +++ b/docs/UdfApi.md @@ -2,19 +2,19 @@ All URIs are relative to */v1* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**deleteUDFInfo**](UdfApi.md#deleteUDFInfo) | **DELETE** /udf/{namespace}/{name} | -[**getUDFInfo**](UdfApi.md#getUDFInfo) | **GET** /udf/{namespace}/{name} | -[**getUDFInfoSharingPolicies**](UdfApi.md#getUDFInfoSharingPolicies) | **GET** /udf/{namespace}/{name}/share | -[**handleCopyUDF**](UdfApi.md#handleCopyUDF) | **POST** /udf/{namespace}/{name}/copy | -[**registerUDFInfo**](UdfApi.md#registerUDFInfo) | **POST** /udf/{namespace}/{name} | -[**shareUDFInfo**](UdfApi.md#shareUDFInfo) | **PATCH** /udf/{namespace}/{name}/share | -[**submitGenericUDF**](UdfApi.md#submitGenericUDF) | **POST** /udfs/generic/{namespace} | -[**submitMultiArrayUDF**](UdfApi.md#submitMultiArrayUDF) | **POST** /udfs/arrays/{namespace} | -[**submitUDF**](UdfApi.md#submitUDF) | **POST** /arrays/{namespace}/{array}/udf/submit | -[**udfNamespaceArrayEndTimestampsGet**](UdfApi.md#udfNamespaceArrayEndTimestampsGet) | **GET** /udf/{namespace}/{array}/end_timestamps | -[**updateUDFInfo**](UdfApi.md#updateUDFInfo) | **PATCH** /udf/{namespace}/{name} | +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**deleteUDFInfo**](UdfApi.md#deleteUDFInfo) | **DELETE** /udf/{namespace}/{name} | | +| [**getUDFInfo**](UdfApi.md#getUDFInfo) | **GET** /udf/{namespace}/{name} | | +| [**getUDFInfoSharingPolicies**](UdfApi.md#getUDFInfoSharingPolicies) | **GET** /udf/{namespace}/{name}/share | | +| [**handleCopyUDF**](UdfApi.md#handleCopyUDF) | **POST** /udf/{namespace}/{name}/copy | | +| [**registerUDFInfo**](UdfApi.md#registerUDFInfo) | **POST** /udf/{namespace}/{name} | | +| [**shareUDFInfo**](UdfApi.md#shareUDFInfo) | **PATCH** /udf/{namespace}/{name}/share | | +| [**submitGenericUDF**](UdfApi.md#submitGenericUDF) | **POST** /udfs/generic/{namespace} | | +| [**submitMultiArrayUDF**](UdfApi.md#submitMultiArrayUDF) | **POST** /udfs/arrays/{namespace} | | +| [**submitUDF**](UdfApi.md#submitUDF) | **POST** /arrays/{namespace}/{array}/udf/submit | | +| [**udfNamespaceArrayEndTimestampsGet**](UdfApi.md#udfNamespaceArrayEndTimestampsGet) | **GET** /udf/{namespace}/{array}/end_timestamps | | +| [**updateUDFInfo**](UdfApi.md#updateUDFInfo) | **PATCH** /udf/{namespace}/{name} | | @@ -69,10 +69,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| namespace array is in (an organization name or user's username) | - **name** | **String**| name to register UDF under | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **name** | **String**| name to register UDF under | | ### Return type @@ -90,8 +90,8 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | UDF deleted successfully | - | -**0** | error response | - | +| **204** | UDF deleted successfully | - | +| **0** | error response | - | # **getUDFInfo** @@ -146,10 +146,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| namespace array is in (an organization name or user's username) | - **name** | **String**| name to register UDF under | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **name** | **String**| name to register UDF under | | ### Return type @@ -167,9 +167,9 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | UDFInfo was retrieved successfully | - | -**404** | UDF not found | - | -**0** | error response | - | +| **200** | UDFInfo was retrieved successfully | - | +| **404** | UDF not found | - | +| **0** | error response | - | # **getUDFInfoSharingPolicies** @@ -224,10 +224,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| namespace array is in (an organization name or user's username) | - **name** | **String**| name of UDFInfo | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **name** | **String**| name of UDFInfo | | ### Return type @@ -245,9 +245,9 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | List of all specific sharing policies | - | -**404** | UDF does not exist or user does not have permissions to view array-sharing policies | - | -**0** | error response | - | +| **200** | List of all specific sharing policies | - | +| **404** | UDF does not exist or user does not have permissions to view array-sharing policies | - | +| **0** | error response | - | # **handleCopyUDF** @@ -305,13 +305,13 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| namespace array is in (an organization name or user's username) | - **name** | **String**| name of UDFInfo | - **udFCopy** | [**UDFCopy**](UDFCopy.md)| Input/Output information to copy a UDF | - **X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME** | **String**| Optional registered access credentials to use for creation | [optional] - **endTimestamp** | **Integer**| Milliseconds since Unix epoch | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **name** | **String**| name of UDFInfo | | +| **udFCopy** | [**UDFCopy**](UDFCopy.md)| Input/Output information to copy a UDF | | +| **X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME** | **String**| Optional registered access credentials to use for creation | [optional] | +| **endTimestamp** | **Integer**| Milliseconds since Unix epoch | [optional] | ### Return type @@ -329,8 +329,8 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**201** | UDF copied | - | -**0** | error response | - | +| **201** | UDF copied | - | +| **0** | error response | - | # **registerUDFInfo** @@ -385,11 +385,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| namespace array is in (an organization name or user's username) | - **name** | **String**| name to register UDF under | - **udf** | [**UDFInfoUpdate**](UDFInfoUpdate.md)| UDF to register | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **name** | **String**| name to register UDF under | | +| **udf** | [**UDFInfoUpdate**](UDFInfoUpdate.md)| UDF to register | | ### Return type @@ -407,8 +407,8 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | UDF registered successfully | - | -**0** | error response | - | +| **204** | UDF registered successfully | - | +| **0** | error response | - | # **shareUDFInfo** @@ -463,11 +463,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| namespace array is in (an organization name or user's username) | - **name** | **String**| name of UDFInfo | - **udfSharing** | [**UDFSharing**](UDFSharing.md)| 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. | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **name** | **String**| name of UDFInfo | | +| **udfSharing** | [**UDFSharing**](UDFSharing.md)| 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. | | ### Return type @@ -485,9 +485,9 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | UDF shared successfully | - | -**404** | UDF does not exist or user does not have permissions to share UDF | - | -**0** | error response | - | +| **204** | UDF shared successfully | - | +| **404** | UDF does not exist or user does not have permissions to share UDF | - | +| **0** | error response | - | # **submitGenericUDF** @@ -543,11 +543,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| namespace array is in (an organization name or user's username) | - **udf** | [**GenericUDF**](GenericUDF.md)| UDF to run | - **acceptEncoding** | **String**| Encoding to use | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **udf** | [**GenericUDF**](GenericUDF.md)| UDF to run | | +| **acceptEncoding** | **String**| Encoding to use | [optional] | ### Return type @@ -565,8 +565,8 @@ Name | Type | Description | Notes ### 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
| +| **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
| # **submitMultiArrayUDF** @@ -622,11 +622,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| namespace array is in (an organization name or user's username) | - **udf** | [**MultiArrayUDF**](MultiArrayUDF.md)| UDF to run | - **acceptEncoding** | **String**| Encoding to use | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **udf** | [**MultiArrayUDF**](MultiArrayUDF.md)| UDF to run | | +| **acceptEncoding** | **String**| Encoding to use | [optional] | ### Return type @@ -644,8 +644,8 @@ Name | Type | Description | Notes ### 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
| +| **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
| # **submitUDF** @@ -704,14 +704,14 @@ public class Example { ### 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 | - **udf** | [**MultiArrayUDF**](MultiArrayUDF.md)| UDF to run | - **xPayer** | **String**| Name of organization or user who should be charged for this request | [optional] - **acceptEncoding** | **String**| Encoding to use | [optional] - **v2** | **String**| flag to indicate if v2 array UDFs should be used, currently in beta testing. Setting any value will enable v2 array UDFs. | [optional] +| 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 | | +| **udf** | [**MultiArrayUDF**](MultiArrayUDF.md)| UDF to run | | +| **xPayer** | **String**| Name of organization or user who should be charged for this request | [optional] | +| **acceptEncoding** | **String**| Encoding to use | [optional] | +| **v2** | **String**| flag to indicate if v2 array UDFs should be used, currently in beta testing. Setting any value will enable v2 array UDFs. | [optional] | ### Return type @@ -729,8 +729,8 @@ Name | Type | Description | Notes ### 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
| +| **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
| # **udfNamespaceArrayEndTimestampsGet** @@ -787,12 +787,12 @@ public class Example { ### 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 | - **page** | **Integer**| pagination offset | [optional] - **perPage** | **Integer**| pagination limit | [optional] +| 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 | | +| **page** | **Integer**| pagination offset | [optional] | +| **perPage** | **Integer**| pagination limit | [optional] | ### Return type @@ -810,8 +810,8 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | list of timestamps in milliseconds, paginated | - | -**0** | error response | - | +| **200** | list of timestamps in milliseconds, paginated | - | +| **0** | error response | - | # **updateUDFInfo** @@ -866,11 +866,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| namespace array is in (an organization name or user's username) | - **name** | **String**| name to register UDF under | - **udf** | [**UDFInfoUpdate**](UDFInfoUpdate.md)| UDF to update | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| namespace array is in (an organization name or user's username) | | +| **name** | **String**| name to register UDF under | | +| **udf** | [**UDFInfoUpdate**](UDFInfoUpdate.md)| UDF to update | | ### Return type @@ -888,6 +888,6 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | UDF updated successfully | - | -**0** | error response | - | +| **204** | UDF updated successfully | - | +| **0** | error response | - | diff --git a/docs/User.md b/docs/User.md index c5fb43d..39f23e0 100644 --- a/docs/User.md +++ b/docs/User.md @@ -6,26 +6,26 @@ User ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | unique ID of user | [optional] -**username** | **String** | username must be unique | -**password** | **String** | password | [optional] -**name** | **String** | the user's full, real name | [optional] -**email** | **String** | the user's email | [optional] -**isValidEmail** | **Boolean** | user's email is validated to be correct | [optional] [readonly] -**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] -**defaultNamespaceCharged** | **String** | Override the default namespace charged for actions when no namespace is specified | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | unique ID of user | [optional] | +|**username** | **String** | username must be unique | | +|**password** | **String** | password | [optional] | +|**name** | **String** | the user's full, real name | [optional] | +|**email** | **String** | the user's email | [optional] | +|**isValidEmail** | **Boolean** | user's email is validated to be correct | [optional] [readonly] | +|**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] | +|**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 87ee44d..3a050d1 100644 --- a/docs/UserApi.md +++ b/docs/UserApi.md @@ -2,30 +2,30 @@ All URIs are relative to */v1* -Method | HTTP request | Description -------------- | ------------- | ------------- -[**addAWSAccessCredentials**](UserApi.md#addAWSAccessCredentials) | **POST** /credentials/{namespace}/aws | -[**addUserToOrganization**](UserApi.md#addUserToOrganization) | **POST** /organizations/{organization}/user | -[**checkAWSAccessCredentials**](UserApi.md#checkAWSAccessCredentials) | **GET** /credentials/{namespace}/aws | -[**checkAWSAccessCredentialsByName**](UserApi.md#checkAWSAccessCredentialsByName) | **GET** /credentials/{namespace}/aws/{name} | -[**confirmEmail**](UserApi.md#confirmEmail) | **POST** /user/confirm_email | -[**createUser**](UserApi.md#createUser) | **POST** /user | -[**deleteAWSAccessCredentials**](UserApi.md#deleteAWSAccessCredentials) | **DELETE** /credentials/{namespace}/aws/{name} | -[**deleteUser**](UserApi.md#deleteUser) | **DELETE** /users/{username} | -[**deleteUserFromOrganization**](UserApi.md#deleteUserFromOrganization) | **DELETE** /organizations/{organization}/{username} | -[**getOrganizationUser**](UserApi.md#getOrganizationUser) | **GET** /organizations/{organization}/{username} | -[**getSession**](UserApi.md#getSession) | **GET** /session | -[**getTokenScopes**](UserApi.md#getTokenScopes) | **GET** /tokens/scopes | -[**getUser**](UserApi.md#getUser) | **GET** /user | -[**getUserWithUsername**](UserApi.md#getUserWithUsername) | **GET** /users/{username} | -[**requestToken**](UserApi.md#requestToken) | **POST** /token | -[**resetUserPassword**](UserApi.md#resetUserPassword) | **POST** /user/password_reset | -[**revokeToken**](UserApi.md#revokeToken) | **DELETE** /tokens/{token} | -[**tokensGet**](UserApi.md#tokensGet) | **GET** /tokens | -[**tokensSessionGet**](UserApi.md#tokensSessionGet) | **GET** /tokens/session | -[**updateAWSAccessCredentials**](UserApi.md#updateAWSAccessCredentials) | **PATCH** /credentials/{namespace}/aws/{name} | -[**updateUser**](UserApi.md#updateUser) | **PATCH** /users/{username} | -[**updateUserInOrganization**](UserApi.md#updateUserInOrganization) | **PATCH** /organizations/{organization}/{username} | +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**addAWSAccessCredentials**](UserApi.md#addAWSAccessCredentials) | **POST** /credentials/{namespace}/aws | | +| [**addUserToOrganization**](UserApi.md#addUserToOrganization) | **POST** /organizations/{organization}/user | | +| [**checkAWSAccessCredentials**](UserApi.md#checkAWSAccessCredentials) | **GET** /credentials/{namespace}/aws | | +| [**checkAWSAccessCredentialsByName**](UserApi.md#checkAWSAccessCredentialsByName) | **GET** /credentials/{namespace}/aws/{name} | | +| [**confirmEmail**](UserApi.md#confirmEmail) | **POST** /user/confirm_email | | +| [**createUser**](UserApi.md#createUser) | **POST** /user | | +| [**deleteAWSAccessCredentials**](UserApi.md#deleteAWSAccessCredentials) | **DELETE** /credentials/{namespace}/aws/{name} | | +| [**deleteUser**](UserApi.md#deleteUser) | **DELETE** /users/{username} | | +| [**deleteUserFromOrganization**](UserApi.md#deleteUserFromOrganization) | **DELETE** /organizations/{organization}/{username} | | +| [**getOrganizationUser**](UserApi.md#getOrganizationUser) | **GET** /organizations/{organization}/{username} | | +| [**getSession**](UserApi.md#getSession) | **GET** /session | | +| [**getTokenScopes**](UserApi.md#getTokenScopes) | **GET** /tokens/scopes | | +| [**getUser**](UserApi.md#getUser) | **GET** /user | | +| [**getUserWithUsername**](UserApi.md#getUserWithUsername) | **GET** /users/{username} | | +| [**requestToken**](UserApi.md#requestToken) | **POST** /token | | +| [**resetUserPassword**](UserApi.md#resetUserPassword) | **POST** /user/password_reset | | +| [**revokeToken**](UserApi.md#revokeToken) | **DELETE** /tokens/{token} | | +| [**tokensGet**](UserApi.md#tokensGet) | **GET** /tokens | | +| [**tokensSessionGet**](UserApi.md#tokensSessionGet) | **GET** /tokens/session | | +| [**updateAWSAccessCredentials**](UserApi.md#updateAWSAccessCredentials) | **PATCH** /credentials/{namespace}/aws/{name} | | +| [**updateUser**](UserApi.md#updateUser) | **PATCH** /users/{username} | | +| [**updateUserInOrganization**](UserApi.md#updateUserInOrganization) | **PATCH** /organizations/{organization}/{username} | | @@ -80,10 +80,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| namespace | - **awsAccessCredentials** | [**AWSAccessCredentials**](AWSAccessCredentials.md)| aws access credentials to store for a namespace | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| namespace | | +| **awsAccessCredentials** | [**AWSAccessCredentials**](AWSAccessCredentials.md)| aws access credentials to store for a namespace | | ### Return type @@ -101,8 +101,8 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | AWS keys added successfully | - | -**0** | error response | - | +| **204** | AWS keys added successfully | - | +| **0** | error response | - | # **addUserToOrganization** @@ -156,10 +156,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **organization** | **String**| organization name | - **user** | [**OrganizationUser**](OrganizationUser.md)| user to add | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **organization** | **String**| organization name | | +| **user** | [**OrganizationUser**](OrganizationUser.md)| user to add | | ### Return type @@ -177,8 +177,8 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | user added to organization successfully | - | -**0** | error response | - | +| **204** | user added to organization successfully | - | +| **0** | error response | - | # **checkAWSAccessCredentials** @@ -232,9 +232,9 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| namespace | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| namespace | | ### Return type @@ -252,8 +252,8 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | AWS keys are set | - | -**0** | error response | - | +| **200** | AWS keys are set | - | +| **0** | error response | - | # **checkAWSAccessCredentialsByName** @@ -308,10 +308,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| namespace | - **name** | **String**| name | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| namespace | | +| **name** | **String**| name | | ### Return type @@ -329,8 +329,8 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | AWS keys are set | - | -**0** | error response | - | +| **200** | AWS keys are set | - | +| **0** | error response | - | # **confirmEmail** @@ -399,8 +399,8 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | User email confirmed successfully | - | -**0** | error response | - | +| **204** | User email confirmed successfully | - | +| **0** | error response | - | # **createUser** @@ -453,9 +453,9 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **user** | [**User**](User.md)| user to create | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **user** | [**User**](User.md)| user to create | | ### Return type @@ -473,8 +473,8 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | user created successfully | - | -**0** | error response | - | +| **204** | user created successfully | - | +| **0** | error response | - | # **deleteAWSAccessCredentials** @@ -528,10 +528,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| namespace | - **name** | **String**| name | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| namespace | | +| **name** | **String**| name | | ### Return type @@ -549,8 +549,8 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | AWS credentials deleted | - | -**0** | error response | - | +| **204** | AWS credentials deleted | - | +| **0** | error response | - | # **deleteUser** @@ -603,9 +603,9 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **username** | **String**| username or ID | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **username** | **String**| username or ID | | ### Return type @@ -623,8 +623,8 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | user deleted | - | -**0** | error response | - | +| **204** | user deleted | - | +| **0** | error response | - | # **deleteUserFromOrganization** @@ -678,10 +678,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **organization** | **String**| organization name | - **username** | **String**| username to manipulate | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **organization** | **String**| organization name | | +| **username** | **String**| username to manipulate | | ### Return type @@ -699,8 +699,8 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | user delete from organization successfully | - | -**0** | error response | - | +| **204** | user delete from organization successfully | - | +| **0** | error response | - | # **getOrganizationUser** @@ -755,10 +755,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **organization** | **String**| organization name | - **username** | **String**| username to manipulate | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **organization** | **String**| organization name | | +| **username** | **String**| username to manipulate | | ### Return type @@ -776,9 +776,9 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | user from organization | - | -**404** | User is not in organization | - | -**0** | error response | - | +| **200** | user from organization | - | +| **404** | User is not in organization | - | +| **0** | error response | - | # **getSession** @@ -832,9 +832,9 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **rememberMe** | **String**| flag to create a token with expiration of 30 days, default is false | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **rememberMe** | **String**| flag to create a token with expiration of 30 days, default is false | [optional] | ### Return type @@ -852,8 +852,8 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Session token | - | -**0** | error response | - | +| **200** | Session token | - | +| **0** | error response | - | # **getTokenScopes** @@ -923,8 +923,8 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | available token scopes | - | -**0** | error response | - | +| **200** | available token scopes | - | +| **0** | error response | - | # **getUser** @@ -994,8 +994,8 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | user details | - | -**0** | error response | - | +| **200** | user details | - | +| **0** | error response | - | # **getUserWithUsername** @@ -1049,9 +1049,9 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **username** | **String**| username or ID | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **username** | **String**| username or ID | | ### Return type @@ -1069,9 +1069,9 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | user details | - | -**404** | User does not exist | - | -**0** | error response | - | +| **200** | user details | - | +| **404** | User does not exist | - | +| **0** | error response | - | # **requestToken** @@ -1125,9 +1125,9 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **tokenRequest** | [**TokenRequest**](TokenRequest.md)| token request object | [optional] +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **tokenRequest** | [**TokenRequest**](TokenRequest.md)| token request object | [optional] | ### Return type @@ -1145,8 +1145,8 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | token | - | -**0** | error response | - | +| **200** | token | - | +| **0** | error response | - | # **resetUserPassword** @@ -1183,7 +1183,7 @@ public class Example { BasicAuth.setPassword("YOUR PASSWORD"); UserApi apiInstance = new UserApi(defaultClient); - InlineObject user = new InlineObject(); // InlineObject | + ResetUserPasswordRequest user = new ResetUserPasswordRequest(); // ResetUserPasswordRequest | password to update for user requesting update try { apiInstance.resetUserPassword(user); } catch (ApiException e) { @@ -1199,9 +1199,9 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **user** | [**InlineObject**](InlineObject.md)| | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **user** | [**ResetUserPasswordRequest**](ResetUserPasswordRequest.md)| password to update for user requesting update | | ### Return type @@ -1219,9 +1219,9 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | User password updated successfully | - | -**404** | User not found | - | -**0** | error response | - | +| **204** | User password updated successfully | - | +| **404** | User not found | - | +| **0** | error response | - | # **revokeToken** @@ -1274,9 +1274,9 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **token** | **String**| token name or token itself | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **token** | **String**| token name or token itself | | ### Return type @@ -1294,8 +1294,8 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | revokation successfully | - | -**0** | error response | - | +| **204** | revokation successfully | - | +| **0** | error response | - | # **tokensGet** @@ -1365,8 +1365,8 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Array of user created non-session tokens | - | -**0** | error response | - | +| **200** | Array of user created non-session tokens | - | +| **0** | error response | - | # **tokensSessionGet** @@ -1436,8 +1436,8 @@ This endpoint does not need any parameter. ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**200** | Array of user created session tokens | - | -**0** | error response | - | +| **200** | Array of user created session tokens | - | +| **0** | error response | - | # **updateAWSAccessCredentials** @@ -1492,11 +1492,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **namespace** | **String**| namespace | - **name** | **String**| name | - **awsAccessCredentials** | [**AWSAccessCredentials**](AWSAccessCredentials.md)| aws credentials to update | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **namespace** | **String**| namespace | | +| **name** | **String**| name | | +| **awsAccessCredentials** | [**AWSAccessCredentials**](AWSAccessCredentials.md)| aws credentials to update | | ### Return type @@ -1514,8 +1514,8 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | AWS keys updated successfully | - | -**0** | error response | - | +| **204** | AWS keys updated successfully | - | +| **0** | error response | - | # **updateUser** @@ -1569,10 +1569,10 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **username** | **String**| username or ID | - **user** | [**User**](User.md)| user details to update | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **username** | **String**| username or ID | | +| **user** | [**User**](User.md)| user details to update | | ### Return type @@ -1590,8 +1590,8 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | user updated successfully | - | -**0** | error response | - | +| **204** | user updated successfully | - | +| **0** | error response | - | # **updateUserInOrganization** @@ -1646,11 +1646,11 @@ public class Example { ### Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **organization** | **String**| organization name | - **username** | **String**| username to manipulate | - **user** | [**OrganizationUser**](OrganizationUser.md)| user details to update | +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **organization** | **String**| organization name | | +| **username** | **String**| username to manipulate | | +| **user** | [**OrganizationUser**](OrganizationUser.md)| user details to update | | ### Return type @@ -1668,6 +1668,6 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -**204** | user update in organization successfully | - | -**0** | error response | - | +| **204** | user update in organization successfully | - | +| **0** | error response | - | diff --git a/docs/Writer.md b/docs/Writer.md index 82f6452..aab9957 100644 --- a/docs/Writer.md +++ b/docs/Writer.md @@ -5,12 +5,12 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**checkCoordDups** | **Boolean** | | [optional] -**checkCoordOOB** | **Boolean** | | [optional] -**dedupCoords** | **Boolean** | | [optional] -**subarray** | [**DomainArray**](DomainArray.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**checkCoordDups** | **Boolean** | | [optional] | +|**checkCoordOOB** | **Boolean** | | [optional] | +|**dedupCoords** | **Boolean** | | [optional] | +|**subarray** | [**DomainArray**](DomainArray.md) | | [optional] | diff --git a/pom.xml b/pom.xml deleted file mode 100644 index 097cfcf..0000000 --- a/pom.xml +++ /dev/null @@ -1,339 +0,0 @@ - - 4.0.0 - org.openapitools - openapi-java-client - jar - openapi-java-client - 2.2.19 - https://github.com/openapitools/openapi-generator - OpenAPI Java - - scm:git:git@github.com:openapitools/openapi-generator.git - scm:git:git@github.com:openapitools/openapi-generator.git - https://github.com/openapitools/openapi-generator - - - - - Unlicense - http://unlicense.org - repo - - - - - - OpenAPI-Generator Contributors - team@openapitools.org - OpenAPITools.org - http://openapitools.org - - - - - - - org.apache.maven.plugins - maven-compiler-plugin - 3.8.1 - - true - 128m - 512m - - -Xlint:all - -J-Xss4m - - - - - org.apache.maven.plugins - maven-enforcer-plugin - 3.0.0 - - - enforce-maven - - enforce - - - - - 2.2.0 - - - - - - - - org.apache.maven.plugins - maven-surefire-plugin - 3.0.0-M5 - - - - loggerPath - conf/log4j.properties - - - -Xms512m -Xmx1500m - methods - 10 - - - - maven-dependency-plugin - - - package - - copy-dependencies - - - ${project.build.directory}/lib - - - - - - - org.apache.maven.plugins - maven-jar-plugin - 3.2.0 - - - - test-jar - - - - - - - - org.codehaus.mojo - build-helper-maven-plugin - 3.2.0 - - - add_sources - generate-sources - - add-source - - - - src/main/java - - - - - add_test_sources - generate-test-sources - - add-test-source - - - - src/test/java - - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - 3.3.1 - - - attach-javadocs - - jar - - - - - none - - - http.response.details - a - Http Response Details: - - - - - - org.apache.maven.plugins - maven-source-plugin - 3.2.0 - - - attach-sources - - jar-no-fork - - - - - - - com.diffplug.spotless - spotless-maven-plugin - ${spotless.version} - - - - - - - .gitignore - - - - - - true - 4 - - - - - - - - - - 1.8 - - true - - - - - - - - - - - - - - sign-artifacts - - - - org.apache.maven.plugins - maven-gpg-plugin - 3.0.1 - - - sign-artifacts - verify - - sign - - - - - - - - - - - - io.swagger - swagger-annotations - ${swagger-core-version} - - - - com.google.code.findbugs - jsr305 - 3.0.2 - - - com.squareup.okhttp3 - okhttp - ${okhttp-version} - - - com.squareup.okhttp3 - logging-interceptor - ${okhttp-version} - - - com.google.code.gson - gson - ${gson-version} - - - io.gsonfire - gson-fire - ${gson-fire-version} - - - org.apache.oltu.oauth2 - org.apache.oltu.oauth2.client - 1.0.1 - - - org.apache.commons - commons-lang3 - ${commons-lang3-version} - - - org.threeten - threetenbp - ${threetenbp-version} - - - jakarta.annotation - jakarta.annotation-api - ${jakarta-annotation-version} - provided - - - org.openapitools - jackson-databind-nullable - ${jackson-databind-nullable-version} - - - - junit - junit - ${junit-version} - test - - - org.mockito - mockito-core - 3.12.4 - test - - - - 1.8 - ${java.version} - ${java.version} - 1.8.5 - 1.6.3 - 4.9.2 - 2.8.8 - 3.12.0 - 0.2.2 - 1.5.0 - 1.3.5 - 4.13.2 - UTF-8 - 2.17.3 - - diff --git a/settings.gradle b/settings.gradle index 5a2e942..369ba54 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1 +1 @@ -rootProject.name = "tiledb-cloud-java" \ No newline at end of file +rootProject.name = "openapi-java-client" \ No newline at end of file diff --git a/src/main/java/examples/Examples.java b/src/main/java/examples/Examples.java index 8f90724..7ead7d1 100644 --- a/src/main/java/examples/Examples.java +++ b/src/main/java/examples/Examples.java @@ -189,7 +189,7 @@ private static void createArray(ArrayApi arrayApi){ schema.addVersionItem(10); FilterPipeline filterPipeline = new FilterPipeline(); - filterPipeline.addFiltersItem(new Filter().type(FilterType.NONE)); + filterPipeline.addFiltersItem(new Filter().type(FilterType.ZSTD)); schema.setOffsetFilterPipeline(filterPipeline); schema.setCoordsFilterPipeline(filterPipeline); diff --git a/src/main/java/org/openapitools/client/ApiClient.java b/src/main/java/org/openapitools/client/ApiClient.java index adf5c1a..bb3bbcb 100644 --- a/src/main/java/org/openapitools/client/ApiClient.java +++ b/src/main/java/org/openapitools/client/ApiClient.java @@ -21,9 +21,6 @@ import okio.Buffer; import okio.BufferedSink; import okio.Okio; -import org.threeten.bp.LocalDate; -import org.threeten.bp.OffsetDateTime; -import org.threeten.bp.format.DateTimeFormatter; import org.apache.oltu.oauth2.client.request.OAuthClientRequest.TokenRequestBuilder; import org.apache.oltu.oauth2.common.message.types.GrantType; @@ -46,6 +43,9 @@ import java.security.cert.CertificateFactory; import java.security.cert.X509Certificate; import java.text.DateFormat; +import java.time.LocalDate; +import java.time.OffsetDateTime; +import java.time.format.DateTimeFormatter; import java.util.*; import java.util.Map.Entry; import java.util.concurrent.TimeUnit; @@ -174,7 +174,7 @@ public ApiClient(String basePath, String clientId, String clientSecret, MapSet OffsetDateTimeFormat.

* - * @param dateFormat a {@link org.threeten.bp.format.DateTimeFormatter} object + * @param dateFormat a {@link java.time.format.DateTimeFormatter} object * @return a {@link org.openapitools.client.ApiClient} object */ public ApiClient setOffsetDateTimeFormat(DateTimeFormatter dateFormat) { @@ -386,7 +386,7 @@ public ApiClient setOffsetDateTimeFormat(DateTimeFormatter dateFormat) { /** *

Set LocalDateFormat.

* - * @param dateFormat a {@link org.threeten.bp.format.DateTimeFormatter} object + * @param dateFormat a {@link java.time.format.DateTimeFormatter} object * @return a {@link org.openapitools.client.ApiClient} object */ public ApiClient setLocalDateFormat(DateTimeFormatter dateFormat) { @@ -1167,6 +1167,7 @@ public T handleResponse(Response response, Type returnType) throws ApiExcept /** * Build HTTP call with the given options. * + * @param baseUrl The base URL * @param path The sub-path of the HTTP URL * @param method The request method, one of "GET", "HEAD", "OPTIONS", "POST", "PUT", "PATCH" and "DELETE" * @param queryParams The query parameters @@ -1189,6 +1190,7 @@ public Call buildCall(String baseUrl, String path, String method, List que /** * Build an HTTP request with the given options. * + * @param baseUrl The base URL * @param path The sub-path of the HTTP URL * @param method The request method, one of "GET", "HEAD", "OPTIONS", "POST", "PUT", "PATCH" and "DELETE" * @param queryParams The query parameters @@ -1225,7 +1227,7 @@ public Request buildRequest(String baseUrl, String path, String method, List cookieParams, Request.Builde * @param payload HTTP request body * @param method HTTP method * @param uri URI + * @throws org.openapitools.client.ApiException If fails to update the parameters */ public void updateParamsForAuth(String[] authNames, List queryParams, Map headerParams, Map cookieParams, String payload, String method, URI uri) throws ApiException { @@ -1389,9 +1393,14 @@ public RequestBody buildRequestBodyMultipart(Map formParams) { for (Entry param : formParams.entrySet()) { if (param.getValue() instanceof File) { File file = (File) param.getValue(); - Headers partHeaders = Headers.of("Content-Disposition", "form-data; name=\"" + param.getKey() + "\"; filename=\"" + file.getName() + "\""); - MediaType mediaType = MediaType.parse(guessContentTypeFromFile(file)); - mpBuilder.addPart(partHeaders, RequestBody.create(file, mediaType)); + addPartToMultiPartBuilder(mpBuilder, param.getKey(), file); + } else if (param.getValue() instanceof List) { + List list = (List) param.getValue(); + for (Object item: list) { + if (item instanceof File) { + addPartToMultiPartBuilder(mpBuilder, param.getKey(), (File) item); + } + } } else { Headers partHeaders = Headers.of("Content-Disposition", "form-data; name=\"" + param.getKey() + "\""); mpBuilder.addPart(partHeaders, RequestBody.create(parameterToString(param.getValue()), null)); @@ -1415,6 +1424,19 @@ 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 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)); + } + /** * Get network interceptor to add it to the httpClient to track download progress for * async requests. diff --git a/src/main/java/org/openapitools/client/ApiException.java b/src/main/java/org/openapitools/client/ApiException.java index bbf757d..f6a58fd 100644 --- a/src/main/java/org/openapitools/client/ApiException.java +++ b/src/main/java/org/openapitools/client/ApiException.java @@ -16,11 +16,13 @@ import java.util.Map; import java.util.List; +import javax.ws.rs.core.GenericType; + /** *

ApiException class.

*/ @SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; @@ -151,4 +153,14 @@ public Map> getResponseHeaders() { public String getResponseBody() { return responseBody; } + + /** + * Get the exception message including HTTP response data. + * + * @return The exception message + */ + public String getMessage() { + return String.format("Message: %s%nHTTP response code: %s%nHTTP response body: %s%nHTTP response headers: %s", + super.getMessage(), this.getCode(), this.getResponseBody(), this.getResponseHeaders()); + } } diff --git a/src/main/java/org/openapitools/client/Configuration.java b/src/main/java/org/openapitools/client/Configuration.java index 896dee9..0fa79d9 100644 --- a/src/main/java/org/openapitools/client/Configuration.java +++ b/src/main/java/org/openapitools/client/Configuration.java @@ -13,7 +13,7 @@ package org.openapitools.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class Configuration { private static ApiClient defaultApiClient = new ApiClient(); diff --git a/src/main/java/org/openapitools/client/JSON.java b/src/main/java/org/openapitools/client/JSON.java index 782fc8b..bb0644e 100644 --- a/src/main/java/org/openapitools/client/JSON.java +++ b/src/main/java/org/openapitools/client/JSON.java @@ -23,11 +23,7 @@ import com.google.gson.JsonElement; import io.gsonfire.GsonFireBuilder; import io.gsonfire.TypeSelector; -import org.threeten.bp.LocalDate; -import org.threeten.bp.OffsetDateTime; -import org.threeten.bp.format.DateTimeFormatter; -import org.openapitools.client.model.*; import okio.ByteString; import java.io.IOException; @@ -36,19 +32,28 @@ import java.text.DateFormat; import java.text.ParseException; import java.text.ParsePosition; +import java.time.LocalDate; +import java.time.OffsetDateTime; +import java.time.format.DateTimeFormatter; import java.util.Date; import java.util.Locale; import java.util.Map; import java.util.HashMap; +/* + * A JSON utility class + * + * NOTE: in the future, this class may be converted to static, which may break + * backward-compatibility + */ public class JSON { - private Gson gson; - private boolean isLenientOnJson = false; - private DateTypeAdapter dateTypeAdapter = new DateTypeAdapter(); - private SqlDateTypeAdapter sqlDateTypeAdapter = new SqlDateTypeAdapter(); - private OffsetDateTimeTypeAdapter offsetDateTimeTypeAdapter = new OffsetDateTimeTypeAdapter(); - private LocalDateTypeAdapter localDateTypeAdapter = new LocalDateTypeAdapter(); - private ByteArrayAdapter byteArrayAdapter = new ByteArrayAdapter(); + private static Gson gson; + private static boolean isLenientOnJson = false; + private static DateTypeAdapter dateTypeAdapter = new DateTypeAdapter(); + private static SqlDateTypeAdapter sqlDateTypeAdapter = new SqlDateTypeAdapter(); + private static OffsetDateTimeTypeAdapter offsetDateTimeTypeAdapter = new OffsetDateTimeTypeAdapter(); + private static LocalDateTypeAdapter localDateTypeAdapter = new LocalDateTypeAdapter(); + private static ByteArrayAdapter byteArrayAdapter = new ByteArrayAdapter(); @SuppressWarnings("unchecked") public static GsonBuilder createGson() { @@ -81,14 +86,126 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri return clazz; } - public JSON() { - gson = createGson() - .registerTypeAdapter(Date.class, dateTypeAdapter) - .registerTypeAdapter(java.sql.Date.class, sqlDateTypeAdapter) - .registerTypeAdapter(OffsetDateTime.class, offsetDateTimeTypeAdapter) - .registerTypeAdapter(LocalDate.class, localDateTypeAdapter) - .registerTypeAdapter(byte[].class, byteArrayAdapter) - .create(); + { + GsonBuilder gsonBuilder = createGson(); + gsonBuilder.registerTypeAdapter(Date.class, dateTypeAdapter); + gsonBuilder.registerTypeAdapter(java.sql.Date.class, sqlDateTypeAdapter); + gsonBuilder.registerTypeAdapter(OffsetDateTime.class, offsetDateTimeTypeAdapter); + gsonBuilder.registerTypeAdapter(LocalDate.class, localDateTypeAdapter); + gsonBuilder.registerTypeAdapter(byte[].class, byteArrayAdapter); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.AWSAccessCredentials.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.Array.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.ArrayActivityLog.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.ArrayBrowserData.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.ArrayBrowserSidebar.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.ArrayEndTimestampData.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.ArrayFavorite.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.ArrayFavoritesData.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.ArrayInfo.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.ArrayInfoUpdate.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.ArrayMetadata.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.ArrayMetadataEntry.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.ArraySample.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.ArraySchema.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.ArraySharing.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.ArrayTask.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.ArrayTaskBrowserSidebar.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.ArrayTaskData.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.ArrayTaskLog.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.Attribute.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.AttributeBufferHeader.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.AttributeBufferSize.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.Dimension.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.DimensionCoordinate.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.DimensionTileExtent.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.Domain.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.DomainArray.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.Error.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.FileCreate.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.FileCreated.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.FileExport.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.FileExported.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.FileUploaded.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.Filter.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.FilterData.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.FilterPipeline.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.GenericUDF.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.GetTiledbStats200Response.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.GroupBrowserData.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.GroupBrowserFilterData.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.GroupChanges.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.GroupContents.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.GroupContentsFilterData.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.GroupCreate.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.GroupEntry.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.GroupInfo.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.GroupMember.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.GroupRegister.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.GroupSharing.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.GroupSharingRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.GroupUpdate.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.Invitation.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.InvitationArrayShareEmail.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.InvitationData.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.InvitationOrganizationJoinEmail.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.LastAccessedArray.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.MLModelFavorite.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.MLModelFavoritesData.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.MaxBufferSizes.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.MultiArrayUDF.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.NonEmptyDomain.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.NotebookCopied.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.NotebookCopy.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.NotebookFavorite.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.NotebookFavoritesData.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.NotebookStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.Organization.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.OrganizationUser.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.PaginationMetadata.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.Pricing.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.Query.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.QueryJson.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.QueryRanges.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.QueryReader.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.ReadState.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.RegisteredTaskGraph.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.RegisteredTaskGraphNode.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.ResetUserPasswordRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.SQLParameters.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.Subarray.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.SubarrayPartitioner.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.SubarrayPartitionerCurrent.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.SubarrayPartitionerState.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.SubarrayRanges.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.Subscription.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.TGInputNodeData.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.TGSQLNodeData.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.TGUDFArgument.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.TGUDFEnvironment.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.TGUDFNodeData.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.TaskGraphClientNodeStatus.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.TaskGraphLog.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.TaskGraphLogsData.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.TaskGraphNodeMetadata.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.TaskGraphSharing.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.TileDBConfig.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.Token.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.TokenRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.UDFArrayDetails.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.UDFCopied.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.UDFCopy.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.UDFFavorite.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.UDFFavoritesData.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.UDFImage.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.UDFImageVersion.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.UDFInfo.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.UDFInfoUpdate.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.UDFSharing.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.UDFSubarray.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.UDFSubarrayRange.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.User.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new org.openapitools.client.model.Writer.CustomTypeAdapterFactory()); + gson = gsonBuilder.create(); } /** @@ -96,7 +213,7 @@ public JSON() { * * @return Gson */ - public Gson getGson() { + public static Gson getGson() { return gson; } @@ -104,23 +221,13 @@ public Gson getGson() { * Set Gson. * * @param gson Gson - * @return JSON */ - public JSON setGson(Gson gson) { - this.gson = gson; - return this; + public static void setGson(Gson gson) { + JSON.gson = gson; } - /** - * Configure the parser to be liberal in what it accepts. - * - * @param lenientOnJson Set it to true to ignore some syntax errors - * @return JSON - * @see https://www.javadoc.io/doc/com.google.code.gson/gson/2.8.5/com/google/gson/stream/JsonReader.html - */ - public JSON setLenientOnJson(boolean lenientOnJson) { + public static void setLenientOnJson(boolean lenientOnJson) { isLenientOnJson = lenientOnJson; - return this; } /** @@ -129,7 +236,7 @@ public JSON setLenientOnJson(boolean lenientOnJson) { * @param obj Object * @return String representation of the JSON */ - public String serialize(Object obj) { + public static String serialize(Object obj) { return gson.toJson(obj); } @@ -142,11 +249,11 @@ public String serialize(Object obj) { * @return The deserialized Java object */ @SuppressWarnings("unchecked") - public T deserialize(String body, Type returnType) { + public static T deserialize(String body, Type returnType) { try { if (isLenientOnJson) { JsonReader jsonReader = new JsonReader(new StringReader(body)); - // see https://www.javadoc.io/doc/com.google.code.gson/gson/2.8.5/com/google/gson/stream/JsonReader.html + // see https://google-gson.googlecode.com/svn/trunk/gson/docs/javadocs/com/google/gson/stream/JsonReader.html#setLenient(boolean) jsonReader.setLenient(true); return gson.fromJson(jsonReader, returnType); } else { @@ -166,7 +273,7 @@ public T deserialize(String body, Type returnType) { /** * Gson TypeAdapter for Byte Array type */ - public class ByteArrayAdapter extends TypeAdapter { + public static class ByteArrayAdapter extends TypeAdapter { @Override public void write(JsonWriter out, byte[] value) throws IOException { @@ -238,7 +345,7 @@ public OffsetDateTime read(JsonReader in) throws IOException { /** * Gson TypeAdapter for JSR310 LocalDate type */ - public class LocalDateTypeAdapter extends TypeAdapter { + public static class LocalDateTypeAdapter extends TypeAdapter { private DateTimeFormatter formatter; @@ -276,14 +383,12 @@ public LocalDate read(JsonReader in) throws IOException { } } - public JSON setOffsetDateTimeFormat(DateTimeFormatter dateFormat) { + public static void setOffsetDateTimeFormat(DateTimeFormatter dateFormat) { offsetDateTimeTypeAdapter.setFormat(dateFormat); - return this; } - public JSON setLocalDateFormat(DateTimeFormatter dateFormat) { + public static void setLocalDateFormat(DateTimeFormatter dateFormat) { localDateTypeAdapter.setFormat(dateFormat); - return this; } /** @@ -397,14 +502,11 @@ public Date read(JsonReader in) throws IOException { } } - public JSON setDateFormat(DateFormat dateFormat) { + public static void setDateFormat(DateFormat dateFormat) { dateTypeAdapter.setFormat(dateFormat); - return this; } - public JSON setSqlDateFormat(DateFormat dateFormat) { + public static void setSqlDateFormat(DateFormat dateFormat) { sqlDateTypeAdapter.setFormat(dateFormat); - return this; } - } diff --git a/src/main/java/org/openapitools/client/Pair.java b/src/main/java/org/openapitools/client/Pair.java index a475322..4c63ae9 100644 --- a/src/main/java/org/openapitools/client/Pair.java +++ b/src/main/java/org/openapitools/client/Pair.java @@ -13,7 +13,7 @@ package org.openapitools.client; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class Pair { private String name = ""; private String value = ""; diff --git a/src/main/java/org/openapitools/client/ServerConfiguration.java b/src/main/java/org/openapitools/client/ServerConfiguration.java index e08da9a..ca5c118 100644 --- a/src/main/java/org/openapitools/client/ServerConfiguration.java +++ b/src/main/java/org/openapitools/client/ServerConfiguration.java @@ -39,7 +39,7 @@ public String URL(Map variables) { if (variables != null && variables.containsKey(name)) { value = variables.get(name); if (serverVariable.enumValues.size() > 0 && !serverVariable.enumValues.contains(value)) { - throw new RuntimeException("The variable " + name + " in the server URL has invalid value " + value + "."); + throw new IllegalArgumentException("The variable " + name + " in the server URL has invalid value " + value + "."); } } url = url.replaceAll("\\{" + name + "\\}", value); diff --git a/src/main/java/org/openapitools/client/StringUtil.java b/src/main/java/org/openapitools/client/StringUtil.java index d8d82cc..6ec08cd 100644 --- a/src/main/java/org/openapitools/client/StringUtil.java +++ b/src/main/java/org/openapitools/client/StringUtil.java @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+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/org/openapitools/client/api/ArrayApi.java b/src/main/java/org/openapitools/client/api/ArrayApi.java index 221998a..3c9cacf 100644 --- a/src/main/java/org/openapitools/client/api/ArrayApi.java +++ b/src/main/java/org/openapitools/client/api/ArrayApi.java @@ -49,6 +49,7 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import javax.ws.rs.core.GenericType; public class ArrayApi { private ApiClient localVarApiClient; @@ -108,7 +109,6 @@ public void setCustomBaseUrl(String customBaseUrl) { */ public okhttp3.Call arrayActivityLogCall(String namespace, String array, Integer start, Integer end, String eventTypes, String taskId, Boolean hasTaskId, final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -294,7 +294,6 @@ public okhttp3.Call arrayActivityLogAsync(String namespace, String array, Intege */ public okhttp3.Call arraysBrowserOwnedGetCall(Integer page, Integer perPage, String search, String namespace, String orderby, String permissions, List tag, List excludeTag, List fileType, List excludeFileType, List fileProperty, final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -493,7 +492,6 @@ public okhttp3.Call arraysBrowserOwnedGetAsync(Integer page, Integer perPage, St */ public okhttp3.Call arraysBrowserOwnedSidebarGetCall(final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -626,7 +624,6 @@ public okhttp3.Call arraysBrowserOwnedSidebarGetAsync(final ApiCallback tag, List excludeTag, List fileType, List excludeFileType, List fileProperty, final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -825,7 +822,6 @@ public okhttp3.Call arraysBrowserPublicGetAsync(Integer page, Integer perPage, S */ public okhttp3.Call arraysBrowserPublicSidebarGetCall(final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -946,6 +942,7 @@ public okhttp3.Call arraysBrowserPublicSidebarGetAsync(final ApiCallback 0 error response - */ - public okhttp3.Call arraysBrowserSharedGetCall(Integer page, Integer perPage, String search, String namespace, String orderby, String permissions, List tag, List excludeTag, List fileType, List excludeFileType, List fileProperty, final ApiCallback _callback) throws ApiException { + public okhttp3.Call arraysBrowserSharedGetCall(Integer page, Integer perPage, String search, String namespace, String orderby, String permissions, List tag, List excludeTag, List fileType, List excludeFileType, List fileProperty, List sharedTo, final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -1026,6 +1022,10 @@ public okhttp3.Call arraysBrowserSharedGetCall(Integer page, Integer perPage, St localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "file_property", fileProperty)); } + if (sharedTo != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "shared_to", sharedTo)); + } + final String[] localVarAccepts = { "application/json" }; @@ -1047,10 +1047,10 @@ public okhttp3.Call arraysBrowserSharedGetCall(Integer page, Integer perPage, St } @SuppressWarnings("rawtypes") - private okhttp3.Call arraysBrowserSharedGetValidateBeforeCall(Integer page, Integer perPage, String search, String namespace, String orderby, String permissions, List tag, List excludeTag, List fileType, List excludeFileType, List fileProperty, final ApiCallback _callback) throws ApiException { + private okhttp3.Call arraysBrowserSharedGetValidateBeforeCall(Integer page, Integer perPage, String search, String namespace, String orderby, String permissions, List tag, List excludeTag, List fileType, List excludeFileType, List fileProperty, List sharedTo, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = arraysBrowserSharedGetCall(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, _callback); + okhttp3.Call localVarCall = arraysBrowserSharedGetCall(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, sharedTo, _callback); return localVarCall; } @@ -1069,6 +1069,7 @@ private okhttp3.Call arraysBrowserSharedGetValidateBeforeCall(Integer page, Inte * @param fileType file_type to search for, more than one can be included (optional) * @param excludeFileType file_type to exclude matching array in results, more than one can be included (optional) * @param fileProperty file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included (optional) + * @param sharedTo namespaces to filter results of where there arrays were shared to (optional) * @return ArrayBrowserData * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1078,8 +1079,8 @@ private okhttp3.Call arraysBrowserSharedGetValidateBeforeCall(Integer page, Inte 0 error response - */ - public ArrayBrowserData arraysBrowserSharedGet(Integer page, Integer perPage, String search, String namespace, String orderby, String permissions, List tag, List excludeTag, List fileType, List excludeFileType, List fileProperty) throws ApiException { - ApiResponse localVarResp = arraysBrowserSharedGetWithHttpInfo(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty); + public ArrayBrowserData arraysBrowserSharedGet(Integer page, Integer perPage, String search, String namespace, String orderby, String permissions, List tag, List excludeTag, List fileType, List excludeFileType, List fileProperty, List sharedTo) throws ApiException { + ApiResponse localVarResp = arraysBrowserSharedGetWithHttpInfo(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, sharedTo); return localVarResp.getData(); } @@ -1097,6 +1098,7 @@ public ArrayBrowserData arraysBrowserSharedGet(Integer page, Integer perPage, St * @param fileType file_type to search for, more than one can be included (optional) * @param excludeFileType file_type to exclude matching array in results, more than one can be included (optional) * @param fileProperty file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included (optional) + * @param sharedTo namespaces to filter results of where there arrays were shared to (optional) * @return ApiResponse<ArrayBrowserData> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1106,8 +1108,8 @@ public ArrayBrowserData arraysBrowserSharedGet(Integer page, Integer perPage, St 0 error response - */ - public ApiResponse arraysBrowserSharedGetWithHttpInfo(Integer page, Integer perPage, String search, String namespace, String orderby, String permissions, List tag, List excludeTag, List fileType, List excludeFileType, List fileProperty) throws ApiException { - okhttp3.Call localVarCall = arraysBrowserSharedGetValidateBeforeCall(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, null); + public ApiResponse arraysBrowserSharedGetWithHttpInfo(Integer page, Integer perPage, String search, String namespace, String orderby, String permissions, List tag, List excludeTag, List fileType, List excludeFileType, List fileProperty, List sharedTo) throws ApiException { + okhttp3.Call localVarCall = arraysBrowserSharedGetValidateBeforeCall(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, sharedTo, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1126,6 +1128,7 @@ public ApiResponse arraysBrowserSharedGetWithHttpInfo(Integer * @param fileType file_type to search for, more than one can be included (optional) * @param excludeFileType file_type to exclude matching array in results, more than one can be included (optional) * @param fileProperty file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included (optional) + * @param sharedTo namespaces to filter results of where there arrays were shared to (optional) * @param _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 @@ -1136,9 +1139,9 @@ public ApiResponse arraysBrowserSharedGetWithHttpInfo(Integer 0 error response - */ - public okhttp3.Call arraysBrowserSharedGetAsync(Integer page, Integer perPage, String search, String namespace, String orderby, String permissions, List tag, List excludeTag, List fileType, List excludeFileType, List fileProperty, final ApiCallback _callback) throws ApiException { + public okhttp3.Call arraysBrowserSharedGetAsync(Integer page, Integer perPage, String search, String namespace, String orderby, String permissions, List tag, List excludeTag, List fileType, List excludeFileType, List fileProperty, List sharedTo, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = arraysBrowserSharedGetValidateBeforeCall(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, _callback); + okhttp3.Call localVarCall = arraysBrowserSharedGetValidateBeforeCall(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, sharedTo, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -1157,7 +1160,6 @@ public okhttp3.Call arraysBrowserSharedGetAsync(Integer page, Integer perPage, S */ public okhttp3.Call arraysBrowserSharedSidebarGetCall(final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -1283,7 +1285,6 @@ public okhttp3.Call arraysBrowserSharedSidebarGetAsync(final ApiCallback tag, List excludeTag, List memberType, List excludeMemberType, final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -868,7 +864,6 @@ public okhttp3.Call getGroupContentsAsync(String groupNamespace, String groupNam */ public okhttp3.Call getGroupSharingPoliciesCall(String groupNamespace, String groupName, final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -1011,7 +1006,6 @@ public okhttp3.Call getGroupSharingPoliciesAsync(String groupNamespace, String g */ public okhttp3.Call groupsBrowserOwnedFiltersGetCall(final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -1133,7 +1127,6 @@ public okhttp3.Call groupsBrowserOwnedFiltersGetAsync(final ApiCallback tag, List excludeTag, Boolean flat, String parent, final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -1731,7 +1721,6 @@ public okhttp3.Call listOwnedGroupsAsync(Integer page, Integer perPage, String s */ 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 { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -1921,6 +1910,7 @@ public okhttp3.Call listPublicGroupsAsync(Integer page, Integer perPage, String * @param excludeTag tags to exclude matching array in results, more than one can be included (optional) * @param flat if true, ignores the nesting of groups and searches all of them (optional) * @param parent search only the children of the groups with this uuid (optional) + * @param 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 @@ -1931,9 +1921,8 @@ public okhttp3.Call listPublicGroupsAsync(Integer page, Integer perPage, String 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, final ApiCallback _callback) throws ApiException { + 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 { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -1997,6 +1986,10 @@ public okhttp3.Call listSharedGroupsCall(Integer page, Integer perPage, String s localVarQueryParams.addAll(localVarApiClient.parameterToPair("parent", parent)); } + if (sharedTo != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "shared_to", sharedTo)); + } + final String[] localVarAccepts = { "application/json" }; @@ -2018,10 +2011,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, final ApiCallback _callback) throws ApiException { + 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 { - okhttp3.Call localVarCall = listSharedGroupsCall(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, _callback); + okhttp3.Call localVarCall = listSharedGroupsCall(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, sharedTo, _callback); return localVarCall; } @@ -2039,6 +2032,7 @@ private okhttp3.Call listSharedGroupsValidateBeforeCall(Integer page, Integer pe * @param excludeTag tags to exclude matching array in results, more than one can be included (optional) * @param flat if true, ignores the nesting of groups and searches all of them (optional) * @param parent search only the children of the groups with this uuid (optional) + * @param sharedTo namespaces to filter results of where there groups were shared to (optional) * @return GroupBrowserData * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2048,8 +2042,8 @@ private okhttp3.Call listSharedGroupsValidateBeforeCall(Integer page, Integer pe 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) throws ApiException { - ApiResponse localVarResp = listSharedGroupsWithHttpInfo(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, flat, parent); + 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); return localVarResp.getData(); } @@ -2066,6 +2060,7 @@ public GroupBrowserData listSharedGroups(Integer page, Integer perPage, String s * @param excludeTag tags to exclude matching array in results, more than one can be included (optional) * @param flat if true, ignores the nesting of groups and searches all of them (optional) * @param parent search only the children of the groups with this uuid (optional) + * @param sharedTo namespaces to filter results of where there groups were shared to (optional) * @return ApiResponse<GroupBrowserData> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2075,8 +2070,8 @@ public GroupBrowserData listSharedGroups(Integer page, Integer perPage, String s 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) throws ApiException { - okhttp3.Call localVarCall = listSharedGroupsValidateBeforeCall(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, null); + 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); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -2094,6 +2089,7 @@ public ApiResponse listSharedGroupsWithHttpInfo(Integer page, * @param excludeTag tags to exclude matching array in results, more than one can be included (optional) * @param flat if true, ignores the nesting of groups and searches all of them (optional) * @param parent search only the children of the groups with this uuid (optional) + * @param 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 @@ -2104,9 +2100,9 @@ public ApiResponse listSharedGroupsWithHttpInfo(Integer page, 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, final ApiCallback _callback) throws ApiException { + 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 { - okhttp3.Call localVarCall = listSharedGroupsValidateBeforeCall(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, _callback); + okhttp3.Call localVarCall = listSharedGroupsValidateBeforeCall(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, sharedTo, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -2128,7 +2124,6 @@ public okhttp3.Call listSharedGroupsAsync(Integer page, Integer perPage, String */ public okhttp3.Call registerGroupCall(String namespace, String array, GroupRegister groupRegister, final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -2271,7 +2266,6 @@ public okhttp3.Call registerGroupAsync(String namespace, String array, GroupRegi */ public okhttp3.Call shareGroupCall(String groupNamespace, String groupName, GroupSharingRequest groupSharingRequest, final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -2421,7 +2415,6 @@ public okhttp3.Call shareGroupAsync(String groupNamespace, String groupName, Gro */ public okhttp3.Call updateGroupCall(String groupNamespace, String groupName, GroupUpdate groupUpdate, final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; diff --git a/src/main/java/org/openapitools/client/api/InvitationApi.java b/src/main/java/org/openapitools/client/api/InvitationApi.java index 4abbdfa..58029e3 100644 --- a/src/main/java/org/openapitools/client/api/InvitationApi.java +++ b/src/main/java/org/openapitools/client/api/InvitationApi.java @@ -37,6 +37,7 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import javax.ws.rs.core.GenericType; public class InvitationApi { private ApiClient localVarApiClient; @@ -91,7 +92,6 @@ public void setCustomBaseUrl(String customBaseUrl) { */ public okhttp3.Call acceptInvitationCall(String invitation, final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -224,7 +224,6 @@ public okhttp3.Call acceptInvitationAsync(String invitation, final ApiCallback @@ -152,15 +152,15 @@ private okhttp3.Call getTiledbStatsValidateBeforeCall(final ApiCallback _callbac 0 error response - */ - public InlineResponse200 getTiledbStats() throws ApiException { - ApiResponse localVarResp = getTiledbStatsWithHttpInfo(); + public GetTiledbStats200Response getTiledbStats() throws ApiException { + ApiResponse localVarResp = getTiledbStatsWithHttpInfo(); return localVarResp.getData(); } /** * * Fetch libtiledb stat - * @return ApiResponse<InlineResponse200> + * @return ApiResponse<GetTiledbStats200Response> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -169,9 +169,9 @@ public InlineResponse200 getTiledbStats() throws ApiException {
0 error response -
*/ - public ApiResponse getTiledbStatsWithHttpInfo() throws ApiException { + public ApiResponse getTiledbStatsWithHttpInfo() throws ApiException { okhttp3.Call localVarCall = getTiledbStatsValidateBeforeCall(null); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -188,10 +188,10 @@ public ApiResponse getTiledbStatsWithHttpInfo() throws ApiExc 0 error response - */ - public okhttp3.Call getTiledbStatsAsync(final ApiCallback _callback) throws ApiException { + public okhttp3.Call getTiledbStatsAsync(final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getTiledbStatsValidateBeforeCall(_callback); - Type localVarReturnType = new TypeToken(){}.getType(); + Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } diff --git a/src/main/java/org/openapitools/client/api/TaskGraphLogsApi.java b/src/main/java/org/openapitools/client/api/TaskGraphLogsApi.java index 46295ff..0dc078f 100644 --- a/src/main/java/org/openapitools/client/api/TaskGraphLogsApi.java +++ b/src/main/java/org/openapitools/client/api/TaskGraphLogsApi.java @@ -28,7 +28,7 @@ import org.openapitools.client.model.Error; -import org.threeten.bp.OffsetDateTime; +import java.time.OffsetDateTime; import org.openapitools.client.model.TaskGraphClientNodeStatus; import org.openapitools.client.model.TaskGraphLog; import org.openapitools.client.model.TaskGraphLogsData; @@ -38,6 +38,7 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import javax.ws.rs.core.GenericType; public class TaskGraphLogsApi { private ApiClient localVarApiClient; @@ -92,7 +93,6 @@ public void setCustomBaseUrl(String customBaseUrl) { */ public okhttp3.Call createTaskGraphLogCall(String namespace, TaskGraphLog log, final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -233,7 +233,6 @@ public okhttp3.Call createTaskGraphLogAsync(String namespace, TaskGraphLog log, */ public okhttp3.Call getTaskGraphLogCall(String namespace, String id, final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -380,7 +379,6 @@ public okhttp3.Call getTaskGraphLogAsync(String namespace, String id, final ApiC */ public okhttp3.Call listTaskGraphLogsCall(String namespace, String createdBy, String search, OffsetDateTime startTime, OffsetDateTime endTime, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -554,7 +552,6 @@ public okhttp3.Call listTaskGraphLogsAsync(String namespace, String createdBy, S */ public okhttp3.Call reportClientNodeCall(String namespace, String id, TaskGraphClientNodeStatus report, final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -701,7 +698,6 @@ public okhttp3.Call reportClientNodeAsync(String namespace, String id, TaskGraph */ public okhttp3.Call updateTaskGraphLogCall(String namespace, String id, TaskGraphLog log, final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; diff --git a/src/main/java/org/openapitools/client/api/TasksApi.java b/src/main/java/org/openapitools/client/api/TasksApi.java index 48654ea..2e5401d 100644 --- a/src/main/java/org/openapitools/client/api/TasksApi.java +++ b/src/main/java/org/openapitools/client/api/TasksApi.java @@ -37,6 +37,7 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import javax.ws.rs.core.GenericType; public class TasksApi { private ApiClient localVarApiClient; @@ -93,7 +94,6 @@ public void setCustomBaseUrl(String customBaseUrl) { */ public okhttp3.Call runSQLCall(String namespace, SQLParameters sql, String acceptEncoding, final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -243,7 +243,6 @@ public okhttp3.Call runSQLAsync(String namespace, SQLParameters sql, String acce */ public okhttp3.Call taskIdGetCall(String id, final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -378,7 +377,6 @@ public okhttp3.Call taskIdGetAsync(String id, final ApiCallback _call */ public okhttp3.Call taskIdResultGetCall(String id, String acceptEncoding, final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -536,7 +534,6 @@ public okhttp3.Call taskIdResultGetAsync(String id, String acceptEncoding, final */ public okhttp3.Call tasksGetCall(String namespace, String createdBy, String array, Integer start, Integer end, Integer page, Integer perPage, String type, List excludeType, List fileType, List excludeFileType, String status, String search, String orderby, final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; diff --git a/src/main/java/org/openapitools/client/api/UdfApi.java b/src/main/java/org/openapitools/client/api/UdfApi.java index fb036f4..d7d12b2 100644 --- a/src/main/java/org/openapitools/client/api/UdfApi.java +++ b/src/main/java/org/openapitools/client/api/UdfApi.java @@ -43,6 +43,7 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import javax.ws.rs.core.GenericType; public class UdfApi { private ApiClient localVarApiClient; @@ -97,7 +98,6 @@ public void setCustomBaseUrl(String customBaseUrl) { */ public okhttp3.Call deleteUDFInfoCall(String namespace, String name, final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -236,7 +236,6 @@ public okhttp3.Call deleteUDFInfoAsync(String namespace, String name, final ApiC */ public okhttp3.Call getUDFInfoCall(String namespace, String name, final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -382,7 +381,6 @@ public okhttp3.Call getUDFInfoAsync(String namespace, String name, final ApiCall */ public okhttp3.Call getUDFInfoSharingPoliciesCall(String namespace, String name, final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -530,7 +528,6 @@ public okhttp3.Call getUDFInfoSharingPoliciesAsync(String namespace, String name */ public okhttp3.Call handleCopyUDFCall(String namespace, String name, UDFCopy udFCopy, String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, Integer endTimestamp, final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -695,7 +692,6 @@ public okhttp3.Call handleCopyUDFAsync(String namespace, String name, UDFCopy ud */ public okhttp3.Call registerUDFInfoCall(String namespace, String name, UDFInfoUpdate udf, final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -843,7 +839,6 @@ public okhttp3.Call registerUDFInfoAsync(String namespace, String name, UDFInfoU */ public okhttp3.Call shareUDFInfoCall(String namespace, String name, UDFSharing udfSharing, final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -993,7 +988,6 @@ public okhttp3.Call shareUDFInfoAsync(String namespace, String name, UDFSharing */ public okhttp3.Call submitGenericUDFCall(String namespace, GenericUDF udf, String acceptEncoding, final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -1142,7 +1136,6 @@ public okhttp3.Call submitGenericUDFAsync(String namespace, GenericUDF udf, Stri */ public okhttp3.Call submitMultiArrayUDFCall(String namespace, MultiArrayUDF udf, String acceptEncoding, final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -1294,7 +1287,6 @@ public okhttp3.Call submitMultiArrayUDFAsync(String namespace, MultiArrayUDF udf */ public okhttp3.Call submitUDFCall(String namespace, String array, MultiArrayUDF udf, String xPayer, String acceptEncoding, String v2, final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -1467,7 +1459,6 @@ public okhttp3.Call submitUDFAsync(String namespace, String array, MultiArrayUDF */ public okhttp3.Call udfNamespaceArrayEndTimestampsGetCall(String namespace, String array, Integer page, Integer perPage, final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -1624,7 +1615,6 @@ public okhttp3.Call udfNamespaceArrayEndTimestampsGetAsync(String namespace, Str */ public okhttp3.Call updateUDFInfoCall(String namespace, String name, UDFInfoUpdate udf, final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; diff --git a/src/main/java/org/openapitools/client/api/UserApi.java b/src/main/java/org/openapitools/client/api/UserApi.java index 98135d3..7d1ccbe 100644 --- a/src/main/java/org/openapitools/client/api/UserApi.java +++ b/src/main/java/org/openapitools/client/api/UserApi.java @@ -29,8 +29,8 @@ import org.openapitools.client.model.AWSAccessCredentials; import org.openapitools.client.model.Error; -import org.openapitools.client.model.InlineObject; import org.openapitools.client.model.OrganizationUser; +import org.openapitools.client.model.ResetUserPasswordRequest; import org.openapitools.client.model.Token; import org.openapitools.client.model.TokenRequest; import org.openapitools.client.model.TokenScope; @@ -41,6 +41,7 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import javax.ws.rs.core.GenericType; public class UserApi { private ApiClient localVarApiClient; @@ -95,7 +96,6 @@ public void setCustomBaseUrl(String customBaseUrl) { */ public okhttp3.Call addAWSAccessCredentialsCall(String namespace, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -232,7 +232,6 @@ public okhttp3.Call addAWSAccessCredentialsAsync(String namespace, AWSAccessCred */ public okhttp3.Call addUserToOrganizationCall(String organization, OrganizationUser user, final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -368,7 +367,6 @@ public okhttp3.Call addUserToOrganizationAsync(String organization, Organization */ public okhttp3.Call checkAWSAccessCredentialsCall(String namespace, final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -501,7 +499,6 @@ public okhttp3.Call checkAWSAccessCredentialsAsync(String namespace, final ApiCa */ public okhttp3.Call checkAWSAccessCredentialsByNameCall(String namespace, String name, final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -641,7 +638,6 @@ public okhttp3.Call checkAWSAccessCredentialsByNameAsync(String namespace, Strin */ public okhttp3.Call confirmEmailCall(final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -760,7 +756,6 @@ public okhttp3.Call confirmEmailAsync(final ApiCallback _callback) throws */ public okhttp3.Call createUserCall(User user, final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -888,7 +883,6 @@ public okhttp3.Call createUserAsync(User user, final ApiCallback _callback */ public okhttp3.Call deleteAWSAccessCredentialsCall(String namespace, String name, final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -1025,7 +1019,6 @@ public okhttp3.Call deleteAWSAccessCredentialsAsync(String namespace, String nam */ public okhttp3.Call deleteUserCall(String username, final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -1154,7 +1147,6 @@ public okhttp3.Call deleteUserAsync(String username, final ApiCallback _ca */ public okhttp3.Call deleteUserFromOrganizationCall(String organization, String username, final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -1293,7 +1285,6 @@ public okhttp3.Call deleteUserFromOrganizationAsync(String organization, String */ public okhttp3.Call getOrganizationUserCall(String organization, String username, final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -1437,7 +1428,6 @@ public okhttp3.Call getOrganizationUserAsync(String organization, String usernam */ public okhttp3.Call getSessionCall(String rememberMe, final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -1566,7 +1556,6 @@ public okhttp3.Call getSessionAsync(String rememberMe, final ApiCallback */ public okhttp3.Call getTokenScopesCall(final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -1688,7 +1677,6 @@ public okhttp3.Call getTokenScopesAsync(final ApiCallback> _cal */ public okhttp3.Call getUserCall(final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -1812,7 +1800,6 @@ public okhttp3.Call getUserAsync(final ApiCallback _callback) throws ApiEx */ public okhttp3.Call getUserWithUsernameCall(String username, final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -1947,7 +1934,6 @@ public okhttp3.Call getUserWithUsernameAsync(String username, final ApiCallback< */ public okhttp3.Call requestTokenCall(TokenRequest tokenRequest, final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -2060,7 +2046,7 @@ public okhttp3.Call requestTokenAsync(TokenRequest tokenRequest, final ApiCallba } /** * Build call for resetUserPassword - * @param user (required) + * @param user password to update for user requesting update (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -2072,9 +2058,8 @@ public okhttp3.Call requestTokenAsync(TokenRequest tokenRequest, final ApiCallba 0 error response - */ - public okhttp3.Call resetUserPasswordCall(InlineObject user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call resetUserPasswordCall(ResetUserPasswordRequest user, final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -2119,7 +2104,7 @@ public okhttp3.Call resetUserPasswordCall(InlineObject user, final ApiCallback _ } @SuppressWarnings("rawtypes") - private okhttp3.Call resetUserPasswordValidateBeforeCall(InlineObject user, final ApiCallback _callback) throws ApiException { + private okhttp3.Call resetUserPasswordValidateBeforeCall(ResetUserPasswordRequest user, final ApiCallback _callback) throws ApiException { // verify the required parameter 'user' is set if (user == null) { @@ -2135,7 +2120,7 @@ private okhttp3.Call resetUserPasswordValidateBeforeCall(InlineObject user, fina /** * * reset user password - * @param user (required) + * @param user password to update for user requesting update (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -2145,14 +2130,14 @@ private okhttp3.Call resetUserPasswordValidateBeforeCall(InlineObject user, fina
0 error response -
*/ - public void resetUserPassword(InlineObject user) throws ApiException { + public void resetUserPassword(ResetUserPasswordRequest user) throws ApiException { resetUserPasswordWithHttpInfo(user); } /** * * reset user password - * @param user (required) + * @param user password to update for user requesting update (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 @@ -2163,7 +2148,7 @@ public void resetUserPassword(InlineObject user) throws ApiException { 0 error response - */ - public ApiResponse resetUserPasswordWithHttpInfo(InlineObject user) throws ApiException { + public ApiResponse resetUserPasswordWithHttpInfo(ResetUserPasswordRequest user) throws ApiException { okhttp3.Call localVarCall = resetUserPasswordValidateBeforeCall(user, null); return localVarApiClient.execute(localVarCall); } @@ -2171,7 +2156,7 @@ public ApiResponse resetUserPasswordWithHttpInfo(InlineObject user) throws /** * (asynchronously) * reset user password - * @param user (required) + * @param user password to update for user requesting update (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -2183,7 +2168,7 @@ public ApiResponse resetUserPasswordWithHttpInfo(InlineObject user) throws 0 error response - */ - public okhttp3.Call resetUserPasswordAsync(InlineObject user, final ApiCallback _callback) throws ApiException { + public okhttp3.Call resetUserPasswordAsync(ResetUserPasswordRequest user, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = resetUserPasswordValidateBeforeCall(user, _callback); localVarApiClient.executeAsync(localVarCall, _callback); @@ -2204,7 +2189,6 @@ public okhttp3.Call resetUserPasswordAsync(InlineObject user, final ApiCallback< */ public okhttp3.Call revokeTokenCall(String token, final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -2331,7 +2315,6 @@ public okhttp3.Call revokeTokenAsync(String token, final ApiCallback _call */ public okhttp3.Call tokensGetCall(final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -2453,7 +2436,6 @@ public okhttp3.Call tokensGetAsync(final ApiCallback> _callback) thr */ public okhttp3.Call tokensSessionGetCall(final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -2578,7 +2560,6 @@ public okhttp3.Call tokensSessionGetAsync(final ApiCallback> _callba */ public okhttp3.Call updateAWSAccessCredentialsCall(String namespace, String name, AWSAccessCredentials awsAccessCredentials, final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -2724,7 +2705,6 @@ public okhttp3.Call updateAWSAccessCredentialsAsync(String namespace, String nam */ public okhttp3.Call updateUserCall(String username, User user, final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; @@ -2862,7 +2842,6 @@ public okhttp3.Call updateUserAsync(String username, User user, final ApiCallbac */ public okhttp3.Call updateUserInOrganizationCall(String organization, String username, OrganizationUser user, final ApiCallback _callback) throws ApiException { String basePath = null; - // Operation Servers String[] localBasePaths = new String[] { }; diff --git a/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java b/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java index e3e9dda..4c3d8b0 100644 --- a/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java +++ b/src/main/java/org/openapitools/client/auth/ApiKeyAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java b/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java index 2ba9156..c0ac053 100644 --- a/src/main/java/org/openapitools/client/auth/HttpBearerAuth.java +++ b/src/main/java/org/openapitools/client/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-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/src/main/java/org/openapitools/client/auth/OAuth.java b/src/main/java/org/openapitools/client/auth/OAuth.java index 044192b..22a34db 100644 --- a/src/main/java/org/openapitools/client/auth/OAuth.java +++ b/src/main/java/org/openapitools/client/auth/OAuth.java @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class OAuth implements Authentication { private String accessToken; diff --git a/src/main/java/org/openapitools/client/auth/OAuthFlow.java b/src/main/java/org/openapitools/client/auth/OAuthFlow.java index 73b97e1..713bd77 100644 --- a/src/main/java/org/openapitools/client/auth/OAuthFlow.java +++ b/src/main/java/org/openapitools/client/auth/OAuthFlow.java @@ -13,10 +13,13 @@ package org.openapitools.client.auth; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +/** + * 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]") public enum OAuthFlow { - accessCode, //called authorizationCode in OpenAPI 3.0 - implicit, - password, - application //called clientCredentials in OpenAPI 3.0 + ACCESS_CODE, //called authorizationCode in OpenAPI 3.0 + IMPLICIT, + PASSWORD, + APPLICATION //called clientCredentials in OpenAPI 3.0 } diff --git a/src/main/java/org/openapitools/client/auth/RetryingOAuth.java b/src/main/java/org/openapitools/client/auth/RetryingOAuth.java index 911df8d..2bd61d7 100644 --- a/src/main/java/org/openapitools/client/auth/RetryingOAuth.java +++ b/src/main/java/org/openapitools/client/auth/RetryingOAuth.java @@ -28,22 +28,31 @@ public class RetryingOAuth extends OAuth implements Interceptor { private TokenRequestBuilder tokenRequestBuilder; + /** + * @param client An OkHttp client + * @param tokenRequestBuilder A token request builder + */ public RetryingOAuth(OkHttpClient client, TokenRequestBuilder tokenRequestBuilder) { this.oAuthClient = new OAuthClient(new OAuthOkHttpClient(client)); this.tokenRequestBuilder = tokenRequestBuilder; } + /** + * @param tokenRequestBuilder A token request builder + */ public RetryingOAuth(TokenRequestBuilder tokenRequestBuilder) { this(new OkHttpClient(), tokenRequestBuilder); } /** - @param tokenUrl The token URL to be used for this OAuth2 flow. - Applicable to the following OAuth2 flows: "password", "clientCredentials" and "authorizationCode". - The value must be an absolute URL. - @param clientId The OAuth2 client ID for the "clientCredentials" flow. - @param clientSecret The OAuth2 client secret for the "clientCredentials" flow. - */ + * @param tokenUrl The token URL to be used for this OAuth2 flow. + * Applicable to the following OAuth2 flows: "password", "clientCredentials" and "authorizationCode". + * The value must be an absolute URL. + * @param clientId The OAuth2 client ID for the "clientCredentials" flow. + * @param flow OAuth flow. + * @param clientSecret The OAuth2 client secret for the "clientCredentials" flow. + * @param parameters A map of string. + */ public RetryingOAuth( String tokenUrl, String clientId, @@ -62,18 +71,23 @@ public RetryingOAuth( } } + /** + * Set the OAuth flow + * + * @param flow The OAuth flow. + */ public void setFlow(OAuthFlow flow) { switch(flow) { - case accessCode: + case ACCESS_CODE: tokenRequestBuilder.setGrantType(GrantType.AUTHORIZATION_CODE); break; - case implicit: + case IMPLICIT: tokenRequestBuilder.setGrantType(GrantType.IMPLICIT); break; - case password: + case PASSWORD: tokenRequestBuilder.setGrantType(GrantType.PASSWORD); break; - case application: + case APPLICATION: tokenRequestBuilder.setGrantType(GrantType.CLIENT_CREDENTIALS); break; default: @@ -147,8 +161,12 @@ private Response retryingIntercept(Chain chain, boolean updateTokenAndRetryOnAut } } - /* + /** * Returns true if the access token has been updated + * + * @param requestAccessToken the request access token + * @return True if the update is successful + * @throws java.io.IOException If fail to update the access token */ public synchronized boolean updateAccessToken(String requestAccessToken) throws IOException { if (getAccessToken() == null || getAccessToken().equals(requestAccessToken)) { @@ -165,10 +183,20 @@ public synchronized boolean updateAccessToken(String requestAccessToken) throws return getAccessToken() == null || !getAccessToken().equals(requestAccessToken); } + /** + * Gets the token request builder + * + * @return A token request builder + */ public TokenRequestBuilder getTokenRequestBuilder() { return tokenRequestBuilder; } + /** + * Sets the token request builder + * + * @param tokenRequestBuilder Token request builder + */ public void setTokenRequestBuilder(TokenRequestBuilder tokenRequestBuilder) { this.tokenRequestBuilder = tokenRequestBuilder; } diff --git a/src/main/java/org/openapitools/client/model/AWSAccessCredentials.java b/src/main/java/org/openapitools/client/model/AWSAccessCredentials.java index b4ca86b..93cec67 100644 --- a/src/main/java/org/openapitools/client/model/AWSAccessCredentials.java +++ b/src/main/java/org/openapitools/client/model/AWSAccessCredentials.java @@ -23,15 +23,35 @@ 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.threeten.bp.OffsetDateTime; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; /** * Model representing aws keys or service role, service roles are currently ignored, but will be preferred option in the future */ @ApiModel(description = "Model representing aws keys or service role, service roles are currently ignored, but will be preferred option in the future") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+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) @@ -201,7 +221,7 @@ public AWSAccessCredentials buckets(List buckets) { public AWSAccessCredentials addBucketsItem(String bucketsItem) { if (this.buckets == null) { - this.buckets = new ArrayList(); + this.buckets = new ArrayList<>(); } this.buckets.add(bucketsItem); return this; @@ -252,6 +272,7 @@ public OffsetDateTime getUpdatedAt() { + @Override public boolean equals(Object o) { if (this == o) { @@ -303,5 +324,113 @@ private String toIndentedString(Object o) { 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("secret_access_key"); + openapiFields.add("access_key_id"); + openapiFields.add("service_role_arn"); + openapiFields.add("name"); + openapiFields.add("default"); + openapiFields.add("buckets"); + openapiFields.add("created_at"); + openapiFields.add("updated_at"); + + // 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 AWSAccessCredentials + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (AWSAccessCredentials.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + throw new IllegalArgumentException(String.format("Expected the field `buckets` to be an array in the JSON string but got `%s`", jsonObj.get("buckets").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!AWSAccessCredentials.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AWSAccessCredentials' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AWSAccessCredentials.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AWSAccessCredentials value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AWSAccessCredentials read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of AWSAccessCredentials given an JSON string + * + * @param jsonString JSON string + * @return An instance of AWSAccessCredentials + * @throws IOException if the JSON string is invalid with respect to AWSAccessCredentials + */ + public static AWSAccessCredentials fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AWSAccessCredentials.class); + } + + /** + * Convert an instance of AWSAccessCredentials to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java b/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java new file mode 100644 index 0000000..f1f8378 --- /dev/null +++ b/src/main/java/org/openapitools/client/model/AbstractOpenApiSchema.java @@ -0,0 +1,149 @@ +/* + * 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 org.openapitools.client.model; + +import org.openapitools.client.ApiException; +import java.util.Objects; +import java.lang.reflect.Type; +import java.util.Map; +import javax.ws.rs.core.GenericType; + +//import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") +public abstract class AbstractOpenApiSchema { + + // store the actual instance of the schema/object + private Object instance; + + // is nullable + private Boolean isNullable; + + // schema type (e.g. oneOf, anyOf) + private final String schemaType; + + public AbstractOpenApiSchema(String schemaType, Boolean isNullable) { + this.schemaType = schemaType; + this.isNullable = isNullable; + } + + /** + * Get the list of oneOf/anyOf composed schemas allowed to be stored in this object + * + * @return an instance of the actual schema/object + */ + public abstract Map getSchemas(); + + /** + * Get the actual instance + * + * @return an instance of the actual schema/object + */ + //@JsonValue + public Object getActualInstance() {return instance;} + + /** + * Set the actual instance + * + * @param instance the actual instance of the schema/object + */ + public void setActualInstance(Object instance) {this.instance = instance;} + + /** + * Get the instant recursively when the schemas defined in oneOf/anyof happen to be oneOf/anyOf schema as well + * + * @return an instance of the actual schema/object + */ + public Object getActualInstanceRecursively() { + return getActualInstanceRecursively(this); + } + + private Object getActualInstanceRecursively(AbstractOpenApiSchema object) { + if (object.getActualInstance() == null) { + return null; + } else if (object.getActualInstance() instanceof AbstractOpenApiSchema) { + return getActualInstanceRecursively((AbstractOpenApiSchema)object.getActualInstance()); + } else { + return object.getActualInstance(); + } + } + + /** + * Get the schema type (e.g. anyOf, oneOf) + * + * @return the schema type + */ + public String getSchemaType() { + return schemaType; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ").append(getClass()).append(" {\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" isNullable: ").append(toIndentedString(isNullable)).append("\n"); + sb.append(" schemaType: ").append(toIndentedString(schemaType)).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 boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AbstractOpenApiSchema a = (AbstractOpenApiSchema) o; + return Objects.equals(this.instance, a.instance) && + Objects.equals(this.isNullable, a.isNullable) && + Objects.equals(this.schemaType, a.schemaType); + } + + @Override + public int hashCode() { + return Objects.hash(instance, isNullable, schemaType); + } + + /** + * Is nullable + * + * @return true if it's nullable + */ + public Boolean isNullable() { + if (Boolean.TRUE.equals(isNullable)) { + return Boolean.TRUE; + } else { + return Boolean.FALSE; + } + } + + + +} diff --git a/src/main/java/org/openapitools/client/model/Array.java b/src/main/java/org/openapitools/client/model/Array.java index c6824cd..83e1dcc 100644 --- a/src/main/java/org/openapitools/client/model/Array.java +++ b/src/main/java/org/openapitools/client/model/Array.java @@ -26,11 +26,31 @@ import java.math.BigDecimal; import org.openapitools.client.model.Querytype; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * Represents an open array */ @ApiModel(description = "Represents an open array") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class Array { public static final String SERIALIZED_NAME_TIMESTAMP = "timestamp"; @SerializedName(SERIALIZED_NAME_TIMESTAMP) @@ -116,6 +136,7 @@ public void setUri(String uri) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -157,5 +178,105 @@ private String toIndentedString(Object o) { 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("timestamp"); + openapiFields.add("queryType"); + openapiFields.add("uri"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("timestamp"); + openapiRequiredFields.add("queryType"); + openapiRequiredFields.add("uri"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to Array + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (Array.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in Array is not found in the empty JSON string", Array.openapiRequiredFields.toString())); + } + } + + 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()) { + 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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!Array.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Array' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(Array.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Array value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public Array read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of Array given an JSON string + * + * @param jsonString JSON string + * @return An instance of Array + * @throws IOException if the JSON string is invalid with respect to Array + */ + public static Array fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, Array.class); + } + + /** + * Convert an instance of Array to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/ArrayActivityLog.java b/src/main/java/org/openapitools/client/model/ArrayActivityLog.java index b03875a..65a8dfd 100644 --- a/src/main/java/org/openapitools/client/model/ArrayActivityLog.java +++ b/src/main/java/org/openapitools/client/model/ArrayActivityLog.java @@ -23,14 +23,34 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.time.OffsetDateTime; import org.openapitools.client.model.ActivityEventType; -import org.threeten.bp.OffsetDateTime; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; /** * Actvity of an Array */ @ApiModel(description = "Actvity of an Array") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class ArrayActivityLog { public static final String SERIALIZED_NAME_EVENT_AT = "event_at"; @SerializedName(SERIALIZED_NAME_EVENT_AT) @@ -278,6 +298,7 @@ public void setQueryStats(String queryStats) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -331,5 +352,113 @@ private String toIndentedString(Object o) { 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("event_at"); + openapiFields.add("action"); + openapiFields.add("username"); + openapiFields.add("bytes_sent"); + openapiFields.add("bytes_received"); + openapiFields.add("array_task_id"); + openapiFields.add("id"); + openapiFields.add("query_ranges"); + openapiFields.add("query_stats"); + + // 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 ArrayActivityLog + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (ArrayActivityLog.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in ArrayActivityLog is not found in the empty JSON string", ArrayActivityLog.openapiRequiredFields.toString())); + } + } + + 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()) { + throw new IllegalArgumentException(String.format("Expected the field `username` to be a primitive type in the JSON string but got `%s`", jsonObj.get("username").toString())); + } + if (jsonObj.get("array_task_id") != null && !jsonObj.get("array_task_id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `array_task_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("array_task_id").toString())); + } + if (jsonObj.get("id") != null && !jsonObj.get("id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); + } + if (jsonObj.get("query_ranges") != null && !jsonObj.get("query_ranges").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `query_ranges` to be a primitive type in the JSON string but got `%s`", jsonObj.get("query_ranges").toString())); + } + if (jsonObj.get("query_stats") != null && !jsonObj.get("query_stats").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `query_stats` to be a primitive type in the JSON string but got `%s`", jsonObj.get("query_stats").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ArrayActivityLog.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ArrayActivityLog' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ArrayActivityLog.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ArrayActivityLog value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ArrayActivityLog read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ArrayActivityLog given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArrayActivityLog + * @throws IOException if the JSON string is invalid with respect to ArrayActivityLog + */ + public static ArrayActivityLog fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ArrayActivityLog.class); + } + + /** + * Convert an instance of ArrayActivityLog to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/ArrayBrowserData.java b/src/main/java/org/openapitools/client/model/ArrayBrowserData.java index e40f98f..3e9ae8b 100644 --- a/src/main/java/org/openapitools/client/model/ArrayBrowserData.java +++ b/src/main/java/org/openapitools/client/model/ArrayBrowserData.java @@ -28,11 +28,31 @@ import org.openapitools.client.model.ArrayInfo; import org.openapitools.client.model.PaginationMetadata; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.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-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class ArrayBrowserData { public static final String SERIALIZED_NAME_ARRAYS = "arrays"; @SerializedName(SERIALIZED_NAME_ARRAYS) @@ -53,7 +73,7 @@ public ArrayBrowserData arrays(List arrays) { public ArrayBrowserData addArraysItem(ArrayInfo arraysItem) { if (this.arrays == null) { - this.arrays = new ArrayList(); + this.arrays = new ArrayList<>(); } this.arrays.add(arraysItem); return this; @@ -99,6 +119,7 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -138,5 +159,107 @@ private String toIndentedString(Object o) { 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("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 ArrayBrowserData + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (ArrayBrowserData.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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 + if (!jsonObj.get("arrays").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `arrays` to be an array in the JSON string but got `%s`", jsonObj.get("arrays").toString())); + } + + // validate the optional field `arrays` (array) + for (int i = 0; i < jsonArrayarrays.size(); i++) { + ArrayInfo.validateJsonObject(jsonArrayarrays.get(i).getAsJsonObject()); + }; + } + // validate the optional field `pagination_metadata` + if (jsonObj.getAsJsonObject("pagination_metadata") != null) { + PaginationMetadata.validateJsonObject(jsonObj.getAsJsonObject("pagination_metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ArrayBrowserData.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ArrayBrowserData' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ArrayBrowserData.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ArrayBrowserData value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ArrayBrowserData read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ArrayBrowserData given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArrayBrowserData + * @throws IOException if the JSON string is invalid with respect to ArrayBrowserData + */ + public static ArrayBrowserData fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ArrayBrowserData.class); + } + + /** + * Convert an instance of ArrayBrowserData to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/ArrayBrowserSidebar.java b/src/main/java/org/openapitools/client/model/ArrayBrowserSidebar.java index d43201d..d3a3fb9 100644 --- a/src/main/java/org/openapitools/client/model/ArrayBrowserSidebar.java +++ b/src/main/java/org/openapitools/client/model/ArrayBrowserSidebar.java @@ -26,11 +26,31 @@ import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * Object for ui array tasks browser page */ @ApiModel(description = "Object for ui array tasks browser page") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class ArrayBrowserSidebar { public static final String SERIALIZED_NAME_NAMESPACES = "namespaces"; @SerializedName(SERIALIZED_NAME_NAMESPACES) @@ -55,7 +75,7 @@ public ArrayBrowserSidebar namespaces(List namespaces) { public ArrayBrowserSidebar addNamespacesItem(String namespacesItem) { if (this.namespaces == null) { - this.namespaces = new ArrayList(); + this.namespaces = new ArrayList<>(); } this.namespaces.add(namespacesItem); return this; @@ -124,6 +144,7 @@ public void setResultCountByNamespace(Object resultCountByNamespace) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -165,5 +186,96 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("namespaces"); + openapiFields.add("result_count_for_all"); + openapiFields.add("result_count_by_namespace"); + + // 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 ArrayBrowserSidebar + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (ArrayBrowserSidebar.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + throw new IllegalArgumentException(String.format("Expected the field `namespaces` to be an array in the JSON string but got `%s`", jsonObj.get("namespaces").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ArrayBrowserSidebar.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ArrayBrowserSidebar' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ArrayBrowserSidebar.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ArrayBrowserSidebar value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ArrayBrowserSidebar read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ArrayBrowserSidebar given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArrayBrowserSidebar + * @throws IOException if the JSON string is invalid with respect to ArrayBrowserSidebar + */ + public static ArrayBrowserSidebar fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ArrayBrowserSidebar.class); + } + + /** + * Convert an instance of ArrayBrowserSidebar to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/ArrayEndTimestampData.java b/src/main/java/org/openapitools/client/model/ArrayEndTimestampData.java index f5b7ab0..5077654 100644 --- a/src/main/java/org/openapitools/client/model/ArrayEndTimestampData.java +++ b/src/main/java/org/openapitools/client/model/ArrayEndTimestampData.java @@ -27,11 +27,31 @@ import java.util.List; import org.openapitools.client.model.PaginationMetadata; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.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-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class ArrayEndTimestampData { public static final String SERIALIZED_NAME_END_TIMESTAMPS = "end_timestamps"; @SerializedName(SERIALIZED_NAME_END_TIMESTAMPS) @@ -52,7 +72,7 @@ public ArrayEndTimestampData endTimestamps(List endTimestamps) { public ArrayEndTimestampData addEndTimestampsItem(Integer endTimestampsItem) { if (this.endTimestamps == null) { - this.endTimestamps = new ArrayList(); + this.endTimestamps = new ArrayList<>(); } this.endTimestamps.add(endTimestampsItem); return this; @@ -98,6 +118,7 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -137,5 +158,99 @@ private String toIndentedString(Object o) { 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("end_timestamps"); + 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 ArrayEndTimestampData + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (ArrayEndTimestampData.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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) { + PaginationMetadata.validateJsonObject(jsonObj.getAsJsonObject("pagination_metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ArrayEndTimestampData.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ArrayEndTimestampData' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ArrayEndTimestampData.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ArrayEndTimestampData value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ArrayEndTimestampData read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ArrayEndTimestampData given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArrayEndTimestampData + * @throws IOException if the JSON string is invalid with respect to ArrayEndTimestampData + */ + public static ArrayEndTimestampData fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ArrayEndTimestampData.class); + } + + /** + * Convert an instance of ArrayEndTimestampData to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/ArrayFavorite.java b/src/main/java/org/openapitools/client/model/ArrayFavorite.java index 01451ae..9aa843a 100644 --- a/src/main/java/org/openapitools/client/model/ArrayFavorite.java +++ b/src/main/java/org/openapitools/client/model/ArrayFavorite.java @@ -24,11 +24,31 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * A user-favorite array item */ @ApiModel(description = "A user-favorite array item") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class ArrayFavorite { public static final String SERIALIZED_NAME_ARRAY_UUID = "array_uuid"; @SerializedName(SERIALIZED_NAME_ARRAY_UUID) @@ -114,6 +134,7 @@ public void setName(String name) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -155,5 +176,101 @@ private String toIndentedString(Object o) { 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_uuid"); + openapiFields.add("namespace"); + openapiFields.add("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 ArrayFavorite + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (ArrayFavorite.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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()) { + 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()) { + 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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ArrayFavorite.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ArrayFavorite' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ArrayFavorite.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ArrayFavorite value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ArrayFavorite read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ArrayFavorite given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArrayFavorite + * @throws IOException if the JSON string is invalid with respect to ArrayFavorite + */ + public static ArrayFavorite fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ArrayFavorite.class); + } + + /** + * Convert an instance of ArrayFavorite to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/ArrayFavoritesData.java b/src/main/java/org/openapitools/client/model/ArrayFavoritesData.java index 3db61ac..43faba6 100644 --- a/src/main/java/org/openapitools/client/model/ArrayFavoritesData.java +++ b/src/main/java/org/openapitools/client/model/ArrayFavoritesData.java @@ -28,11 +28,31 @@ import org.openapitools.client.model.ArrayInfo; import org.openapitools.client.model.PaginationMetadata; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * Object including array favorites and pagination metadata */ @ApiModel(description = "Object including array favorites and pagination metadata") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class ArrayFavoritesData { public static final String SERIALIZED_NAME_ARRAYS = "arrays"; @SerializedName(SERIALIZED_NAME_ARRAYS) @@ -53,7 +73,7 @@ public ArrayFavoritesData arrays(List arrays) { public ArrayFavoritesData addArraysItem(ArrayInfo arraysItem) { if (this.arrays == null) { - this.arrays = new ArrayList(); + this.arrays = new ArrayList<>(); } this.arrays.add(arraysItem); return this; @@ -99,6 +119,7 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -138,5 +159,107 @@ private String toIndentedString(Object o) { 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("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 ArrayFavoritesData + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (ArrayFavoritesData.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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 + if (!jsonObj.get("arrays").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `arrays` to be an array in the JSON string but got `%s`", jsonObj.get("arrays").toString())); + } + + // validate the optional field `arrays` (array) + for (int i = 0; i < jsonArrayarrays.size(); i++) { + ArrayInfo.validateJsonObject(jsonArrayarrays.get(i).getAsJsonObject()); + }; + } + // validate the optional field `pagination_metadata` + if (jsonObj.getAsJsonObject("pagination_metadata") != null) { + PaginationMetadata.validateJsonObject(jsonObj.getAsJsonObject("pagination_metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ArrayFavoritesData.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ArrayFavoritesData' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ArrayFavoritesData.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ArrayFavoritesData value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ArrayFavoritesData read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ArrayFavoritesData given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArrayFavoritesData + * @throws IOException if the JSON string is invalid with respect to ArrayFavoritesData + */ + public static ArrayFavoritesData fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ArrayFavoritesData.class); + } + + /** + * Convert an instance of ArrayFavoritesData to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/ArrayInfo.java b/src/main/java/org/openapitools/client/model/ArrayInfo.java index e929402..bfbcd1c 100644 --- a/src/main/java/org/openapitools/client/model/ArrayInfo.java +++ b/src/main/java/org/openapitools/client/model/ArrayInfo.java @@ -24,6 +24,7 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.math.BigDecimal; +import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.HashMap; import java.util.List; @@ -33,13 +34,32 @@ import org.openapitools.client.model.Pricing; import org.openapitools.client.model.Subscription; import org.openapitools.jackson.nullable.JsonNullable; -import org.threeten.bp.OffsetDateTime; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; /** * metadata of an array */ @ApiModel(description = "metadata of an array") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class ArrayInfo { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -202,7 +222,7 @@ public ArrayInfo fileProperties(Map fileProperties) { public ArrayInfo putFilePropertiesItem(String key, String filePropertiesItem) { if (this.fileProperties == null) { - this.fileProperties = new HashMap(); + this.fileProperties = new HashMap<>(); } this.fileProperties.put(key, filePropertiesItem); return this; @@ -371,7 +391,7 @@ public ArrayInfo allowedActions(List allowedActions) { public ArrayInfo addAllowedActionsItem(ArrayActions allowedActionsItem) { if (this.allowedActions == null) { - this.allowedActions = new ArrayList(); + this.allowedActions = new ArrayList<>(); } this.allowedActions.add(allowedActionsItem); return this; @@ -402,7 +422,7 @@ public ArrayInfo pricing(List pricing) { public ArrayInfo addPricingItem(Pricing pricingItem) { if (this.pricing == null) { - this.pricing = new ArrayList(); + this.pricing = new ArrayList<>(); } this.pricing.add(pricingItem); return this; @@ -433,7 +453,7 @@ public ArrayInfo subscriptions(List subscriptions) { public ArrayInfo addSubscriptionsItem(Subscription subscriptionsItem) { if (this.subscriptions == null) { - this.subscriptions = new ArrayList(); + this.subscriptions = new ArrayList<>(); } this.subscriptions.add(subscriptionsItem); return this; @@ -616,7 +636,7 @@ public ArrayInfo tags(List tags) { public ArrayInfo addTagsItem(String tagsItem) { if (this.tags == null) { - this.tags = new ArrayList(); + this.tags = new ArrayList<>(); } this.tags.add(tagsItem); return this; @@ -731,6 +751,7 @@ public void setIsFavorite(Boolean isFavorite) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -825,5 +846,178 @@ private String toIndentedString(Object o) { 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("file_type"); + openapiFields.add("file_properties"); + openapiFields.add("uri"); + openapiFields.add("namespace"); + openapiFields.add("size"); + openapiFields.add("last_accessed"); + openapiFields.add("description"); + openapiFields.add("name"); + openapiFields.add("allowed_actions"); + openapiFields.add("pricing"); + openapiFields.add("subscriptions"); + openapiFields.add("logo"); + openapiFields.add("access_credentials_name"); + openapiFields.add("type"); + openapiFields.add("share_count"); + openapiFields.add("public_share"); + openapiFields.add("namespace_subscribed"); + openapiFields.add("tiledb_uri"); + openapiFields.add("tags"); + openapiFields.add("license_id"); + openapiFields.add("license_text"); + openapiFields.add("read_only"); + openapiFields.add("is_favorite"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ArrayInfo + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (ArrayInfo.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + throw new IllegalArgumentException(String.format("Expected the field `allowed_actions` to be an array in the JSON string but got `%s`", jsonObj.get("allowed_actions").toString())); + } + JsonArray jsonArraypricing = jsonObj.getAsJsonArray("pricing"); + if (jsonArraypricing != null) { + // ensure the json data is an array + if (!jsonObj.get("pricing").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `pricing` to be an array in the JSON string but got `%s`", jsonObj.get("pricing").toString())); + } + + // validate the optional field `pricing` (array) + for (int i = 0; i < jsonArraypricing.size(); i++) { + Pricing.validateJsonObject(jsonArraypricing.get(i).getAsJsonObject()); + }; + } + JsonArray jsonArraysubscriptions = jsonObj.getAsJsonArray("subscriptions"); + if (jsonArraysubscriptions != null) { + // ensure the json data is an array + if (!jsonObj.get("subscriptions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `subscriptions` to be an array in the JSON string but got `%s`", jsonObj.get("subscriptions").toString())); + } + + // validate the optional field `subscriptions` (array) + for (int i = 0; i < jsonArraysubscriptions.size(); i++) { + Subscription.validateJsonObject(jsonArraysubscriptions.get(i).getAsJsonObject()); + }; + } + if (jsonObj.get("logo") != null && !jsonObj.get("logo").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()) { + 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()) { + 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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ArrayInfo.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ArrayInfo' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ArrayInfo.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ArrayInfo value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ArrayInfo read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ArrayInfo given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArrayInfo + * @throws IOException if the JSON string is invalid with respect to ArrayInfo + */ + public static ArrayInfo fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ArrayInfo.class); + } + + /** + * Convert an instance of ArrayInfo to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/ArrayInfoUpdate.java b/src/main/java/org/openapitools/client/model/ArrayInfoUpdate.java index ee66b09..ce3dc6e 100644 --- a/src/main/java/org/openapitools/client/model/ArrayInfoUpdate.java +++ b/src/main/java/org/openapitools/client/model/ArrayInfoUpdate.java @@ -30,11 +30,31 @@ import org.openapitools.client.model.FileType; import org.openapitools.jackson.nullable.JsonNullable; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * metadata of an array */ @ApiModel(description = "metadata of an array") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class ArrayInfoUpdate { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) @@ -183,7 +203,7 @@ public ArrayInfoUpdate fileProperties(Map fileProperties) { public ArrayInfoUpdate putFilePropertiesItem(String key, String filePropertiesItem) { if (this.fileProperties == null) { - this.fileProperties = new HashMap(); + this.fileProperties = new HashMap<>(); } this.fileProperties.put(key, filePropertiesItem); return this; @@ -260,7 +280,7 @@ public ArrayInfoUpdate tags(List tags) { public ArrayInfoUpdate addTagsItem(String tagsItem) { if (this.tags == null) { - this.tags = new ArrayList(); + this.tags = new ArrayList<>(); } this.tags.add(tagsItem); return this; @@ -352,6 +372,7 @@ public void setReadOnly(Boolean readOnly) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -420,5 +441,125 @@ private String toIndentedString(Object o) { 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("description"); + openapiFields.add("name"); + openapiFields.add("uri"); + openapiFields.add("file_type"); + openapiFields.add("file_properties"); + openapiFields.add("access_credentials_name"); + openapiFields.add("logo"); + openapiFields.add("tags"); + openapiFields.add("license_id"); + openapiFields.add("license_text"); + openapiFields.add("read_only"); + + // 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 ArrayInfoUpdate + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (ArrayInfoUpdate.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ArrayInfoUpdate.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ArrayInfoUpdate' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ArrayInfoUpdate.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ArrayInfoUpdate value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ArrayInfoUpdate read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ArrayInfoUpdate given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArrayInfoUpdate + * @throws IOException if the JSON string is invalid with respect to ArrayInfoUpdate + */ + public static ArrayInfoUpdate fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ArrayInfoUpdate.class); + } + + /** + * Convert an instance of ArrayInfoUpdate to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/ArrayMetadata.java b/src/main/java/org/openapitools/client/model/ArrayMetadata.java index 0721d9b..2a476af 100644 --- a/src/main/java/org/openapitools/client/model/ArrayMetadata.java +++ b/src/main/java/org/openapitools/client/model/ArrayMetadata.java @@ -27,11 +27,31 @@ import java.util.List; import org.openapitools.client.model.ArrayMetadataEntry; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * user's TileDB array metadata */ @ApiModel(description = "user's TileDB array metadata") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class ArrayMetadata { public static final String SERIALIZED_NAME_ENTRIES = "entries"; @SerializedName(SERIALIZED_NAME_ENTRIES) @@ -48,7 +68,7 @@ public ArrayMetadata entries(List entries) { public ArrayMetadata addEntriesItem(ArrayMetadataEntry entriesItem) { if (this.entries == null) { - this.entries = new ArrayList(); + this.entries = new ArrayList<>(); } this.entries.add(entriesItem); return this; @@ -71,6 +91,7 @@ public void setEntries(List entries) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -108,5 +129,102 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("entries"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ArrayMetadata + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (ArrayMetadata.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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 + if (!jsonObj.get("entries").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `entries` to be an array in the JSON string but got `%s`", jsonObj.get("entries").toString())); + } + + // validate the optional field `entries` (array) + for (int i = 0; i < jsonArrayentries.size(); i++) { + ArrayMetadataEntry.validateJsonObject(jsonArrayentries.get(i).getAsJsonObject()); + }; + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ArrayMetadata.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ArrayMetadata' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ArrayMetadata.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ArrayMetadata value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ArrayMetadata read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ArrayMetadata given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArrayMetadata + * @throws IOException if the JSON string is invalid with respect to ArrayMetadata + */ + public static ArrayMetadata fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ArrayMetadata.class); + } + + /** + * Convert an instance of ArrayMetadata to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/ArrayMetadataEntry.java b/src/main/java/org/openapitools/client/model/ArrayMetadataEntry.java index b4ab5d5..48678ef 100644 --- a/src/main/java/org/openapitools/client/model/ArrayMetadataEntry.java +++ b/src/main/java/org/openapitools/client/model/ArrayMetadataEntry.java @@ -26,11 +26,31 @@ import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * key/value pair representing an array metadata map entry */ @ApiModel(description = "key/value pair representing an array metadata map entry") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class ArrayMetadataEntry { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) @@ -132,7 +152,7 @@ public ArrayMetadataEntry value(List value) { public ArrayMetadataEntry addValueItem(Integer valueItem) { if (this.value == null) { - this.value = new ArrayList(); + this.value = new ArrayList<>(); } this.value.add(valueItem); return this; @@ -178,6 +198,7 @@ public void setDel(Boolean del) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -223,5 +244,104 @@ private String toIndentedString(Object o) { 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("type"); + openapiFields.add("valueNum"); + openapiFields.add("value"); + openapiFields.add("del"); + + // 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 ArrayMetadataEntry + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (ArrayMetadataEntry.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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()) { + 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()) { + throw new IllegalArgumentException(String.format("Expected the field `value` to be an array 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 (!ArrayMetadataEntry.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ArrayMetadataEntry' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ArrayMetadataEntry.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ArrayMetadataEntry value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ArrayMetadataEntry read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ArrayMetadataEntry given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArrayMetadataEntry + * @throws IOException if the JSON string is invalid with respect to ArrayMetadataEntry + */ + public static ArrayMetadataEntry fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ArrayMetadataEntry.class); + } + + /** + * Convert an instance of ArrayMetadataEntry to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/ArraySample.java b/src/main/java/org/openapitools/client/model/ArraySample.java index df80b41..2192ff9 100644 --- a/src/main/java/org/openapitools/client/model/ArraySample.java +++ b/src/main/java/org/openapitools/client/model/ArraySample.java @@ -24,11 +24,31 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * Sample data from array */ @ApiModel(description = "Sample data from array") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class ArraySample { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) @@ -60,6 +80,7 @@ public void setData(Object data) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -97,5 +118,90 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("data"); + + // 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 ArraySample + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (ArraySample.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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 { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ArraySample.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ArraySample' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ArraySample.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ArraySample value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ArraySample read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ArraySample given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArraySample + * @throws IOException if the JSON string is invalid with respect to ArraySample + */ + public static ArraySample fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ArraySample.class); + } + + /** + * Convert an instance of ArraySample to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/ArraySchema.java b/src/main/java/org/openapitools/client/model/ArraySchema.java index 3f44bb6..49d696c 100644 --- a/src/main/java/org/openapitools/client/model/ArraySchema.java +++ b/src/main/java/org/openapitools/client/model/ArraySchema.java @@ -31,11 +31,31 @@ import org.openapitools.client.model.FilterPipeline; import org.openapitools.client.model.Layout; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * ArraySchema during creation or retrieval */ @ApiModel(description = "ArraySchema during creation or retrieval") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class ArraySchema { public static final String SERIALIZED_NAME_URI = "uri"; @SerializedName(SERIALIZED_NAME_URI) @@ -43,7 +63,7 @@ public class ArraySchema { public static final String SERIALIZED_NAME_VERSION = "version"; @SerializedName(SERIALIZED_NAME_VERSION) - private List version = new ArrayList(); + private List version = new ArrayList<>(); public static final String SERIALIZED_NAME_ARRAY_TYPE = "arrayType"; @SerializedName(SERIALIZED_NAME_ARRAY_TYPE) @@ -75,7 +95,7 @@ public class ArraySchema { public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; @SerializedName(SERIALIZED_NAME_ATTRIBUTES) - private List attributes = new ArrayList(); + private List attributes = new ArrayList<>(); public static final String SERIALIZED_NAME_ALLOWS_DUPLICATES = "allowsDuplicates"; @SerializedName(SERIALIZED_NAME_ALLOWS_DUPLICATES) @@ -347,6 +367,7 @@ public void setAllowsDuplicates(Boolean allowsDuplicates) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -404,5 +425,147 @@ private String toIndentedString(Object o) { 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("version"); + openapiFields.add("arrayType"); + openapiFields.add("tileOrder"); + openapiFields.add("cellOrder"); + openapiFields.add("capacity"); + openapiFields.add("coordsFilterPipeline"); + openapiFields.add("offsetFilterPipeline"); + openapiFields.add("domain"); + openapiFields.add("attributes"); + openapiFields.add("allowsDuplicates"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("version"); + openapiRequiredFields.add("arrayType"); + openapiRequiredFields.add("tileOrder"); + openapiRequiredFields.add("cellOrder"); + openapiRequiredFields.add("capacity"); + openapiRequiredFields.add("coordsFilterPipeline"); + openapiRequiredFields.add("offsetFilterPipeline"); + openapiRequiredFields.add("domain"); + openapiRequiredFields.add("attributes"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ArraySchema + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (ArraySchema.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in ArraySchema is not found in the empty JSON string", ArraySchema.openapiRequiredFields.toString())); + } + } + + 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()) { + 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()) { + 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) { + FilterPipeline.validateJsonObject(jsonObj.getAsJsonObject("coordsFilterPipeline")); + } + // validate the optional field `offsetFilterPipeline` + if (jsonObj.getAsJsonObject("offsetFilterPipeline") != null) { + FilterPipeline.validateJsonObject(jsonObj.getAsJsonObject("offsetFilterPipeline")); + } + // validate the optional field `domain` + if (jsonObj.getAsJsonObject("domain") != null) { + Domain.validateJsonObject(jsonObj.getAsJsonObject("domain")); + } + JsonArray jsonArrayattributes = jsonObj.getAsJsonArray("attributes"); + if (jsonArrayattributes != null) { + // ensure the json data is an array + if (!jsonObj.get("attributes").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `attributes` to be an array in the JSON string but got `%s`", jsonObj.get("attributes").toString())); + } + + // validate the optional field `attributes` (array) + for (int i = 0; i < jsonArrayattributes.size(); i++) { + Attribute.validateJsonObject(jsonArrayattributes.get(i).getAsJsonObject()); + }; + } + } + + 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(); + } + } + + /** + * Create an instance of ArraySchema given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArraySchema + * @throws IOException if the JSON string is invalid with respect to ArraySchema + */ + public static ArraySchema fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ArraySchema.class); + } + + /** + * Convert an instance of ArraySchema to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/ArraySharing.java b/src/main/java/org/openapitools/client/model/ArraySharing.java index d85815d..f5e9ae8 100644 --- a/src/main/java/org/openapitools/client/model/ArraySharing.java +++ b/src/main/java/org/openapitools/client/model/ArraySharing.java @@ -27,11 +27,31 @@ import java.util.List; import org.openapitools.client.model.ArrayActions; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.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-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class ArraySharing { public static final String SERIALIZED_NAME_ACTIONS = "actions"; @SerializedName(SERIALIZED_NAME_ACTIONS) @@ -56,7 +76,7 @@ public ArraySharing actions(List actions) { public ArraySharing addActionsItem(ArrayActions actionsItem) { if (this.actions == null) { - this.actions = new ArrayList(); + this.actions = new ArrayList<>(); } this.actions.add(actionsItem); return this; @@ -125,6 +145,7 @@ public void setNamespaceType(String namespaceType) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -166,5 +187,102 @@ private String toIndentedString(Object o) { 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("actions"); + openapiFields.add("namespace"); + openapiFields.add("namespace_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 ArraySharing + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (ArraySharing.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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()) { + 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()) { + 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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ArraySharing.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ArraySharing' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ArraySharing.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ArraySharing value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ArraySharing read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ArraySharing given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArraySharing + * @throws IOException if the JSON string is invalid with respect to ArraySharing + */ + public static ArraySharing fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ArraySharing.class); + } + + /** + * Convert an instance of ArraySharing to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/ArrayTask.java b/src/main/java/org/openapitools/client/model/ArrayTask.java index 8496535..ab0c948 100644 --- a/src/main/java/org/openapitools/client/model/ArrayTask.java +++ b/src/main/java/org/openapitools/client/model/ArrayTask.java @@ -24,6 +24,7 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.math.BigDecimal; +import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.List; import org.openapitools.client.model.ArrayActivityLog; @@ -34,13 +35,32 @@ import org.openapitools.client.model.Querytype; import org.openapitools.client.model.ResultFormat; import org.openapitools.jackson.nullable.JsonNullable; -import org.threeten.bp.OffsetDateTime; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; /** * Synchronous Task to Run */ @ApiModel(description = "Synchronous Task to Run") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class ArrayTask { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -598,7 +618,7 @@ public ArrayTask activity(List activity) { public ArrayTask addActivityItem(ArrayActivityLog activityItem) { if (this.activity == null) { - this.activity = new ArrayList(); + this.activity = new ArrayList<>(); } this.activity.add(activityItem); return this; @@ -675,7 +695,7 @@ public ArrayTask sqlInitCommands(List sqlInitCommands) { public ArrayTask addSqlInitCommandsItem(String sqlInitCommandsItem) { if (this.sqlInitCommands == null) { - this.sqlInitCommands = new ArrayList(); + this.sqlInitCommands = new ArrayList<>(); } this.sqlInitCommands.add(sqlInitCommandsItem); return this; @@ -706,7 +726,7 @@ public ArrayTask sqlParameters(List sqlParameters) { public ArrayTask addSqlParametersItem(Object sqlParametersItem) { if (this.sqlParameters == null) { - this.sqlParameters = new ArrayList(); + this.sqlParameters = new ArrayList<>(); } this.sqlParameters.add(sqlParametersItem); return this; @@ -798,6 +818,7 @@ public void setClientNodeUuid(String clientNodeUuid) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -898,5 +919,174 @@ private String toIndentedString(Object o) { 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("description"); + openapiFields.add("array_metadata"); + openapiFields.add("subarray"); + openapiFields.add("memory"); + openapiFields.add("cpu"); + openapiFields.add("namespace"); + openapiFields.add("status"); + openapiFields.add("start_time"); + openapiFields.add("finish_time"); + openapiFields.add("cost"); + openapiFields.add("egress_cost"); + openapiFields.add("access_cost"); + openapiFields.add("query_type"); + openapiFields.add("udf_code"); + openapiFields.add("udf_language"); + openapiFields.add("sql_query"); + openapiFields.add("type"); + openapiFields.add("activity"); + openapiFields.add("logs"); + openapiFields.add("duration"); + openapiFields.add("sql_init_commands"); + openapiFields.add("sql_parameters"); + openapiFields.add("result_format"); + openapiFields.add("task_graph_uuid"); + openapiFields.add("client_node_uuid"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ArrayTask + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (ArrayTask.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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()) { + 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()) { + 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) { + ArrayInfo.validateJsonObject(jsonObj.getAsJsonObject("array_metadata")); + } + // validate the optional field `subarray` + if (jsonObj.getAsJsonObject("subarray") != null) { + DomainArray.validateJsonObject(jsonObj.getAsJsonObject("subarray")); + } + if (jsonObj.get("namespace") != null && !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()) { + 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()) { + 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()) { + throw new IllegalArgumentException(String.format("Expected the field `sql_query` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sql_query").toString())); + } + JsonArray jsonArrayactivity = jsonObj.getAsJsonArray("activity"); + if (jsonArrayactivity != null) { + // ensure the json data is an array + if (!jsonObj.get("activity").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `activity` to be an array in the JSON string but got `%s`", jsonObj.get("activity").toString())); + } + + // validate the optional field `activity` (array) + for (int i = 0; i < jsonArrayactivity.size(); i++) { + ArrayActivityLog.validateJsonObject(jsonArrayactivity.get(i).getAsJsonObject()); + }; + } + if (jsonObj.get("logs") != null && !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()) { + 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()) { + 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()) { + 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()) { + 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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ArrayTask.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ArrayTask' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ArrayTask.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ArrayTask value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ArrayTask read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ArrayTask given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArrayTask + * @throws IOException if the JSON string is invalid with respect to ArrayTask + */ + public static ArrayTask fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ArrayTask.class); + } + + /** + * Convert an instance of ArrayTask to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/ArrayTaskBrowserSidebar.java b/src/main/java/org/openapitools/client/model/ArrayTaskBrowserSidebar.java index f2d4f7c..a5409b6 100644 --- a/src/main/java/org/openapitools/client/model/ArrayTaskBrowserSidebar.java +++ b/src/main/java/org/openapitools/client/model/ArrayTaskBrowserSidebar.java @@ -26,11 +26,31 @@ import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * Object for ui array tasks browser page */ @ApiModel(description = "Object for ui array tasks browser page") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class ArrayTaskBrowserSidebar { public static final String SERIALIZED_NAME_ORGANIZATIONS = "organizations"; @SerializedName(SERIALIZED_NAME_ORGANIZATIONS) @@ -55,7 +75,7 @@ public ArrayTaskBrowserSidebar organizations(List organizations) { public ArrayTaskBrowserSidebar addOrganizationsItem(String organizationsItem) { if (this.organizations == null) { - this.organizations = new ArrayList(); + this.organizations = new ArrayList<>(); } this.organizations.add(organizationsItem); return this; @@ -124,6 +144,7 @@ public void setResultCountByNamespace(Object resultCountByNamespace) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -165,5 +186,96 @@ private String toIndentedString(Object o) { 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("organizations"); + openapiFields.add("result_count_for_all"); + openapiFields.add("result_count_by_namespace"); + + // 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 ArrayTaskBrowserSidebar + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (ArrayTaskBrowserSidebar.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + throw new IllegalArgumentException(String.format("Expected the field `organizations` to be an array in the JSON string but got `%s`", jsonObj.get("organizations").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ArrayTaskBrowserSidebar.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ArrayTaskBrowserSidebar' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ArrayTaskBrowserSidebar.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ArrayTaskBrowserSidebar value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ArrayTaskBrowserSidebar read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ArrayTaskBrowserSidebar given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArrayTaskBrowserSidebar + * @throws IOException if the JSON string is invalid with respect to ArrayTaskBrowserSidebar + */ + public static ArrayTaskBrowserSidebar fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ArrayTaskBrowserSidebar.class); + } + + /** + * Convert an instance of ArrayTaskBrowserSidebar to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/ArrayTaskData.java b/src/main/java/org/openapitools/client/model/ArrayTaskData.java index 956487b..bdf8837 100644 --- a/src/main/java/org/openapitools/client/model/ArrayTaskData.java +++ b/src/main/java/org/openapitools/client/model/ArrayTaskData.java @@ -28,11 +28,31 @@ import org.openapitools.client.model.ArrayTask; import org.openapitools.client.model.PaginationMetadata; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.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-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class ArrayTaskData { public static final String SERIALIZED_NAME_ARRAY_TASKS = "array_tasks"; @SerializedName(SERIALIZED_NAME_ARRAY_TASKS) @@ -53,7 +73,7 @@ public ArrayTaskData arrayTasks(List arrayTasks) { public ArrayTaskData addArrayTasksItem(ArrayTask arrayTasksItem) { if (this.arrayTasks == null) { - this.arrayTasks = new ArrayList(); + this.arrayTasks = new ArrayList<>(); } this.arrayTasks.add(arrayTasksItem); return this; @@ -99,6 +119,7 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -138,5 +159,107 @@ private String toIndentedString(Object o) { 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_tasks"); + 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 ArrayTaskData + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (ArrayTaskData.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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 + if (!jsonObj.get("array_tasks").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `array_tasks` to be an array in the JSON string but got `%s`", jsonObj.get("array_tasks").toString())); + } + + // validate the optional field `array_tasks` (array) + for (int i = 0; i < jsonArrayarrayTasks.size(); i++) { + ArrayTask.validateJsonObject(jsonArrayarrayTasks.get(i).getAsJsonObject()); + }; + } + // validate the optional field `pagination_metadata` + if (jsonObj.getAsJsonObject("pagination_metadata") != null) { + PaginationMetadata.validateJsonObject(jsonObj.getAsJsonObject("pagination_metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ArrayTaskData.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ArrayTaskData' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ArrayTaskData.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ArrayTaskData value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ArrayTaskData read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ArrayTaskData given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArrayTaskData + * @throws IOException if the JSON string is invalid with respect to ArrayTaskData + */ + public static ArrayTaskData fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ArrayTaskData.class); + } + + /** + * Convert an instance of ArrayTaskData to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/ArrayTaskLog.java b/src/main/java/org/openapitools/client/model/ArrayTaskLog.java index b2b8b6f..59715fa 100644 --- a/src/main/java/org/openapitools/client/model/ArrayTaskLog.java +++ b/src/main/java/org/openapitools/client/model/ArrayTaskLog.java @@ -24,11 +24,31 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * Array task stderr/stdout logs */ @ApiModel(description = "Array task stderr/stdout logs") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+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) @@ -87,6 +107,7 @@ public void setLogs(String logs) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -126,5 +147,97 @@ private String toIndentedString(Object o) { 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_task_id"); + openapiFields.add("logs"); + + // 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 ArrayTaskLog + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (ArrayTaskLog.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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()) { + 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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ArrayTaskLog.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ArrayTaskLog' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ArrayTaskLog.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ArrayTaskLog value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ArrayTaskLog read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ArrayTaskLog given an JSON string + * + * @param jsonString JSON string + * @return An instance of ArrayTaskLog + * @throws IOException if the JSON string is invalid with respect to ArrayTaskLog + */ + public static ArrayTaskLog fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ArrayTaskLog.class); + } + + /** + * Convert an instance of ArrayTaskLog to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/ArrayTaskStatus.java b/src/main/java/org/openapitools/client/model/ArrayTaskStatus.java index e3edac2..af0afee 100644 --- a/src/main/java/org/openapitools/client/model/ArrayTaskStatus.java +++ b/src/main/java/org/openapitools/client/model/ArrayTaskStatus.java @@ -38,11 +38,13 @@ public enum ArrayTaskStatus { RUNNING("RUNNING"), - DENIED("DENIED"), + RESOURCES_UNAVAILABLE("RESOURCES_UNAVAILABLE"), UNKNOWN("UNKNOWN"), - CANCELLED("CANCELLED"); + CANCELLED("CANCELLED"), + + DENIED("DENIED"); private String value; diff --git a/src/main/java/org/openapitools/client/model/ArrayTaskType.java b/src/main/java/org/openapitools/client/model/ArrayTaskType.java index a6018bd..6079f13 100644 --- a/src/main/java/org/openapitools/client/model/ArrayTaskType.java +++ b/src/main/java/org/openapitools/client/model/ArrayTaskType.java @@ -36,7 +36,9 @@ public enum ArrayTaskType { QUERY("QUERY"), - GENERIC_UDF("GENERIC_UDF"); + GENERIC_UDF("GENERIC_UDF"), + + CLIENT_COMPUTATION("CLIENT_COMPUTATION"); private String value; diff --git a/src/main/java/org/openapitools/client/model/Attribute.java b/src/main/java/org/openapitools/client/model/Attribute.java index f35e876..5847bf6 100644 --- a/src/main/java/org/openapitools/client/model/Attribute.java +++ b/src/main/java/org/openapitools/client/model/Attribute.java @@ -28,11 +28,31 @@ import org.openapitools.client.model.Datatype; import org.openapitools.client.model.FilterPipeline; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * Attribute of array */ @ApiModel(description = "Attribute of array") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class Attribute { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -184,7 +204,7 @@ public Attribute fillValue(List fillValue) { public Attribute addFillValueItem(Integer fillValueItem) { if (this.fillValue == null) { - this.fillValue = new ArrayList(); + this.fillValue = new ArrayList<>(); } this.fillValue.add(fillValueItem); return this; @@ -207,6 +227,7 @@ public void setFillValue(List fillValue) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -254,5 +275,117 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("name"); + openapiFields.add("type"); + openapiFields.add("filterPipeline"); + openapiFields.add("cellValNum"); + openapiFields.add("nullable"); + openapiFields.add("fillValue"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("name"); + openapiRequiredFields.add("type"); + openapiRequiredFields.add("filterPipeline"); + openapiRequiredFields.add("cellValNum"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to Attribute + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (Attribute.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in Attribute is not found in the empty JSON string", Attribute.openapiRequiredFields.toString())); + } + } + + 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()) { + 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) { + FilterPipeline.validateJsonObject(jsonObj.getAsJsonObject("filterPipeline")); + } + // ensure the json data is an array + if (jsonObj.get("fillValue") != null && !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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!Attribute.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Attribute' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(Attribute.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Attribute value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public Attribute read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of Attribute given an JSON string + * + * @param jsonString JSON string + * @return An instance of Attribute + * @throws IOException if the JSON string is invalid with respect to Attribute + */ + public static Attribute fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, Attribute.class); + } + + /** + * Convert an instance of Attribute to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/AttributeBufferHeader.java b/src/main/java/org/openapitools/client/model/AttributeBufferHeader.java index c851f90..468975d 100644 --- a/src/main/java/org/openapitools/client/model/AttributeBufferHeader.java +++ b/src/main/java/org/openapitools/client/model/AttributeBufferHeader.java @@ -24,11 +24,31 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * Represents an attribute buffer header information */ @ApiModel(description = "Represents an attribute buffer header information") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class AttributeBufferHeader { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -114,6 +134,7 @@ public void setVarLenBufferSizeInBytes(Integer varLenBufferSizeInBytes) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -155,5 +176,105 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("name"); + openapiFields.add("fixedLenBufferSizeInBytes"); + openapiFields.add("varLenBufferSizeInBytes"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("name"); + openapiRequiredFields.add("fixedLenBufferSizeInBytes"); + openapiRequiredFields.add("varLenBufferSizeInBytes"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to AttributeBufferHeader + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (AttributeBufferHeader.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in AttributeBufferHeader is not found in the empty JSON string", AttributeBufferHeader.openapiRequiredFields.toString())); + } + } + + 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()) { + 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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!AttributeBufferHeader.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AttributeBufferHeader' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AttributeBufferHeader.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AttributeBufferHeader value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AttributeBufferHeader read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of AttributeBufferHeader given an JSON string + * + * @param jsonString JSON string + * @return An instance of AttributeBufferHeader + * @throws IOException if the JSON string is invalid with respect to AttributeBufferHeader + */ + public static AttributeBufferHeader fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AttributeBufferHeader.class); + } + + /** + * Convert an instance of AttributeBufferHeader to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/AttributeBufferSize.java b/src/main/java/org/openapitools/client/model/AttributeBufferSize.java index 36073ff..a3a834b 100644 --- a/src/main/java/org/openapitools/client/model/AttributeBufferSize.java +++ b/src/main/java/org/openapitools/client/model/AttributeBufferSize.java @@ -24,11 +24,31 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * object representing buffer size of an attribute */ @ApiModel(description = "object representing buffer size of an attribute") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class AttributeBufferSize { public static final String SERIALIZED_NAME_ATTRIBUTE = "attribute"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE) @@ -114,6 +134,7 @@ public void setDataBytes(Integer dataBytes) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -155,5 +176,105 @@ private String toIndentedString(Object o) { 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("attribute"); + openapiFields.add("offsetBytes"); + openapiFields.add("dataBytes"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("attribute"); + openapiRequiredFields.add("offsetBytes"); + openapiRequiredFields.add("dataBytes"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to AttributeBufferSize + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (AttributeBufferSize.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in AttributeBufferSize is not found in the empty JSON string", AttributeBufferSize.openapiRequiredFields.toString())); + } + } + + 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()) { + 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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!AttributeBufferSize.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AttributeBufferSize' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AttributeBufferSize.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AttributeBufferSize value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AttributeBufferSize read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of AttributeBufferSize given an JSON string + * + * @param jsonString JSON string + * @return An instance of AttributeBufferSize + * @throws IOException if the JSON string is invalid with respect to AttributeBufferSize + */ + public static AttributeBufferSize fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AttributeBufferSize.class); + } + + /** + * Convert an instance of AttributeBufferSize to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/Dimension.java b/src/main/java/org/openapitools/client/model/Dimension.java index b9314a3..da34030 100644 --- a/src/main/java/org/openapitools/client/model/Dimension.java +++ b/src/main/java/org/openapitools/client/model/Dimension.java @@ -28,11 +28,31 @@ import org.openapitools.client.model.DomainArray; import org.openapitools.client.model.FilterPipeline; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * Dimension of array */ @ApiModel(description = "Dimension of array") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class Dimension { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -199,6 +219,7 @@ public void setFilterPipeline(FilterPipeline filterPipeline) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -246,5 +267,120 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("name"); + openapiFields.add("type"); + openapiFields.add("domain"); + openapiFields.add("nullTileExtent"); + openapiFields.add("tileExtent"); + openapiFields.add("filterPipeline"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("type"); + openapiRequiredFields.add("domain"); + openapiRequiredFields.add("nullTileExtent"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to Dimension + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (Dimension.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in Dimension is not found in the empty JSON string", Dimension.openapiRequiredFields.toString())); + } + } + + 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()) { + 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) { + DomainArray.validateJsonObject(jsonObj.getAsJsonObject("domain")); + } + // validate the optional field `tileExtent` + if (jsonObj.getAsJsonObject("tileExtent") != null) { + DimensionTileExtent.validateJsonObject(jsonObj.getAsJsonObject("tileExtent")); + } + // validate the optional field `filterPipeline` + if (jsonObj.getAsJsonObject("filterPipeline") != null) { + FilterPipeline.validateJsonObject(jsonObj.getAsJsonObject("filterPipeline")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!Dimension.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Dimension' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(Dimension.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Dimension value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public Dimension read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of Dimension given an JSON string + * + * @param jsonString JSON string + * @return An instance of Dimension + * @throws IOException if the JSON string is invalid with respect to Dimension + */ + public static Dimension fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, Dimension.class); + } + + /** + * Convert an instance of Dimension to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/DimensionCoordinate.java b/src/main/java/org/openapitools/client/model/DimensionCoordinate.java index 8e98686..80b283f 100644 --- a/src/main/java/org/openapitools/client/model/DimensionCoordinate.java +++ b/src/main/java/org/openapitools/client/model/DimensionCoordinate.java @@ -24,11 +24,31 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * A single, typed coordinate for a dimension */ @ApiModel(description = "A single, typed coordinate for a dimension") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class DimensionCoordinate { public static final String SERIALIZED_NAME_INT8 = "int8"; @SerializedName(SERIALIZED_NAME_INT8) @@ -303,6 +323,7 @@ public void setFloat64(Double float64) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -358,5 +379,99 @@ private String toIndentedString(Object o) { 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("int8"); + openapiFields.add("uint8"); + openapiFields.add("int16"); + openapiFields.add("uint16"); + openapiFields.add("int32"); + openapiFields.add("uint32"); + openapiFields.add("int64"); + openapiFields.add("uint64"); + openapiFields.add("float32"); + openapiFields.add("float64"); + + // 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 DimensionCoordinate + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (DimensionCoordinate.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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 { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!DimensionCoordinate.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DimensionCoordinate' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DimensionCoordinate.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DimensionCoordinate value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DimensionCoordinate read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of DimensionCoordinate given an JSON string + * + * @param jsonString JSON string + * @return An instance of DimensionCoordinate + * @throws IOException if the JSON string is invalid with respect to DimensionCoordinate + */ + public static DimensionCoordinate fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, DimensionCoordinate.class); + } + + /** + * Convert an instance of DimensionCoordinate to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/DimensionTileExtent.java b/src/main/java/org/openapitools/client/model/DimensionTileExtent.java index b3fa4a2..b41fd09 100644 --- a/src/main/java/org/openapitools/client/model/DimensionTileExtent.java +++ b/src/main/java/org/openapitools/client/model/DimensionTileExtent.java @@ -24,11 +24,31 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * Extent of tile */ @ApiModel(description = "Extent of tile") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class DimensionTileExtent { public static final String SERIALIZED_NAME_INT8 = "int8"; @SerializedName(SERIALIZED_NAME_INT8) @@ -303,6 +323,7 @@ public void setFloat64(Integer float64) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -358,5 +379,99 @@ private String toIndentedString(Object o) { 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("int8"); + openapiFields.add("uint8"); + openapiFields.add("int16"); + openapiFields.add("uint16"); + openapiFields.add("int32"); + openapiFields.add("uint32"); + openapiFields.add("int64"); + openapiFields.add("uint64"); + openapiFields.add("float32"); + openapiFields.add("float64"); + + // 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 DimensionTileExtent + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (DimensionTileExtent.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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 { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!DimensionTileExtent.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DimensionTileExtent' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DimensionTileExtent.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DimensionTileExtent value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DimensionTileExtent read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of DimensionTileExtent given an JSON string + * + * @param jsonString JSON string + * @return An instance of DimensionTileExtent + * @throws IOException if the JSON string is invalid with respect to DimensionTileExtent + */ + public static DimensionTileExtent fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, DimensionTileExtent.class); + } + + /** + * Convert an instance of DimensionTileExtent to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/Domain.java b/src/main/java/org/openapitools/client/model/Domain.java index 758eb1c..a4a36d8 100644 --- a/src/main/java/org/openapitools/client/model/Domain.java +++ b/src/main/java/org/openapitools/client/model/Domain.java @@ -29,11 +29,31 @@ import org.openapitools.client.model.Dimension; import org.openapitools.client.model.Layout; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * Domain of array */ @ApiModel(description = "Domain of array") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class Domain { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -49,7 +69,7 @@ public class Domain { public static final String SERIALIZED_NAME_DIMENSIONS = "dimensions"; @SerializedName(SERIALIZED_NAME_DIMENSIONS) - private List dimensions = new ArrayList(); + private List dimensions = new ArrayList<>(); public Domain() { } @@ -151,6 +171,7 @@ public void setDimensions(List dimensions) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -194,5 +215,116 @@ private String toIndentedString(Object o) { 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("type"); + openapiFields.add("tileOrder"); + openapiFields.add("cellOrder"); + openapiFields.add("dimensions"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("type"); + openapiRequiredFields.add("tileOrder"); + openapiRequiredFields.add("cellOrder"); + openapiRequiredFields.add("dimensions"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to Domain + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (Domain.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in Domain is not found in the empty JSON string", Domain.openapiRequiredFields.toString())); + } + } + + 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) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + JsonArray jsonArraydimensions = jsonObj.getAsJsonArray("dimensions"); + if (jsonArraydimensions != null) { + // ensure the json data is an array + if (!jsonObj.get("dimensions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `dimensions` to be an array in the JSON string but got `%s`", jsonObj.get("dimensions").toString())); + } + + // validate the optional field `dimensions` (array) + for (int i = 0; i < jsonArraydimensions.size(); i++) { + Dimension.validateJsonObject(jsonArraydimensions.get(i).getAsJsonObject()); + }; + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!Domain.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Domain' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(Domain.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Domain value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public Domain read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of Domain given an JSON string + * + * @param jsonString JSON string + * @return An instance of Domain + * @throws IOException if the JSON string is invalid with respect to Domain + */ + public static Domain fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, Domain.class); + } + + /** + * Convert an instance of Domain to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/DomainArray.java b/src/main/java/org/openapitools/client/model/DomainArray.java index e661f75..72071f9 100644 --- a/src/main/java/org/openapitools/client/model/DomainArray.java +++ b/src/main/java/org/openapitools/client/model/DomainArray.java @@ -26,11 +26,31 @@ import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * Domain object for an array of each type */ @ApiModel(description = "Domain object for an array of each type") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class DomainArray { public static final String SERIALIZED_NAME_INT8 = "int8"; @SerializedName(SERIALIZED_NAME_INT8) @@ -83,7 +103,7 @@ public DomainArray int8(List int8) { public DomainArray addInt8Item(Integer int8Item) { if (this.int8 == null) { - this.int8 = new ArrayList(); + this.int8 = new ArrayList<>(); } this.int8.add(int8Item); return this; @@ -114,7 +134,7 @@ public DomainArray uint8(List uint8) { public DomainArray addUint8Item(Integer uint8Item) { if (this.uint8 == null) { - this.uint8 = new ArrayList(); + this.uint8 = new ArrayList<>(); } this.uint8.add(uint8Item); return this; @@ -145,7 +165,7 @@ public DomainArray int16(List int16) { public DomainArray addInt16Item(Integer int16Item) { if (this.int16 == null) { - this.int16 = new ArrayList(); + this.int16 = new ArrayList<>(); } this.int16.add(int16Item); return this; @@ -176,7 +196,7 @@ public DomainArray uint16(List uint16) { public DomainArray addUint16Item(Integer uint16Item) { if (this.uint16 == null) { - this.uint16 = new ArrayList(); + this.uint16 = new ArrayList<>(); } this.uint16.add(uint16Item); return this; @@ -207,7 +227,7 @@ public DomainArray int32(List int32) { public DomainArray addInt32Item(Integer int32Item) { if (this.int32 == null) { - this.int32 = new ArrayList(); + this.int32 = new ArrayList<>(); } this.int32.add(int32Item); return this; @@ -238,7 +258,7 @@ public DomainArray uint32(List uint32) { public DomainArray addUint32Item(Integer uint32Item) { if (this.uint32 == null) { - this.uint32 = new ArrayList(); + this.uint32 = new ArrayList<>(); } this.uint32.add(uint32Item); return this; @@ -269,7 +289,7 @@ public DomainArray int64(List int64) { public DomainArray addInt64Item(Long int64Item) { if (this.int64 == null) { - this.int64 = new ArrayList(); + this.int64 = new ArrayList<>(); } this.int64.add(int64Item); return this; @@ -300,7 +320,7 @@ public DomainArray uint64(List uint64) { public DomainArray addUint64Item(Integer uint64Item) { if (this.uint64 == null) { - this.uint64 = new ArrayList(); + this.uint64 = new ArrayList<>(); } this.uint64.add(uint64Item); return this; @@ -331,7 +351,7 @@ public DomainArray float32(List float32) { public DomainArray addFloat32Item(Float float32Item) { if (this.float32 == null) { - this.float32 = new ArrayList(); + this.float32 = new ArrayList<>(); } this.float32.add(float32Item); return this; @@ -362,7 +382,7 @@ public DomainArray float64(List float64) { public DomainArray addFloat64Item(Double float64Item) { if (this.float64 == null) { - this.float64 = new ArrayList(); + this.float64 = new ArrayList<>(); } this.float64.add(float64Item); return this; @@ -385,6 +405,7 @@ public void setFloat64(List float64) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -440,5 +461,139 @@ private String toIndentedString(Object o) { 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("int8"); + openapiFields.add("uint8"); + openapiFields.add("int16"); + openapiFields.add("uint16"); + openapiFields.add("int32"); + openapiFields.add("uint32"); + openapiFields.add("int64"); + openapiFields.add("uint64"); + openapiFields.add("float32"); + openapiFields.add("float64"); + + // 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 DomainArray + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (DomainArray.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + throw new IllegalArgumentException(String.format("Expected the field `float64` to be an array in the JSON string but got `%s`", jsonObj.get("float64").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!DomainArray.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'DomainArray' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(DomainArray.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, DomainArray value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public DomainArray read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of DomainArray given an JSON string + * + * @param jsonString JSON string + * @return An instance of DomainArray + * @throws IOException if the JSON string is invalid with respect to DomainArray + */ + public static DomainArray fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, DomainArray.class); + } + + /** + * Convert an instance of DomainArray to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/Error.java b/src/main/java/org/openapitools/client/model/Error.java index ffe1d98..3c5db2e 100644 --- a/src/main/java/org/openapitools/client/model/Error.java +++ b/src/main/java/org/openapitools/client/model/Error.java @@ -24,10 +24,30 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * Error */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class Error { public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) @@ -113,6 +133,7 @@ public void setRequestId(String requestId) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -154,5 +175,98 @@ private String toIndentedString(Object o) { 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("code"); + openapiFields.add("message"); + openapiFields.add("request_id"); + + // 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 Error + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (Error.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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()) { + 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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!Error.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Error' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(Error.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Error value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public Error read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of Error given an JSON string + * + * @param jsonString JSON string + * @return An instance of Error + * @throws IOException if the JSON string is invalid with respect to Error + */ + public static Error fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, Error.class); + } + + /** + * Convert an instance of Error to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/FileCreate.java b/src/main/java/org/openapitools/client/model/FileCreate.java index fd68fb8..d527160 100644 --- a/src/main/java/org/openapitools/client/model/FileCreate.java +++ b/src/main/java/org/openapitools/client/model/FileCreate.java @@ -24,11 +24,31 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * Input/Output information required to create a new file */ @ApiModel(description = "Input/Output information required to create a new file") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class FileCreate { public static final String SERIALIZED_NAME_INPUT_URI = "input_uri"; @SerializedName(SERIALIZED_NAME_INPUT_URI) @@ -114,6 +134,7 @@ public void setName(String name) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -155,5 +176,101 @@ private String toIndentedString(Object o) { 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("input_uri"); + openapiFields.add("output_uri"); + openapiFields.add("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 FileCreate + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (FileCreate.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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()) { + 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()) { + 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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!FileCreate.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'FileCreate' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(FileCreate.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, FileCreate value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public FileCreate read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of FileCreate given an JSON string + * + * @param jsonString JSON string + * @return An instance of FileCreate + * @throws IOException if the JSON string is invalid with respect to FileCreate + */ + public static FileCreate fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, FileCreate.class); + } + + /** + * Convert an instance of FileCreate to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/FileCreated.java b/src/main/java/org/openapitools/client/model/FileCreated.java index 1f1bbae..fe8852c 100644 --- a/src/main/java/org/openapitools/client/model/FileCreated.java +++ b/src/main/java/org/openapitools/client/model/FileCreated.java @@ -24,11 +24,31 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * Created file name and information */ @ApiModel(description = "Created file name and information") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class FileCreated { public static final String SERIALIZED_NAME_OUTPUT_URI = "output_uri"; @SerializedName(SERIALIZED_NAME_OUTPUT_URI) @@ -87,6 +107,7 @@ public void setFileName(String fileName) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -126,5 +147,97 @@ private String toIndentedString(Object o) { 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("output_uri"); + openapiFields.add("file_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 FileCreated + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (FileCreated.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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()) { + 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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!FileCreated.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'FileCreated' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(FileCreated.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, FileCreated value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public FileCreated read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of FileCreated given an JSON string + * + * @param jsonString JSON string + * @return An instance of FileCreated + * @throws IOException if the JSON string is invalid with respect to FileCreated + */ + public static FileCreated fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, FileCreated.class); + } + + /** + * Convert an instance of FileCreated to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/FileExport.java b/src/main/java/org/openapitools/client/model/FileExport.java index fabaff9..29c68b9 100644 --- a/src/main/java/org/openapitools/client/model/FileExport.java +++ b/src/main/java/org/openapitools/client/model/FileExport.java @@ -24,11 +24,31 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * Output information required to export a file */ @ApiModel(description = "Output information required to export a file") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class FileExport { public static final String SERIALIZED_NAME_OUTPUT_URI = "output_uri"; @SerializedName(SERIALIZED_NAME_OUTPUT_URI) @@ -60,6 +80,7 @@ public void setOutputUri(String outputUri) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -97,5 +118,93 @@ private String toIndentedString(Object o) { 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("output_uri"); + + // 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 FileExport + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (FileExport.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!FileExport.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'FileExport' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(FileExport.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, FileExport value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public FileExport read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of FileExport given an JSON string + * + * @param jsonString JSON string + * @return An instance of FileExport + * @throws IOException if the JSON string is invalid with respect to FileExport + */ + public static FileExport fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, FileExport.class); + } + + /** + * Convert an instance of FileExport to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/FileExported.java b/src/main/java/org/openapitools/client/model/FileExported.java index 4d04b09..3325b5b 100644 --- a/src/main/java/org/openapitools/client/model/FileExported.java +++ b/src/main/java/org/openapitools/client/model/FileExported.java @@ -24,11 +24,31 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * Output uri of the exported file */ @ApiModel(description = "Output uri of the exported file") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class FileExported { public static final String SERIALIZED_NAME_OUTPUT_URI = "output_uri"; @SerializedName(SERIALIZED_NAME_OUTPUT_URI) @@ -60,6 +80,7 @@ public void setOutputUri(String outputUri) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -97,5 +118,93 @@ private String toIndentedString(Object o) { 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("output_uri"); + + // 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 FileExported + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (FileExported.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!FileExported.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'FileExported' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(FileExported.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, FileExported value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public FileExported read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of FileExported given an JSON string + * + * @param jsonString JSON string + * @return An instance of FileExported + * @throws IOException if the JSON string is invalid with respect to FileExported + */ + public static FileExported fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, FileExported.class); + } + + /** + * Convert an instance of FileExported to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/FileUploaded.java b/src/main/java/org/openapitools/client/model/FileUploaded.java index 3a5acb8..3c2c83a 100644 --- a/src/main/java/org/openapitools/client/model/FileUploaded.java +++ b/src/main/java/org/openapitools/client/model/FileUploaded.java @@ -24,11 +24,31 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * Uploaded file name and information */ @ApiModel(description = "Uploaded file name and information") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class FileUploaded { public static final String SERIALIZED_NAME_OUTPUT_URI = "output_uri"; @SerializedName(SERIALIZED_NAME_OUTPUT_URI) @@ -114,6 +134,7 @@ public void setId(String id) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -155,5 +176,109 @@ private String toIndentedString(Object o) { 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("output_uri"); + openapiFields.add("file_name"); + openapiFields.add("id"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("id"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to FileUploaded + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (FileUploaded.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in FileUploaded is not found in the empty JSON string", FileUploaded.openapiRequiredFields.toString())); + } + } + + 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()) { + 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()) { + 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()) { + 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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!FileUploaded.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'FileUploaded' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(FileUploaded.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, FileUploaded value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public FileUploaded read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of FileUploaded given an JSON string + * + * @param jsonString JSON string + * @return An instance of FileUploaded + * @throws IOException if the JSON string is invalid with respect to FileUploaded + */ + public static FileUploaded fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, FileUploaded.class); + } + + /** + * Convert an instance of FileUploaded to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/Filter.java b/src/main/java/org/openapitools/client/model/Filter.java index c065330..2001681 100644 --- a/src/main/java/org/openapitools/client/model/Filter.java +++ b/src/main/java/org/openapitools/client/model/Filter.java @@ -26,11 +26,31 @@ import org.openapitools.client.model.FilterData; import org.openapitools.client.model.FilterType; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * Filter */ @ApiModel(description = "Filter") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class Filter { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -89,6 +109,7 @@ public void setData(FilterData data) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -128,5 +149,103 @@ private String toIndentedString(Object o) { 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("type"); + openapiFields.add("data"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("type"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to Filter + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (Filter.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in Filter is not found in the empty JSON string", Filter.openapiRequiredFields.toString())); + } + } + + 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) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // validate the optional field `data` + if (jsonObj.getAsJsonObject("data") != null) { + FilterData.validateJsonObject(jsonObj.getAsJsonObject("data")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!Filter.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Filter' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(Filter.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Filter value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public Filter read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of Filter given an JSON string + * + * @param jsonString JSON string + * @return An instance of Filter + * @throws IOException if the JSON string is invalid with respect to Filter + */ + public static Filter fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, Filter.class); + } + + /** + * Convert an instance of Filter to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/FilterData.java b/src/main/java/org/openapitools/client/model/FilterData.java index f4b3055..3ee404f 100644 --- a/src/main/java/org/openapitools/client/model/FilterData.java +++ b/src/main/java/org/openapitools/client/model/FilterData.java @@ -24,11 +24,31 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * Filter data */ @ApiModel(description = "Filter data") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class FilterData { public static final String SERIALIZED_NAME_INT8 = "int8"; @SerializedName(SERIALIZED_NAME_INT8) @@ -303,6 +323,7 @@ public void setFloat64(Integer float64) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -358,5 +379,99 @@ private String toIndentedString(Object o) { 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("int8"); + openapiFields.add("uint8"); + openapiFields.add("int16"); + openapiFields.add("uint16"); + openapiFields.add("int32"); + openapiFields.add("uint32"); + openapiFields.add("int64"); + openapiFields.add("uint64"); + openapiFields.add("float32"); + openapiFields.add("float64"); + + // 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 FilterData + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (FilterData.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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 { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!FilterData.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'FilterData' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(FilterData.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, FilterData value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public FilterData read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of FilterData given an JSON string + * + * @param jsonString JSON string + * @return An instance of FilterData + * @throws IOException if the JSON string is invalid with respect to FilterData + */ + public static FilterData fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, FilterData.class); + } + + /** + * Convert an instance of FilterData to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/FilterPipeline.java b/src/main/java/org/openapitools/client/model/FilterPipeline.java index 3718244..b563299 100644 --- a/src/main/java/org/openapitools/client/model/FilterPipeline.java +++ b/src/main/java/org/openapitools/client/model/FilterPipeline.java @@ -27,11 +27,31 @@ import java.util.List; import org.openapitools.client.model.Filter; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.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-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class FilterPipeline { public static final String SERIALIZED_NAME_FILTERS = "filters"; @SerializedName(SERIALIZED_NAME_FILTERS) @@ -48,7 +68,7 @@ public FilterPipeline filters(List filters) { public FilterPipeline addFiltersItem(Filter filtersItem) { if (this.filters == null) { - this.filters = new ArrayList(); + this.filters = new ArrayList<>(); } this.filters.add(filtersItem); return this; @@ -71,6 +91,7 @@ public void setFilters(List filters) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -108,5 +129,102 @@ private String toIndentedString(Object o) { 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("filters"); + + // 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 FilterPipeline + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (FilterPipeline.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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 + if (!jsonObj.get("filters").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `filters` to be an array in the JSON string but got `%s`", jsonObj.get("filters").toString())); + } + + // validate the optional field `filters` (array) + for (int i = 0; i < jsonArrayfilters.size(); i++) { + Filter.validateJsonObject(jsonArrayfilters.get(i).getAsJsonObject()); + }; + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!FilterPipeline.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'FilterPipeline' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(FilterPipeline.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, FilterPipeline value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public FilterPipeline read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of FilterPipeline given an JSON string + * + * @param jsonString JSON string + * @return An instance of FilterPipeline + * @throws IOException if the JSON string is invalid with respect to FilterPipeline + */ + public static FilterPipeline fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, FilterPipeline.class); + } + + /** + * Convert an instance of FilterPipeline to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/GenericUDF.java b/src/main/java/org/openapitools/client/model/GenericUDF.java index d4363c5..553c714 100644 --- a/src/main/java/org/openapitools/client/model/GenericUDF.java +++ b/src/main/java/org/openapitools/client/model/GenericUDF.java @@ -28,11 +28,31 @@ import org.openapitools.client.model.ResultFormat; import org.openapitools.client.model.UDFLanguage; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * User-defined function */ @ApiModel(description = "User-defined function") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+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) @@ -293,7 +313,7 @@ public GenericUDF storedParamUuids(List storedParamUuids) { public GenericUDF addStoredParamUuidsItem(String storedParamUuidsItem) { if (this.storedParamUuids == null) { - this.storedParamUuids = new ArrayList(); + this.storedParamUuids = new ArrayList<>(); } this.storedParamUuids.add(storedParamUuidsItem); return this; @@ -477,6 +497,7 @@ public void setClientNodeUuid(String clientNodeUuid) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -544,5 +565,139 @@ private String toIndentedString(Object o) { 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("udf_info_name"); + openapiFields.add("language"); + openapiFields.add("version"); + openapiFields.add("image_name"); + openapiFields.add("resource_class"); + openapiFields.add("exec"); + openapiFields.add("exec_raw"); + openapiFields.add("argument"); + openapiFields.add("stored_param_uuids"); + openapiFields.add("result_format"); + openapiFields.add("task_name"); + openapiFields.add("store_results"); + openapiFields.add("timeout"); + openapiFields.add("dont_download_results"); + openapiFields.add("task_graph_uuid"); + openapiFields.add("client_node_uuid"); + + // 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 GenericUDF + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (GenericUDF.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GenericUDF.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GenericUDF' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GenericUDF.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GenericUDF value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GenericUDF read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of GenericUDF given an JSON string + * + * @param jsonString JSON string + * @return An instance of GenericUDF + * @throws IOException if the JSON string is invalid with respect to GenericUDF + */ + public static GenericUDF fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GenericUDF.class); + } + + /** + * Convert an instance of GenericUDF to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/GetTiledbStats200Response.java b/src/main/java/org/openapitools/client/model/GetTiledbStats200Response.java new file mode 100644 index 0000000..c74b3b2 --- /dev/null +++ b/src/main/java/org/openapitools/client/model/GetTiledbStats200Response.java @@ -0,0 +1,209 @@ +/* + * 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 org.openapitools.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + +/** + * GetTiledbStats200Response + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+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 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; + } + GetTiledbStats200Response getTiledbStats200Response = (GetTiledbStats200Response) o; + return Objects.equals(this.stats, getTiledbStats200Response.stats); + } + + @Override + public int hashCode() { + return Objects.hash(stats); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetTiledbStats200Response {\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 "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("stats"); + + // 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 GetTiledbStats200Response + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (GetTiledbStats200Response.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GetTiledbStats200Response.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GetTiledbStats200Response' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GetTiledbStats200Response.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GetTiledbStats200Response value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GetTiledbStats200Response read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of GetTiledbStats200Response given an JSON string + * + * @param jsonString JSON string + * @return An instance of GetTiledbStats200Response + * @throws IOException if the JSON string is invalid with respect to GetTiledbStats200Response + */ + public static GetTiledbStats200Response fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GetTiledbStats200Response.class); + } + + /** + * Convert an instance of GetTiledbStats200Response to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/org/openapitools/client/model/GroupBrowserData.java b/src/main/java/org/openapitools/client/model/GroupBrowserData.java index e829010..506ec47 100644 --- a/src/main/java/org/openapitools/client/model/GroupBrowserData.java +++ b/src/main/java/org/openapitools/client/model/GroupBrowserData.java @@ -28,11 +28,31 @@ import org.openapitools.client.model.GroupInfo; import org.openapitools.client.model.PaginationMetadata; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.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-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class GroupBrowserData { public static final String SERIALIZED_NAME_GROUPS = "groups"; @SerializedName(SERIALIZED_NAME_GROUPS) @@ -53,7 +73,7 @@ public GroupBrowserData groups(List groups) { public GroupBrowserData addGroupsItem(GroupInfo groupsItem) { if (this.groups == null) { - this.groups = new ArrayList(); + this.groups = new ArrayList<>(); } this.groups.add(groupsItem); return this; @@ -99,6 +119,7 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -138,5 +159,107 @@ private String toIndentedString(Object o) { 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("groups"); + 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 GroupBrowserData + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (GroupBrowserData.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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 + if (!jsonObj.get("groups").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `groups` to be an array in the JSON string but got `%s`", jsonObj.get("groups").toString())); + } + + // validate the optional field `groups` (array) + for (int i = 0; i < jsonArraygroups.size(); i++) { + GroupInfo.validateJsonObject(jsonArraygroups.get(i).getAsJsonObject()); + }; + } + // validate the optional field `pagination_metadata` + if (jsonObj.getAsJsonObject("pagination_metadata") != null) { + PaginationMetadata.validateJsonObject(jsonObj.getAsJsonObject("pagination_metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GroupBrowserData.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GroupBrowserData' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GroupBrowserData.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GroupBrowserData value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GroupBrowserData read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of GroupBrowserData given an JSON string + * + * @param jsonString JSON string + * @return An instance of GroupBrowserData + * @throws IOException if the JSON string is invalid with respect to GroupBrowserData + */ + public static GroupBrowserData fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GroupBrowserData.class); + } + + /** + * Convert an instance of GroupBrowserData to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/GroupBrowserFilterData.java b/src/main/java/org/openapitools/client/model/GroupBrowserFilterData.java index 9166de5..26fe3b7 100644 --- a/src/main/java/org/openapitools/client/model/GroupBrowserFilterData.java +++ b/src/main/java/org/openapitools/client/model/GroupBrowserFilterData.java @@ -26,11 +26,31 @@ import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * Object with data to fill browser filter */ @ApiModel(description = "Object with data to fill browser filter") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class GroupBrowserFilterData { public static final String SERIALIZED_NAME_NAMESPACES = "namespaces"; @SerializedName(SERIALIZED_NAME_NAMESPACES) @@ -47,7 +67,7 @@ public GroupBrowserFilterData namespaces(List namespaces) { public GroupBrowserFilterData addNamespacesItem(String namespacesItem) { if (this.namespaces == null) { - this.namespaces = new ArrayList(); + this.namespaces = new ArrayList<>(); } this.namespaces.add(namespacesItem); return this; @@ -70,6 +90,7 @@ public void setNamespaces(List namespaces) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -107,5 +128,94 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("namespaces"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to GroupBrowserFilterData + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (GroupBrowserFilterData.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + throw new IllegalArgumentException(String.format("Expected the field `namespaces` to be an array in the JSON string but got `%s`", jsonObj.get("namespaces").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GroupBrowserFilterData.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GroupBrowserFilterData' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GroupBrowserFilterData.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GroupBrowserFilterData value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GroupBrowserFilterData read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of GroupBrowserFilterData given an JSON string + * + * @param jsonString JSON string + * @return An instance of GroupBrowserFilterData + * @throws IOException if the JSON string is invalid with respect to GroupBrowserFilterData + */ + public static GroupBrowserFilterData fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GroupBrowserFilterData.class); + } + + /** + * Convert an instance of GroupBrowserFilterData to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/GroupChanges.java b/src/main/java/org/openapitools/client/model/GroupChanges.java index 23eae6a..61f7009 100644 --- a/src/main/java/org/openapitools/client/model/GroupChanges.java +++ b/src/main/java/org/openapitools/client/model/GroupChanges.java @@ -27,11 +27,31 @@ import java.util.List; import org.openapitools.client.model.GroupMember; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.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-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class GroupChanges { public static final String SERIALIZED_NAME_ADD = "add"; @SerializedName(SERIALIZED_NAME_ADD) @@ -52,7 +72,7 @@ public GroupChanges add(List add) { public GroupChanges addAddItem(GroupMember addItem) { if (this.add == null) { - this.add = new ArrayList(); + this.add = new ArrayList<>(); } this.add.add(addItem); return this; @@ -83,7 +103,7 @@ public GroupChanges remove(List remove) { public GroupChanges addRemoveItem(GroupMember removeItem) { if (this.remove == null) { - this.remove = new ArrayList(); + this.remove = new ArrayList<>(); } this.remove.add(removeItem); return this; @@ -106,6 +126,7 @@ public void setRemove(List remove) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -145,5 +166,115 @@ private String toIndentedString(Object o) { 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("add"); + openapiFields.add("remove"); + + // 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 GroupChanges + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (GroupChanges.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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 + if (!jsonObj.get("add").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `add` to be an array in the JSON string but got `%s`", jsonObj.get("add").toString())); + } + + // validate the optional field `add` (array) + for (int i = 0; i < jsonArrayadd.size(); i++) { + GroupMember.validateJsonObject(jsonArrayadd.get(i).getAsJsonObject()); + }; + } + JsonArray jsonArrayremove = jsonObj.getAsJsonArray("remove"); + if (jsonArrayremove != null) { + // ensure the json data is an array + if (!jsonObj.get("remove").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `remove` to be an array in the JSON string but got `%s`", jsonObj.get("remove").toString())); + } + + // validate the optional field `remove` (array) + for (int i = 0; i < jsonArrayremove.size(); i++) { + GroupMember.validateJsonObject(jsonArrayremove.get(i).getAsJsonObject()); + }; + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GroupChanges.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GroupChanges' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GroupChanges.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GroupChanges value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GroupChanges read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of GroupChanges given an JSON string + * + * @param jsonString JSON string + * @return An instance of GroupChanges + * @throws IOException if the JSON string is invalid with respect to GroupChanges + */ + public static GroupChanges fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GroupChanges.class); + } + + /** + * Convert an instance of GroupChanges to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/GroupContents.java b/src/main/java/org/openapitools/client/model/GroupContents.java index 5c4b8d8..6915ab0 100644 --- a/src/main/java/org/openapitools/client/model/GroupContents.java +++ b/src/main/java/org/openapitools/client/model/GroupContents.java @@ -28,11 +28,31 @@ import org.openapitools.client.model.GroupEntry; import org.openapitools.client.model.PaginationMetadata; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.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-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class GroupContents { public static final String SERIALIZED_NAME_ENTRIES = "entries"; @SerializedName(SERIALIZED_NAME_ENTRIES) @@ -53,7 +73,7 @@ public GroupContents entries(List entries) { public GroupContents addEntriesItem(GroupEntry entriesItem) { if (this.entries == null) { - this.entries = new ArrayList(); + this.entries = new ArrayList<>(); } this.entries.add(entriesItem); return this; @@ -99,6 +119,7 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -138,5 +159,107 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("entries"); + 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 GroupContents + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (GroupContents.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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 + if (!jsonObj.get("entries").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `entries` to be an array in the JSON string but got `%s`", jsonObj.get("entries").toString())); + } + + // validate the optional field `entries` (array) + for (int i = 0; i < jsonArrayentries.size(); i++) { + GroupEntry.validateJsonObject(jsonArrayentries.get(i).getAsJsonObject()); + }; + } + // validate the optional field `pagination_metadata` + if (jsonObj.getAsJsonObject("pagination_metadata") != null) { + PaginationMetadata.validateJsonObject(jsonObj.getAsJsonObject("pagination_metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GroupContents.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GroupContents' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GroupContents.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GroupContents value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GroupContents read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of GroupContents given an JSON string + * + * @param jsonString JSON string + * @return An instance of GroupContents + * @throws IOException if the JSON string is invalid with respect to GroupContents + */ + public static GroupContents fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GroupContents.class); + } + + /** + * Convert an instance of GroupContents to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/GroupContentsFilterData.java b/src/main/java/org/openapitools/client/model/GroupContentsFilterData.java index b03c2f8..82523d5 100644 --- a/src/main/java/org/openapitools/client/model/GroupContentsFilterData.java +++ b/src/main/java/org/openapitools/client/model/GroupContentsFilterData.java @@ -26,11 +26,31 @@ import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * Object with data to fill contents filter */ @ApiModel(description = "Object with data to fill contents filter") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class GroupContentsFilterData { public static final String SERIALIZED_NAME_NAMESPACES = "namespaces"; @SerializedName(SERIALIZED_NAME_NAMESPACES) @@ -47,7 +67,7 @@ public GroupContentsFilterData namespaces(List namespaces) { public GroupContentsFilterData addNamespacesItem(String namespacesItem) { if (this.namespaces == null) { - this.namespaces = new ArrayList(); + this.namespaces = new ArrayList<>(); } this.namespaces.add(namespacesItem); return this; @@ -70,6 +90,7 @@ public void setNamespaces(List namespaces) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -107,5 +128,94 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("namespaces"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to GroupContentsFilterData + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (GroupContentsFilterData.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + throw new IllegalArgumentException(String.format("Expected the field `namespaces` to be an array in the JSON string but got `%s`", jsonObj.get("namespaces").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GroupContentsFilterData.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GroupContentsFilterData' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GroupContentsFilterData.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GroupContentsFilterData value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GroupContentsFilterData read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of GroupContentsFilterData given an JSON string + * + * @param jsonString JSON string + * @return An instance of GroupContentsFilterData + * @throws IOException if the JSON string is invalid with respect to GroupContentsFilterData + */ + public static GroupContentsFilterData fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GroupContentsFilterData.class); + } + + /** + * Convert an instance of GroupContentsFilterData to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/GroupCreate.java b/src/main/java/org/openapitools/client/model/GroupCreate.java index 0286094..1666310 100644 --- a/src/main/java/org/openapitools/client/model/GroupCreate.java +++ b/src/main/java/org/openapitools/client/model/GroupCreate.java @@ -26,11 +26,31 @@ import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * Initial attributes for the creation of a group. */ @ApiModel(description = "Initial attributes for the creation of a group.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class GroupCreate { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) @@ -217,7 +237,7 @@ public GroupCreate tags(List tags) { public GroupCreate addTagsItem(String tagsItem) { if (this.tags == null) { - this.tags = new ArrayList(); + this.tags = new ArrayList<>(); } this.tags.add(tagsItem); return this; @@ -286,6 +306,7 @@ public void setLicenseText(String licenseText) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -339,5 +360,126 @@ private String toIndentedString(Object o) { 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("description"); + openapiFields.add("name"); + openapiFields.add("parent"); + openapiFields.add("uri"); + openapiFields.add("logo"); + openapiFields.add("access_credentials_name"); + openapiFields.add("tags"); + openapiFields.add("license_id"); + openapiFields.add("license_text"); + + // 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 GroupCreate + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (GroupCreate.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GroupCreate.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GroupCreate' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GroupCreate.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GroupCreate value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GroupCreate read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of GroupCreate given an JSON string + * + * @param jsonString JSON string + * @return An instance of GroupCreate + * @throws IOException if the JSON string is invalid with respect to GroupCreate + */ + public static GroupCreate fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GroupCreate.class); + } + + /** + * Convert an instance of GroupCreate to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/GroupEntry.java b/src/main/java/org/openapitools/client/model/GroupEntry.java index 29fea81..d7b577b 100644 --- a/src/main/java/org/openapitools/client/model/GroupEntry.java +++ b/src/main/java/org/openapitools/client/model/GroupEntry.java @@ -26,12 +26,36 @@ import org.openapitools.client.model.ArrayInfo; import org.openapitools.client.model.GroupInfo; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.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-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class GroupEntry { + public static final String SERIALIZED_NAME_MEMBER_ID = "member_id"; + @SerializedName(SERIALIZED_NAME_MEMBER_ID) + private String memberId; + public static final String SERIALIZED_NAME_GROUP = "group"; @SerializedName(SERIALIZED_NAME_GROUP) private GroupInfo group; @@ -43,6 +67,28 @@ public class GroupEntry { public GroupEntry() { } + + public GroupEntry( + String memberId + ) { + this(); + this.memberId = memberId; + } + + /** + * The unique member id for the entry + * @return memberId + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The unique member id for the entry") + + public String getMemberId() { + return memberId; + } + + + + public GroupEntry group(GroupInfo group) { this.group = group; @@ -89,6 +135,7 @@ public void setArray(ArrayInfo array) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -98,19 +145,21 @@ public boolean equals(Object o) { return false; } GroupEntry groupEntry = (GroupEntry) o; - return Objects.equals(this.group, groupEntry.group) && + return Objects.equals(this.memberId, groupEntry.memberId) && + Objects.equals(this.group, groupEntry.group) && Objects.equals(this.array, groupEntry.array); } @Override public int hashCode() { - return Objects.hash(group, array); + return Objects.hash(memberId, group, array); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class GroupEntry {\n"); + 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("}"); @@ -128,5 +177,103 @@ private String toIndentedString(Object o) { 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("member_id"); + openapiFields.add("group"); + openapiFields.add("array"); + + // 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 GroupEntry + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (GroupEntry.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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) { + GroupInfo.validateJsonObject(jsonObj.getAsJsonObject("group")); + } + // validate the optional field `array` + if (jsonObj.getAsJsonObject("array") != null) { + ArrayInfo.validateJsonObject(jsonObj.getAsJsonObject("array")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GroupEntry.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GroupEntry' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GroupEntry.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GroupEntry value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GroupEntry read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of GroupEntry given an JSON string + * + * @param jsonString JSON string + * @return An instance of GroupEntry + * @throws IOException if the JSON string is invalid with respect to GroupEntry + */ + public static GroupEntry fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GroupEntry.class); + } + + /** + * Convert an instance of GroupEntry to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/GroupInfo.java b/src/main/java/org/openapitools/client/model/GroupInfo.java index 3ab6704..d69776c 100644 --- a/src/main/java/org/openapitools/client/model/GroupInfo.java +++ b/src/main/java/org/openapitools/client/model/GroupInfo.java @@ -24,17 +24,37 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.math.BigDecimal; +import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.List; import org.openapitools.client.model.GroupActions; import org.openapitools.jackson.nullable.JsonNullable; -import org.threeten.bp.OffsetDateTime; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; /** * metadata of a group */ @ApiModel(description = "metadata of a group") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class GroupInfo { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -349,7 +369,7 @@ public GroupInfo allowedActions(List allowedActions) { public GroupInfo addAllowedActionsItem(GroupActions allowedActionsItem) { if (this.allowedActions == null) { - this.allowedActions = new ArrayList(); + this.allowedActions = new ArrayList<>(); } this.allowedActions.add(allowedActionsItem); return this; @@ -472,7 +492,7 @@ public GroupInfo tags(List tags) { public GroupInfo addTagsItem(String tagsItem) { if (this.tags == null) { - this.tags = new ArrayList(); + this.tags = new ArrayList<>(); } this.tags.add(tagsItem); return this; @@ -541,6 +561,7 @@ public void setLicenseText(String licenseText) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -623,5 +644,145 @@ private String toIndentedString(Object o) { 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("namespace"); + openapiFields.add("name"); + openapiFields.add("description"); + openapiFields.add("uri"); + openapiFields.add("tiledb_uri"); + openapiFields.add("asset_count"); + openapiFields.add("group_count"); + openapiFields.add("size"); + openapiFields.add("last_accessed"); + openapiFields.add("allowed_actions"); + openapiFields.add("logo"); + openapiFields.add("access_credentials_name"); + openapiFields.add("share_count"); + openapiFields.add("public_share"); + openapiFields.add("tags"); + openapiFields.add("license_id"); + openapiFields.add("license_text"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to GroupInfo + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (GroupInfo.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GroupInfo.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GroupInfo' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GroupInfo.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GroupInfo value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GroupInfo read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of GroupInfo given an JSON string + * + * @param jsonString JSON string + * @return An instance of GroupInfo + * @throws IOException if the JSON string is invalid with respect to GroupInfo + */ + public static GroupInfo fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GroupInfo.class); + } + + /** + * Convert an instance of GroupInfo to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/GroupMember.java b/src/main/java/org/openapitools/client/model/GroupMember.java index 76360c8..c6137a3 100644 --- a/src/main/java/org/openapitools/client/model/GroupMember.java +++ b/src/main/java/org/openapitools/client/model/GroupMember.java @@ -25,11 +25,31 @@ import java.io.IOException; import org.openapitools.client.model.GroupMemberType; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.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-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class GroupMember { public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) @@ -115,6 +135,7 @@ public void setMemberType(GroupMemberType memberType) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -156,5 +177,98 @@ private String toIndentedString(Object o) { 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("namespace"); + openapiFields.add("name"); + openapiFields.add("member_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 GroupMember + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (GroupMember.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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()) { + 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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GroupMember.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GroupMember' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GroupMember.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GroupMember value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GroupMember read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of GroupMember given an JSON string + * + * @param jsonString JSON string + * @return An instance of GroupMember + * @throws IOException if the JSON string is invalid with respect to GroupMember + */ + public static GroupMember fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GroupMember.class); + } + + /** + * Convert an instance of GroupMember to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/GroupRegister.java b/src/main/java/org/openapitools/client/model/GroupRegister.java index 9ac5364..a571b61 100644 --- a/src/main/java/org/openapitools/client/model/GroupRegister.java +++ b/src/main/java/org/openapitools/client/model/GroupRegister.java @@ -26,11 +26,31 @@ import java.util.ArrayList; import java.util.List; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * Initial attributes for the registration of a an existing group. */ @ApiModel(description = "Initial attributes for the registration of a an existing group.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class GroupRegister { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) @@ -217,7 +237,7 @@ public GroupRegister tags(List tags) { public GroupRegister addTagsItem(String tagsItem) { if (this.tags == null) { - this.tags = new ArrayList(); + this.tags = new ArrayList<>(); } this.tags.add(tagsItem); return this; @@ -286,6 +306,7 @@ public void setLicenseText(String licenseText) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -339,5 +360,126 @@ private String toIndentedString(Object o) { 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("description"); + openapiFields.add("name"); + openapiFields.add("parent"); + openapiFields.add("uri"); + openapiFields.add("logo"); + openapiFields.add("access_credentials_name"); + openapiFields.add("tags"); + openapiFields.add("license_id"); + openapiFields.add("license_text"); + + // 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 GroupRegister + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (GroupRegister.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GroupRegister.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GroupRegister' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GroupRegister.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GroupRegister value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GroupRegister read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of GroupRegister given an JSON string + * + * @param jsonString JSON string + * @return An instance of GroupRegister + * @throws IOException if the JSON string is invalid with respect to GroupRegister + */ + public static GroupRegister fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GroupRegister.class); + } + + /** + * Convert an instance of GroupRegister to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/GroupSharing.java b/src/main/java/org/openapitools/client/model/GroupSharing.java index 5225f3c..580104a 100644 --- a/src/main/java/org/openapitools/client/model/GroupSharing.java +++ b/src/main/java/org/openapitools/client/model/GroupSharing.java @@ -28,11 +28,31 @@ import org.openapitools.client.model.ArrayActions; import org.openapitools.client.model.GroupActions; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.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-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class GroupSharing { public static final String SERIALIZED_NAME_GROUP_ACTIONS = "group_actions"; @SerializedName(SERIALIZED_NAME_GROUP_ACTIONS) @@ -61,7 +81,7 @@ public GroupSharing groupActions(List groupActions) { public GroupSharing addGroupActionsItem(GroupActions groupActionsItem) { if (this.groupActions == null) { - this.groupActions = new ArrayList(); + this.groupActions = new ArrayList<>(); } this.groupActions.add(groupActionsItem); return this; @@ -92,7 +112,7 @@ public GroupSharing arrayActions(List arrayActions) { public GroupSharing addArrayActionsItem(ArrayActions arrayActionsItem) { if (this.arrayActions == null) { - this.arrayActions = new ArrayList(); + this.arrayActions = new ArrayList<>(); } this.arrayActions.add(arrayActionsItem); return this; @@ -161,6 +181,7 @@ public void setNamespaceType(String namespaceType) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -204,5 +225,107 @@ private String toIndentedString(Object o) { 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("group_actions"); + openapiFields.add("array_actions"); + openapiFields.add("namespace"); + openapiFields.add("namespace_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 GroupSharing + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (GroupSharing.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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()) { + 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()) { + 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()) { + 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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GroupSharing.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GroupSharing' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GroupSharing.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GroupSharing value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GroupSharing read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of GroupSharing given an JSON string + * + * @param jsonString JSON string + * @return An instance of GroupSharing + * @throws IOException if the JSON string is invalid with respect to GroupSharing + */ + public static GroupSharing fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GroupSharing.class); + } + + /** + * Convert an instance of GroupSharing to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/GroupSharingRequest.java b/src/main/java/org/openapitools/client/model/GroupSharingRequest.java index cb10c88..38ba778 100644 --- a/src/main/java/org/openapitools/client/model/GroupSharingRequest.java +++ b/src/main/java/org/openapitools/client/model/GroupSharingRequest.java @@ -28,11 +28,31 @@ import org.openapitools.client.model.ArrayActions; import org.openapitools.client.model.GroupActions; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.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-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class GroupSharingRequest { public static final String SERIALIZED_NAME_GROUP_ACTIONS = "group_actions"; @SerializedName(SERIALIZED_NAME_GROUP_ACTIONS) @@ -57,7 +77,7 @@ public GroupSharingRequest groupActions(List groupActions) { public GroupSharingRequest addGroupActionsItem(GroupActions groupActionsItem) { if (this.groupActions == null) { - this.groupActions = new ArrayList(); + this.groupActions = new ArrayList<>(); } this.groupActions.add(groupActionsItem); return this; @@ -88,7 +108,7 @@ public GroupSharingRequest arrayActions(List arrayActions) { public GroupSharingRequest addArrayActionsItem(ArrayActions arrayActionsItem) { if (this.arrayActions == null) { - this.arrayActions = new ArrayList(); + this.arrayActions = new ArrayList<>(); } this.arrayActions.add(arrayActionsItem); return this; @@ -134,6 +154,7 @@ public void setNamespace(String namespace) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -175,5 +196,103 @@ private String toIndentedString(Object o) { 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("group_actions"); + openapiFields.add("array_actions"); + openapiFields.add("namespace"); + + // 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 GroupSharingRequest + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (GroupSharingRequest.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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()) { + 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()) { + 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 (!GroupSharingRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GroupSharingRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GroupSharingRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GroupSharingRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GroupSharingRequest read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of GroupSharingRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of GroupSharingRequest + * @throws IOException if the JSON string is invalid with respect to GroupSharingRequest + */ + public static GroupSharingRequest fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GroupSharingRequest.class); + } + + /** + * Convert an instance of GroupSharingRequest to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/GroupUpdate.java b/src/main/java/org/openapitools/client/model/GroupUpdate.java index f08e84c..9daf598 100644 --- a/src/main/java/org/openapitools/client/model/GroupUpdate.java +++ b/src/main/java/org/openapitools/client/model/GroupUpdate.java @@ -25,12 +25,33 @@ 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.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.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-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class GroupUpdate { public static final String SERIALIZED_NAME_DESCRIPTION = "description"; @SerializedName(SERIALIZED_NAME_DESCRIPTION) @@ -163,7 +184,7 @@ public GroupUpdate tags(List tags) { public GroupUpdate addTagsItem(String tagsItem) { if (this.tags == null) { - this.tags = new ArrayList(); + this.tags = new ArrayList<>(); } this.tags.add(tagsItem); return this; @@ -232,6 +253,7 @@ public void setLicenseText(String licenseText) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -250,11 +272,22 @@ public boolean equals(Object o) { Objects.equals(this.licenseText, groupUpdate.licenseText); } + 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(description, name, logo, accessCredentialsName, tags, licenseId, licenseText); } + 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(); @@ -281,5 +314,118 @@ private String toIndentedString(Object o) { 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("description"); + openapiFields.add("name"); + openapiFields.add("logo"); + openapiFields.add("access_credentials_name"); + openapiFields.add("tags"); + openapiFields.add("license_id"); + openapiFields.add("license_text"); + + // 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 GroupUpdate + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (GroupUpdate.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!GroupUpdate.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'GroupUpdate' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(GroupUpdate.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, GroupUpdate value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public GroupUpdate read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of GroupUpdate given an JSON string + * + * @param jsonString JSON string + * @return An instance of GroupUpdate + * @throws IOException if the JSON string is invalid with respect to GroupUpdate + */ + public static GroupUpdate fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, GroupUpdate.class); + } + + /** + * Convert an instance of GroupUpdate to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/Invitation.java b/src/main/java/org/openapitools/client/model/Invitation.java index a119861..8624034 100644 --- a/src/main/java/org/openapitools/client/model/Invitation.java +++ b/src/main/java/org/openapitools/client/model/Invitation.java @@ -23,16 +23,36 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.time.OffsetDateTime; import org.openapitools.client.model.InvitationStatus; import org.openapitools.client.model.InvitationType; import org.openapitools.client.model.OrganizationRoles; -import org.threeten.bp.OffsetDateTime; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; /** * Invitations to share or collaborate */ @ApiModel(description = "Invitations to share or collaborate") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class Invitation { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -442,6 +462,7 @@ public void setAcceptedAt(OffsetDateTime acceptedAt) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -507,5 +528,131 @@ private String toIndentedString(Object o) { 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("invitation_type"); + openapiFields.add("owner_namespace_uuid"); + openapiFields.add("user_namespace_uuid"); + openapiFields.add("organization_user_uuid"); + openapiFields.add("organization_name"); + openapiFields.add("organization_role"); + openapiFields.add("array_uuid"); + openapiFields.add("array_name"); + openapiFields.add("email"); + openapiFields.add("actions"); + openapiFields.add("status"); + openapiFields.add("created_at"); + openapiFields.add("expires_at"); + openapiFields.add("accepted_at"); + + // 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 Invitation + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (Invitation.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!Invitation.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Invitation' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(Invitation.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Invitation value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public Invitation read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of Invitation given an JSON string + * + * @param jsonString JSON string + * @return An instance of Invitation + * @throws IOException if the JSON string is invalid with respect to Invitation + */ + public static Invitation fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, Invitation.class); + } + + /** + * Convert an instance of Invitation to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/InvitationArrayShareEmail.java b/src/main/java/org/openapitools/client/model/InvitationArrayShareEmail.java index 87999ea..a023cf3 100644 --- a/src/main/java/org/openapitools/client/model/InvitationArrayShareEmail.java +++ b/src/main/java/org/openapitools/client/model/InvitationArrayShareEmail.java @@ -27,19 +27,39 @@ import java.util.List; import org.openapitools.client.model.ArrayActions; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.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-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class InvitationArrayShareEmail { public static final String SERIALIZED_NAME_ACTIONS = "actions"; @SerializedName(SERIALIZED_NAME_ACTIONS) - private List actions = new ArrayList(); + private List actions = new ArrayList<>(); public static final String SERIALIZED_NAME_INVITEE_EMAIL = "invitee_email"; @SerializedName(SERIALIZED_NAME_INVITEE_EMAIL) - private List inviteeEmail = new ArrayList(); + private List inviteeEmail = new ArrayList<>(); public InvitationArrayShareEmail() { } @@ -100,6 +120,7 @@ public void setInviteeEmail(List inviteeEmail) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -139,5 +160,108 @@ private String toIndentedString(Object o) { 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("actions"); + openapiFields.add("invitee_email"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("actions"); + openapiRequiredFields.add("invitee_email"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to InvitationArrayShareEmail + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (InvitationArrayShareEmail.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in InvitationArrayShareEmail is not found in the empty JSON string", InvitationArrayShareEmail.openapiRequiredFields.toString())); + } + } + + 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) { + 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("actions") != null && !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()) { + 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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!InvitationArrayShareEmail.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'InvitationArrayShareEmail' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(InvitationArrayShareEmail.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, InvitationArrayShareEmail value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public InvitationArrayShareEmail read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of InvitationArrayShareEmail given an JSON string + * + * @param jsonString JSON string + * @return An instance of InvitationArrayShareEmail + * @throws IOException if the JSON string is invalid with respect to InvitationArrayShareEmail + */ + public static InvitationArrayShareEmail fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, InvitationArrayShareEmail.class); + } + + /** + * Convert an instance of InvitationArrayShareEmail to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/InvitationData.java b/src/main/java/org/openapitools/client/model/InvitationData.java index 0de793d..31003c9 100644 --- a/src/main/java/org/openapitools/client/model/InvitationData.java +++ b/src/main/java/org/openapitools/client/model/InvitationData.java @@ -28,11 +28,31 @@ import org.openapitools.client.model.Invitation; import org.openapitools.client.model.PaginationMetadata; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * Object including invitations and metadata */ @ApiModel(description = "Object including invitations and metadata") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class InvitationData { public static final String SERIALIZED_NAME_INVITATIONS = "invitations"; @SerializedName(SERIALIZED_NAME_INVITATIONS) @@ -53,7 +73,7 @@ public InvitationData invitations(List invitations) { public InvitationData addInvitationsItem(Invitation invitationsItem) { if (this.invitations == null) { - this.invitations = new ArrayList(); + this.invitations = new ArrayList<>(); } this.invitations.add(invitationsItem); return this; @@ -99,6 +119,7 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -138,5 +159,107 @@ private String toIndentedString(Object o) { 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("invitations"); + 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 InvitationData + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (InvitationData.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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 + if (!jsonObj.get("invitations").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `invitations` to be an array in the JSON string but got `%s`", jsonObj.get("invitations").toString())); + } + + // validate the optional field `invitations` (array) + for (int i = 0; i < jsonArrayinvitations.size(); i++) { + Invitation.validateJsonObject(jsonArrayinvitations.get(i).getAsJsonObject()); + }; + } + // validate the optional field `pagination_metadata` + if (jsonObj.getAsJsonObject("pagination_metadata") != null) { + PaginationMetadata.validateJsonObject(jsonObj.getAsJsonObject("pagination_metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!InvitationData.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'InvitationData' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(InvitationData.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, InvitationData value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public InvitationData read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of InvitationData given an JSON string + * + * @param jsonString JSON string + * @return An instance of InvitationData + * @throws IOException if the JSON string is invalid with respect to InvitationData + */ + public static InvitationData fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, InvitationData.class); + } + + /** + * Convert an instance of InvitationData to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/InvitationOrganizationJoinEmail.java b/src/main/java/org/openapitools/client/model/InvitationOrganizationJoinEmail.java index fd43ab6..1d507ae 100644 --- a/src/main/java/org/openapitools/client/model/InvitationOrganizationJoinEmail.java +++ b/src/main/java/org/openapitools/client/model/InvitationOrganizationJoinEmail.java @@ -28,11 +28,31 @@ import org.openapitools.client.model.NamespaceActions; import org.openapitools.client.model.OrganizationRoles; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.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-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class InvitationOrganizationJoinEmail { public static final String SERIALIZED_NAME_ACTIONS = "actions"; @SerializedName(SERIALIZED_NAME_ACTIONS) @@ -44,7 +64,7 @@ public class InvitationOrganizationJoinEmail { public static final String SERIALIZED_NAME_INVITEE_EMAIL = "invitee_email"; @SerializedName(SERIALIZED_NAME_INVITEE_EMAIL) - private List inviteeEmail = new ArrayList(); + private List inviteeEmail = new ArrayList<>(); public InvitationOrganizationJoinEmail() { } @@ -57,7 +77,7 @@ public InvitationOrganizationJoinEmail actions(List actions) { public InvitationOrganizationJoinEmail addActionsItem(NamespaceActions actionsItem) { if (this.actions == null) { - this.actions = new ArrayList(); + this.actions = new ArrayList<>(); } this.actions.add(actionsItem); return this; @@ -131,6 +151,7 @@ public void setInviteeEmail(List inviteeEmail) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -172,5 +193,109 @@ private String toIndentedString(Object o) { 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("actions"); + openapiFields.add("organization_role"); + openapiFields.add("invitee_email"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("organization_role"); + openapiRequiredFields.add("invitee_email"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to InvitationOrganizationJoinEmail + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (InvitationOrganizationJoinEmail.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in InvitationOrganizationJoinEmail is not found in the empty JSON string", InvitationOrganizationJoinEmail.openapiRequiredFields.toString())); + } + } + + 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) { + 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("actions") != null && !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()) { + 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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!InvitationOrganizationJoinEmail.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'InvitationOrganizationJoinEmail' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(InvitationOrganizationJoinEmail.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, InvitationOrganizationJoinEmail value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public InvitationOrganizationJoinEmail read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of InvitationOrganizationJoinEmail given an JSON string + * + * @param jsonString JSON string + * @return An instance of InvitationOrganizationJoinEmail + * @throws IOException if the JSON string is invalid with respect to InvitationOrganizationJoinEmail + */ + public static InvitationOrganizationJoinEmail fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, InvitationOrganizationJoinEmail.class); + } + + /** + * Convert an instance of InvitationOrganizationJoinEmail to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/LastAccessedArray.java b/src/main/java/org/openapitools/client/model/LastAccessedArray.java index 0437e04..b7dbb20 100644 --- a/src/main/java/org/openapitools/client/model/LastAccessedArray.java +++ b/src/main/java/org/openapitools/client/model/LastAccessedArray.java @@ -26,11 +26,31 @@ import java.math.BigDecimal; import org.openapitools.client.model.ActivityEventType; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.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-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class LastAccessedArray { public static final String SERIALIZED_NAME_ARRAY_ID = "array_id"; @SerializedName(SERIALIZED_NAME_ARRAY_ID) @@ -170,6 +190,7 @@ public void setAccessType(ActivityEventType accessType) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -215,5 +236,103 @@ private String toIndentedString(Object o) { 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_id"); + openapiFields.add("array_name"); + openapiFields.add("namespace"); + openapiFields.add("accessed_time"); + openapiFields.add("access_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 LastAccessedArray + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (LastAccessedArray.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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()) { + 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()) { + 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 (!LastAccessedArray.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'LastAccessedArray' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(LastAccessedArray.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, LastAccessedArray value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public LastAccessedArray read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of LastAccessedArray given an JSON string + * + * @param jsonString JSON string + * @return An instance of LastAccessedArray + * @throws IOException if the JSON string is invalid with respect to LastAccessedArray + */ + public static LastAccessedArray fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, LastAccessedArray.class); + } + + /** + * Convert an instance of LastAccessedArray to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/MLModelFavorite.java b/src/main/java/org/openapitools/client/model/MLModelFavorite.java index a3ed316..061d7c1 100644 --- a/src/main/java/org/openapitools/client/model/MLModelFavorite.java +++ b/src/main/java/org/openapitools/client/model/MLModelFavorite.java @@ -24,11 +24,31 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * A user-favorite MLModel item */ @ApiModel(description = "A user-favorite MLModel item") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class MLModelFavorite { public static final String SERIALIZED_NAME_MLMODEL_UUID = "mlmodel_uuid"; @SerializedName(SERIALIZED_NAME_MLMODEL_UUID) @@ -114,6 +134,7 @@ public void setName(String name) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -155,5 +176,101 @@ private String toIndentedString(Object o) { 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("mlmodel_uuid"); + openapiFields.add("namespace"); + openapiFields.add("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 MLModelFavorite + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (MLModelFavorite.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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()) { + 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()) { + 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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!MLModelFavorite.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'MLModelFavorite' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(MLModelFavorite.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, MLModelFavorite value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public MLModelFavorite read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of MLModelFavorite given an JSON string + * + * @param jsonString JSON string + * @return An instance of MLModelFavorite + * @throws IOException if the JSON string is invalid with respect to MLModelFavorite + */ + public static MLModelFavorite fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, MLModelFavorite.class); + } + + /** + * Convert an instance of MLModelFavorite to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/MLModelFavoritesData.java b/src/main/java/org/openapitools/client/model/MLModelFavoritesData.java index 22b273e..16cacf5 100644 --- a/src/main/java/org/openapitools/client/model/MLModelFavoritesData.java +++ b/src/main/java/org/openapitools/client/model/MLModelFavoritesData.java @@ -28,11 +28,31 @@ import org.openapitools.client.model.ArrayInfo; import org.openapitools.client.model.PaginationMetadata; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.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-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class MLModelFavoritesData { public static final String SERIALIZED_NAME_MLMODELS = "mlmodels"; @SerializedName(SERIALIZED_NAME_MLMODELS) @@ -53,7 +73,7 @@ public MLModelFavoritesData mlmodels(List mlmodels) { public MLModelFavoritesData addMlmodelsItem(ArrayInfo mlmodelsItem) { if (this.mlmodels == null) { - this.mlmodels = new ArrayList(); + this.mlmodels = new ArrayList<>(); } this.mlmodels.add(mlmodelsItem); return this; @@ -99,6 +119,7 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -138,5 +159,107 @@ private String toIndentedString(Object o) { 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("mlmodels"); + 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 MLModelFavoritesData + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (MLModelFavoritesData.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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 + if (!jsonObj.get("mlmodels").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `mlmodels` to be an array in the JSON string but got `%s`", jsonObj.get("mlmodels").toString())); + } + + // validate the optional field `mlmodels` (array) + for (int i = 0; i < jsonArraymlmodels.size(); i++) { + ArrayInfo.validateJsonObject(jsonArraymlmodels.get(i).getAsJsonObject()); + }; + } + // validate the optional field `pagination_metadata` + if (jsonObj.getAsJsonObject("pagination_metadata") != null) { + PaginationMetadata.validateJsonObject(jsonObj.getAsJsonObject("pagination_metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!MLModelFavoritesData.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'MLModelFavoritesData' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(MLModelFavoritesData.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, MLModelFavoritesData value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public MLModelFavoritesData read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of MLModelFavoritesData given an JSON string + * + * @param jsonString JSON string + * @return An instance of MLModelFavoritesData + * @throws IOException if the JSON string is invalid with respect to MLModelFavoritesData + */ + public static MLModelFavoritesData fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, MLModelFavoritesData.class); + } + + /** + * Convert an instance of MLModelFavoritesData to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/MaxBufferSizes.java b/src/main/java/org/openapitools/client/model/MaxBufferSizes.java index dc0bc21..d4a0698 100644 --- a/src/main/java/org/openapitools/client/model/MaxBufferSizes.java +++ b/src/main/java/org/openapitools/client/model/MaxBufferSizes.java @@ -27,11 +27,31 @@ import java.util.List; import org.openapitools.client.model.AttributeBufferSize; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.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-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class MaxBufferSizes { public static final String SERIALIZED_NAME_MAX_BUFFER_SIZES = "maxBufferSizes"; @SerializedName(SERIALIZED_NAME_MAX_BUFFER_SIZES) @@ -48,7 +68,7 @@ public MaxBufferSizes maxBufferSizes(List maxBufferSizes) { public MaxBufferSizes addMaxBufferSizesItem(AttributeBufferSize maxBufferSizesItem) { if (this.maxBufferSizes == null) { - this.maxBufferSizes = new ArrayList(); + this.maxBufferSizes = new ArrayList<>(); } this.maxBufferSizes.add(maxBufferSizesItem); return this; @@ -71,6 +91,7 @@ public void setMaxBufferSizes(List maxBufferSizes) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -108,5 +129,102 @@ private String toIndentedString(Object o) { 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("maxBufferSizes"); + + // 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 MaxBufferSizes + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (MaxBufferSizes.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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 + if (!jsonObj.get("maxBufferSizes").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `maxBufferSizes` to be an array in the JSON string but got `%s`", jsonObj.get("maxBufferSizes").toString())); + } + + // validate the optional field `maxBufferSizes` (array) + for (int i = 0; i < jsonArraymaxBufferSizes.size(); i++) { + AttributeBufferSize.validateJsonObject(jsonArraymaxBufferSizes.get(i).getAsJsonObject()); + }; + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!MaxBufferSizes.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'MaxBufferSizes' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(MaxBufferSizes.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, MaxBufferSizes value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public MaxBufferSizes read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of MaxBufferSizes given an JSON string + * + * @param jsonString JSON string + * @return An instance of MaxBufferSizes + * @throws IOException if the JSON string is invalid with respect to MaxBufferSizes + */ + public static MaxBufferSizes fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, MaxBufferSizes.class); + } + + /** + * Convert an instance of MaxBufferSizes to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/MultiArrayUDF.java b/src/main/java/org/openapitools/client/model/MultiArrayUDF.java index d8adbab..bf8b3db 100644 --- a/src/main/java/org/openapitools/client/model/MultiArrayUDF.java +++ b/src/main/java/org/openapitools/client/model/MultiArrayUDF.java @@ -33,11 +33,31 @@ import org.openapitools.client.model.UDFSubarray; import org.openapitools.jackson.nullable.JsonNullable; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * User-defined function */ @ApiModel(description = "User-defined function") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+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) @@ -364,7 +384,7 @@ public MultiArrayUDF argumentsJson(List argumentsJson) { public MultiArrayUDF addArgumentsJsonItem(TGUDFArgument argumentsJsonItem) { if (this.argumentsJson == null) { - this.argumentsJson = new ArrayList(); + this.argumentsJson = new ArrayList<>(); } this.argumentsJson.add(argumentsJsonItem); return this; @@ -395,7 +415,7 @@ public MultiArrayUDF storedParamUuids(List storedParamUuids) { public MultiArrayUDF addStoredParamUuidsItem(String storedParamUuidsItem) { if (this.storedParamUuids == null) { - this.storedParamUuids = new ArrayList(); + this.storedParamUuids = new ArrayList<>(); } this.storedParamUuids.add(storedParamUuidsItem); return this; @@ -518,7 +538,7 @@ public MultiArrayUDF buffers(List buffers) { public MultiArrayUDF addBuffersItem(String buffersItem) { if (this.buffers == null) { - this.buffers = new ArrayList(); + this.buffers = new ArrayList<>(); } this.buffers.add(buffersItem); return this; @@ -549,7 +569,7 @@ public MultiArrayUDF arrays(List arrays) { public MultiArrayUDF addArraysItem(UDFArrayDetails arraysItem) { if (this.arrays == null) { - this.arrays = new ArrayList(); + this.arrays = new ArrayList<>(); } this.arrays.add(arraysItem); return this; @@ -641,6 +661,7 @@ public void setClientNodeUuid(String clientNodeUuid) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -729,5 +750,180 @@ private String toIndentedString(Object o) { 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("udf_info_name"); + openapiFields.add("language"); + openapiFields.add("version"); + openapiFields.add("image_name"); + openapiFields.add("resource_class"); + openapiFields.add("exec"); + openapiFields.add("exec_raw"); + openapiFields.add("result_format"); + openapiFields.add("task_name"); + openapiFields.add("argument"); + openapiFields.add("arguments_json"); + openapiFields.add("stored_param_uuids"); + openapiFields.add("store_results"); + openapiFields.add("dont_download_results"); + openapiFields.add("ranges"); + openapiFields.add("subarray"); + openapiFields.add("buffers"); + openapiFields.add("arrays"); + openapiFields.add("timeout"); + openapiFields.add("task_graph_uuid"); + openapiFields.add("client_node_uuid"); + + // 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 MultiArrayUDF + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (MultiArrayUDF.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + throw new IllegalArgumentException(String.format("Expected the field `argument` to be a primitive type in the JSON string but got `%s`", jsonObj.get("argument").toString())); + } + JsonArray jsonArrayargumentsJson = jsonObj.getAsJsonArray("arguments_json"); + if (jsonArrayargumentsJson != null) { + // ensure the json data is an array + if (!jsonObj.get("arguments_json").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `arguments_json` to be an array in the JSON string but got `%s`", jsonObj.get("arguments_json").toString())); + } + + // validate the optional field `arguments_json` (array) + for (int i = 0; i < jsonArrayargumentsJson.size(); i++) { + TGUDFArgument.validateJsonObject(jsonArrayargumentsJson.get(i).getAsJsonObject()); + }; + } + // ensure the json data is an array + if (jsonObj.get("stored_param_uuids") != null && !jsonObj.get("stored_param_uuids").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) { + QueryRanges.validateJsonObject(jsonObj.getAsJsonObject("ranges")); + } + // validate the optional field `subarray` + if (jsonObj.getAsJsonObject("subarray") != null) { + UDFSubarray.validateJsonObject(jsonObj.getAsJsonObject("subarray")); + } + // ensure the json data is an array + if (jsonObj.get("buffers") != null && !jsonObj.get("buffers").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `buffers` to be an array in the JSON string but got `%s`", jsonObj.get("buffers").toString())); + } + JsonArray jsonArrayarrays = jsonObj.getAsJsonArray("arrays"); + if (jsonArrayarrays != null) { + // ensure the json data is an array + if (!jsonObj.get("arrays").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `arrays` to be an array in the JSON string but got `%s`", jsonObj.get("arrays").toString())); + } + + // validate the optional field `arrays` (array) + for (int i = 0; i < jsonArrayarrays.size(); i++) { + UDFArrayDetails.validateJsonObject(jsonArrayarrays.get(i).getAsJsonObject()); + }; + } + if (jsonObj.get("task_graph_uuid") != null && !jsonObj.get("task_graph_uuid").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()) { + 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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!MultiArrayUDF.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'MultiArrayUDF' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(MultiArrayUDF.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, MultiArrayUDF value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public MultiArrayUDF read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of MultiArrayUDF given an JSON string + * + * @param jsonString JSON string + * @return An instance of MultiArrayUDF + * @throws IOException if the JSON string is invalid with respect to MultiArrayUDF + */ + public static MultiArrayUDF fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, MultiArrayUDF.class); + } + + /** + * Convert an instance of MultiArrayUDF to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/NonEmptyDomain.java b/src/main/java/org/openapitools/client/model/NonEmptyDomain.java index 1c00e25..c13fd1b 100644 --- a/src/main/java/org/openapitools/client/model/NonEmptyDomain.java +++ b/src/main/java/org/openapitools/client/model/NonEmptyDomain.java @@ -25,11 +25,31 @@ import java.io.IOException; import org.openapitools.client.model.DomainArray; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.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-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class NonEmptyDomain { public static final String SERIALIZED_NAME_NON_EMPTY_DOMAIN = "nonEmptyDomain"; @SerializedName(SERIALIZED_NAME_NON_EMPTY_DOMAIN) @@ -88,6 +108,7 @@ public void setIsEmpty(Boolean isEmpty) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -127,5 +148,104 @@ private String toIndentedString(Object o) { 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("nonEmptyDomain"); + openapiFields.add("isEmpty"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("nonEmptyDomain"); + openapiRequiredFields.add("isEmpty"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to NonEmptyDomain + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (NonEmptyDomain.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in NonEmptyDomain is not found in the empty JSON string", NonEmptyDomain.openapiRequiredFields.toString())); + } + } + + 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) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // validate the optional field `nonEmptyDomain` + if (jsonObj.getAsJsonObject("nonEmptyDomain") != null) { + DomainArray.validateJsonObject(jsonObj.getAsJsonObject("nonEmptyDomain")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!NonEmptyDomain.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'NonEmptyDomain' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(NonEmptyDomain.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, NonEmptyDomain value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public NonEmptyDomain read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of NonEmptyDomain given an JSON string + * + * @param jsonString JSON string + * @return An instance of NonEmptyDomain + * @throws IOException if the JSON string is invalid with respect to NonEmptyDomain + */ + public static NonEmptyDomain fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, NonEmptyDomain.class); + } + + /** + * Convert an instance of NonEmptyDomain to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/NotebookCopied.java b/src/main/java/org/openapitools/client/model/NotebookCopied.java index f122811..35b62ac 100644 --- a/src/main/java/org/openapitools/client/model/NotebookCopied.java +++ b/src/main/java/org/openapitools/client/model/NotebookCopied.java @@ -24,11 +24,31 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * Copied notebook uri and information */ @ApiModel(description = "Copied notebook uri and information") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class NotebookCopied { public static final String SERIALIZED_NAME_OUTPUT_URI = "output_uri"; @SerializedName(SERIALIZED_NAME_OUTPUT_URI) @@ -141,6 +161,7 @@ public void setId(String id) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -184,5 +205,113 @@ private String toIndentedString(Object o) { 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("output_uri"); + openapiFields.add("name"); + openapiFields.add("namespace"); + openapiFields.add("id"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("id"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to NotebookCopied + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (NotebookCopied.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in NotebookCopied is not found in the empty JSON string", NotebookCopied.openapiRequiredFields.toString())); + } + } + + 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()) { + 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()) { + 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()) { + 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()) { + 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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!NotebookCopied.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'NotebookCopied' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(NotebookCopied.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, NotebookCopied value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public NotebookCopied read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of NotebookCopied given an JSON string + * + * @param jsonString JSON string + * @return An instance of NotebookCopied + * @throws IOException if the JSON string is invalid with respect to NotebookCopied + */ + public static NotebookCopied fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, NotebookCopied.class); + } + + /** + * Convert an instance of NotebookCopied to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/NotebookCopy.java b/src/main/java/org/openapitools/client/model/NotebookCopy.java index 58f9619..255eeae 100644 --- a/src/main/java/org/openapitools/client/model/NotebookCopy.java +++ b/src/main/java/org/openapitools/client/model/NotebookCopy.java @@ -24,11 +24,31 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * Output information required to copy a notebook */ @ApiModel(description = "Output information required to copy a notebook") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class NotebookCopy { public static final String SERIALIZED_NAME_OUTPUT_URI = "output_uri"; @SerializedName(SERIALIZED_NAME_OUTPUT_URI) @@ -114,6 +134,7 @@ public void setNamespace(String namespace) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -155,5 +176,101 @@ private String toIndentedString(Object o) { 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("output_uri"); + openapiFields.add("name"); + openapiFields.add("namespace"); + + // 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 NotebookCopy + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (NotebookCopy.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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()) { + 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()) { + 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 (!NotebookCopy.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'NotebookCopy' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(NotebookCopy.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, NotebookCopy value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public NotebookCopy read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of NotebookCopy given an JSON string + * + * @param jsonString JSON string + * @return An instance of NotebookCopy + * @throws IOException if the JSON string is invalid with respect to NotebookCopy + */ + public static NotebookCopy fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, NotebookCopy.class); + } + + /** + * Convert an instance of NotebookCopy to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/NotebookFavorite.java b/src/main/java/org/openapitools/client/model/NotebookFavorite.java index 6654d0a..26641af 100644 --- a/src/main/java/org/openapitools/client/model/NotebookFavorite.java +++ b/src/main/java/org/openapitools/client/model/NotebookFavorite.java @@ -24,11 +24,31 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * A user-favorite notebook item */ @ApiModel(description = "A user-favorite notebook item") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class NotebookFavorite { public static final String SERIALIZED_NAME_NOTEBOOK_UUID = "notebook_uuid"; @SerializedName(SERIALIZED_NAME_NOTEBOOK_UUID) @@ -114,6 +134,7 @@ public void setName(String name) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -155,5 +176,101 @@ private String toIndentedString(Object o) { 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("notebook_uuid"); + openapiFields.add("namespace"); + openapiFields.add("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 NotebookFavorite + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (NotebookFavorite.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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()) { + 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()) { + 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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!NotebookFavorite.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'NotebookFavorite' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(NotebookFavorite.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, NotebookFavorite value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public NotebookFavorite read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of NotebookFavorite given an JSON string + * + * @param jsonString JSON string + * @return An instance of NotebookFavorite + * @throws IOException if the JSON string is invalid with respect to NotebookFavorite + */ + public static NotebookFavorite fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, NotebookFavorite.class); + } + + /** + * Convert an instance of NotebookFavorite to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/NotebookFavoritesData.java b/src/main/java/org/openapitools/client/model/NotebookFavoritesData.java index 38a62f5..af5bf45 100644 --- a/src/main/java/org/openapitools/client/model/NotebookFavoritesData.java +++ b/src/main/java/org/openapitools/client/model/NotebookFavoritesData.java @@ -28,11 +28,31 @@ import org.openapitools.client.model.ArrayInfo; import org.openapitools.client.model.PaginationMetadata; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.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-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class NotebookFavoritesData { public static final String SERIALIZED_NAME_NOTEBOOKS = "notebooks"; @SerializedName(SERIALIZED_NAME_NOTEBOOKS) @@ -53,7 +73,7 @@ public NotebookFavoritesData notebooks(List notebooks) { public NotebookFavoritesData addNotebooksItem(ArrayInfo notebooksItem) { if (this.notebooks == null) { - this.notebooks = new ArrayList(); + this.notebooks = new ArrayList<>(); } this.notebooks.add(notebooksItem); return this; @@ -99,6 +119,7 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -138,5 +159,107 @@ private String toIndentedString(Object o) { 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("notebooks"); + 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 NotebookFavoritesData + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (NotebookFavoritesData.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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 + if (!jsonObj.get("notebooks").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `notebooks` to be an array in the JSON string but got `%s`", jsonObj.get("notebooks").toString())); + } + + // validate the optional field `notebooks` (array) + for (int i = 0; i < jsonArraynotebooks.size(); i++) { + ArrayInfo.validateJsonObject(jsonArraynotebooks.get(i).getAsJsonObject()); + }; + } + // validate the optional field `pagination_metadata` + if (jsonObj.getAsJsonObject("pagination_metadata") != null) { + PaginationMetadata.validateJsonObject(jsonObj.getAsJsonObject("pagination_metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!NotebookFavoritesData.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'NotebookFavoritesData' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(NotebookFavoritesData.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, NotebookFavoritesData value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public NotebookFavoritesData read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of NotebookFavoritesData given an JSON string + * + * @param jsonString JSON string + * @return An instance of NotebookFavoritesData + * @throws IOException if the JSON string is invalid with respect to NotebookFavoritesData + */ + public static NotebookFavoritesData fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, NotebookFavoritesData.class); + } + + /** + * Convert an instance of NotebookFavoritesData to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/NotebookStatus.java b/src/main/java/org/openapitools/client/model/NotebookStatus.java index 020739a..c0be95c 100644 --- a/src/main/java/org/openapitools/client/model/NotebookStatus.java +++ b/src/main/java/org/openapitools/client/model/NotebookStatus.java @@ -24,11 +24,31 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * Status details of a notebook server */ @ApiModel(description = "Status details of a notebook server") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class NotebookStatus { public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) @@ -50,6 +70,14 @@ public class NotebookStatus { @SerializedName(SERIALIZED_NAME_MEMORY_LIMIT) private Integer memoryLimit; + public static final String SERIALIZED_NAME_STORAGE_USAGE = "storage_usage"; + @SerializedName(SERIALIZED_NAME_STORAGE_USAGE) + private Integer storageUsage; + + public static final String SERIALIZED_NAME_STORAGE_LIMIT = "storage_limit"; + @SerializedName(SERIALIZED_NAME_STORAGE_LIMIT) + private Integer storageLimit; + public static final String SERIALIZED_NAME_CPU_COUNT = "cpu_count"; @SerializedName(SERIALIZED_NAME_CPU_COUNT) private Integer cpuCount; @@ -172,6 +200,52 @@ public void setMemoryLimit(Integer memoryLimit) { } + public NotebookStatus storageUsage(Integer storageUsage) { + + this.storageUsage = storageUsage; + return this; + } + + /** + * storage usage in bytes + * @return storageUsage + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "1073741824", value = "storage usage in bytes") + + public Integer getStorageUsage() { + return storageUsage; + } + + + public void setStorageUsage(Integer storageUsage) { + this.storageUsage = storageUsage; + } + + + public NotebookStatus storageLimit(Integer storageLimit) { + + this.storageLimit = storageLimit; + return this; + } + + /** + * storage allocated to notebook server in bytes + * @return storageLimit + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "1073741824", value = "storage allocated to notebook server in bytes") + + public Integer getStorageLimit() { + return storageLimit; + } + + + public void setStorageLimit(Integer storageLimit) { + this.storageLimit = storageLimit; + } + + public NotebookStatus cpuCount(Integer cpuCount) { this.cpuCount = cpuCount; @@ -195,6 +269,7 @@ public void setCpuCount(Integer cpuCount) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -209,12 +284,14 @@ public boolean equals(Object o) { Objects.equals(this.cpuUsage, notebookStatus.cpuUsage) && Objects.equals(this.memoryUsage, notebookStatus.memoryUsage) && Objects.equals(this.memoryLimit, notebookStatus.memoryLimit) && + Objects.equals(this.storageUsage, notebookStatus.storageUsage) && + Objects.equals(this.storageLimit, notebookStatus.storageLimit) && Objects.equals(this.cpuCount, notebookStatus.cpuCount); } @Override public int hashCode() { - return Objects.hash(namespace, uptime, cpuUsage, memoryUsage, memoryLimit, cpuCount); + return Objects.hash(namespace, uptime, cpuUsage, memoryUsage, memoryLimit, storageUsage, storageLimit, cpuCount); } @Override @@ -226,6 +303,8 @@ public String toString() { sb.append(" cpuUsage: ").append(toIndentedString(cpuUsage)).append("\n"); sb.append(" memoryUsage: ").append(toIndentedString(memoryUsage)).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("}"); return sb.toString(); @@ -242,5 +321,100 @@ private String toIndentedString(Object o) { 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("namespace"); + openapiFields.add("uptime"); + openapiFields.add("cpu_usage"); + openapiFields.add("memory_usage"); + openapiFields.add("memory_limit"); + openapiFields.add("storage_usage"); + openapiFields.add("storage_limit"); + openapiFields.add("cpu_count"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to NotebookStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (NotebookStatus.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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 (!NotebookStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'NotebookStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(NotebookStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, NotebookStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public NotebookStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of NotebookStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of NotebookStatus + * @throws IOException if the JSON string is invalid with respect to NotebookStatus + */ + public static NotebookStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, NotebookStatus.class); + } + + /** + * Convert an instance of NotebookStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/Organization.java b/src/main/java/org/openapitools/client/model/Organization.java index 119db4a..5579dd7 100644 --- a/src/main/java/org/openapitools/client/model/Organization.java +++ b/src/main/java/org/openapitools/client/model/Organization.java @@ -24,19 +24,39 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.math.BigDecimal; +import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.List; import org.openapitools.client.model.NamespaceActions; import org.openapitools.client.model.OrganizationRoles; import org.openapitools.client.model.OrganizationUser; import org.openapitools.jackson.nullable.JsonNullable; -import org.threeten.bp.OffsetDateTime; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; /** * Organization */ @ApiModel(description = "Organization") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class Organization { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -282,7 +302,7 @@ public Organization users(List users) { public Organization addUsersItem(OrganizationUser usersItem) { if (this.users == null) { - this.users = new ArrayList(); + this.users = new ArrayList<>(); } this.users.add(usersItem); return this; @@ -313,7 +333,7 @@ public Organization allowedActions(List allowedActions) { public Organization addAllowedActionsItem(NamespaceActions allowedActionsItem) { if (this.allowedActions == null) { - this.allowedActions = new ArrayList(); + this.allowedActions = new ArrayList<>(); } this.allowedActions.add(allowedActionsItem); return this; @@ -447,6 +467,7 @@ public Boolean getStripeConnect() { + @Override public boolean equals(Object o) { if (this == o) { @@ -523,5 +544,150 @@ private String toIndentedString(Object o) { 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("role"); + openapiFields.add("name"); + openapiFields.add("created_at"); + openapiFields.add("updated_at"); + openapiFields.add("logo"); + openapiFields.add("description"); + openapiFields.add("users"); + openapiFields.add("allowed_actions"); + openapiFields.add("num_of_arrays"); + openapiFields.add("enabled_features"); + openapiFields.add("unpaid_subscription"); + openapiFields.add("default_s3_path"); + openapiFields.add("default_s3_path_credentials_name"); + openapiFields.add("stripe_connect"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("name"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to Organization + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (Organization.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in Organization is not found in the empty JSON string", Organization.openapiRequiredFields.toString())); + } + } + + 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()) { + 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()) { + 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()) { + 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()) { + throw new IllegalArgumentException(String.format("Expected the field `description` to be a primitive type in the JSON string but got `%s`", jsonObj.get("description").toString())); + } + JsonArray jsonArrayusers = jsonObj.getAsJsonArray("users"); + if (jsonArrayusers != null) { + // ensure the json data is an array + if (!jsonObj.get("users").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `users` to be an array in the JSON string but got `%s`", jsonObj.get("users").toString())); + } + + // validate the optional field `users` (array) + for (int i = 0; i < jsonArrayusers.size(); i++) { + OrganizationUser.validateJsonObject(jsonArrayusers.get(i).getAsJsonObject()); + }; + } + // ensure the json data is an array + if (jsonObj.get("allowed_actions") != null && !jsonObj.get("allowed_actions").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()) { + 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()) { + 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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!Organization.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Organization' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(Organization.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Organization value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public Organization read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of Organization given an JSON string + * + * @param jsonString JSON string + * @return An instance of Organization + * @throws IOException if the JSON string is invalid with respect to Organization + */ + public static Organization fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, Organization.class); + } + + /** + * Convert an instance of Organization to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/OrganizationUser.java b/src/main/java/org/openapitools/client/model/OrganizationUser.java index b640883..7ec1fb8 100644 --- a/src/main/java/org/openapitools/client/model/OrganizationUser.java +++ b/src/main/java/org/openapitools/client/model/OrganizationUser.java @@ -28,11 +28,31 @@ import org.openapitools.client.model.NamespaceActions; import org.openapitools.client.model.OrganizationRoles; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * user in an organization */ @ApiModel(description = "user in an organization") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class OrganizationUser { public static final String SERIALIZED_NAME_USER_ID = "user_id"; @SerializedName(SERIALIZED_NAME_USER_ID) @@ -184,7 +204,7 @@ public OrganizationUser allowedActions(List allowedActions) { public OrganizationUser addAllowedActionsItem(NamespaceActions allowedActionsItem) { if (this.allowedActions == null) { - this.allowedActions = new ArrayList(); + this.allowedActions = new ArrayList<>(); } this.allowedActions.add(allowedActionsItem); return this; @@ -207,6 +227,7 @@ public void setAllowedActions(List allowedActions) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -254,5 +275,111 @@ private String toIndentedString(Object o) { 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("user_id"); + openapiFields.add("organization_id"); + openapiFields.add("username"); + openapiFields.add("organization_name"); + openapiFields.add("role"); + openapiFields.add("allowed_actions"); + + // 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 OrganizationUser + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (OrganizationUser.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!OrganizationUser.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'OrganizationUser' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(OrganizationUser.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, OrganizationUser value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public OrganizationUser read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of OrganizationUser given an JSON string + * + * @param jsonString JSON string + * @return An instance of OrganizationUser + * @throws IOException if the JSON string is invalid with respect to OrganizationUser + */ + public static OrganizationUser fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, OrganizationUser.class); + } + + /** + * Convert an instance of OrganizationUser to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/PaginationMetadata.java b/src/main/java/org/openapitools/client/model/PaginationMetadata.java index 47b72df..9494cd3 100644 --- a/src/main/java/org/openapitools/client/model/PaginationMetadata.java +++ b/src/main/java/org/openapitools/client/model/PaginationMetadata.java @@ -25,10 +25,30 @@ import java.io.IOException; import java.math.BigDecimal; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * PaginationMetadata */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class PaginationMetadata { public static final String SERIALIZED_NAME_PAGE = "page"; @SerializedName(SERIALIZED_NAME_PAGE) @@ -141,6 +161,7 @@ public void setTotalItems(BigDecimal totalItems) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -184,5 +205,93 @@ private String toIndentedString(Object o) { 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("page"); + openapiFields.add("per_page"); + openapiFields.add("total_pages"); + openapiFields.add("total_items"); + + // 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 PaginationMetadata + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (PaginationMetadata.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in PaginationMetadata is not found in the empty JSON string", 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 { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PaginationMetadata.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PaginationMetadata' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PaginationMetadata.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PaginationMetadata value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public PaginationMetadata read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of PaginationMetadata given an JSON string + * + * @param jsonString JSON string + * @return An instance of PaginationMetadata + * @throws IOException if the JSON string is invalid with respect to PaginationMetadata + */ + public static PaginationMetadata fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PaginationMetadata.class); + } + + /** + * Convert an instance of PaginationMetadata to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/Pricing.java b/src/main/java/org/openapitools/client/model/Pricing.java index bdf9ee5..2cf62fe 100644 --- a/src/main/java/org/openapitools/client/model/Pricing.java +++ b/src/main/java/org/openapitools/client/model/Pricing.java @@ -29,11 +29,31 @@ import org.openapitools.client.model.PricingType; import org.openapitools.client.model.PricingUnitLabel; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.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-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class Pricing { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -389,6 +409,7 @@ public void setActivated(Boolean activated) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -450,5 +471,117 @@ private String toIndentedString(Object o) { 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("array_uuid"); + openapiFields.add("pricing_name"); + openapiFields.add("pricing_type"); + openapiFields.add("product_name"); + openapiFields.add("product_statement_descriptor"); + openapiFields.add("product_unit_label"); + openapiFields.add("currency"); + openapiFields.add("aggregate_usage"); + openapiFields.add("interval"); + openapiFields.add("divided_by"); + openapiFields.add("charge"); + openapiFields.add("activated"); + + // 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 Pricing + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (Pricing.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!Pricing.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Pricing' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(Pricing.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Pricing value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public Pricing read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of Pricing given an JSON string + * + * @param jsonString JSON string + * @return An instance of Pricing + * @throws IOException if the JSON string is invalid with respect to Pricing + */ + public static Pricing fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, Pricing.class); + } + + /** + * Convert an instance of Pricing to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/Query.java b/src/main/java/org/openapitools/client/model/Query.java index ae089e5..05e6729 100644 --- a/src/main/java/org/openapitools/client/model/Query.java +++ b/src/main/java/org/openapitools/client/model/Query.java @@ -32,10 +32,30 @@ import org.openapitools.client.model.Querytype; import org.openapitools.client.model.Writer; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * Query */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class Query { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -51,7 +71,7 @@ public class Query { public static final String SERIALIZED_NAME_ATTRIBUTE_BUFFER_HEADERS = "attributeBufferHeaders"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE_BUFFER_HEADERS) - private List attributeBufferHeaders = new ArrayList(); + private List attributeBufferHeaders = new ArrayList<>(); public static final String SERIALIZED_NAME_WRITER = "writer"; @SerializedName(SERIALIZED_NAME_WRITER) @@ -288,6 +308,7 @@ public void setTotalVarLenBufferBytes(Integer totalVarLenBufferBytes) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -341,5 +362,136 @@ private String toIndentedString(Object o) { 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("type"); + openapiFields.add("layout"); + openapiFields.add("status"); + openapiFields.add("attributeBufferHeaders"); + openapiFields.add("writer"); + openapiFields.add("reader"); + openapiFields.add("array"); + openapiFields.add("totalFixedLengthBufferBytes"); + openapiFields.add("totalVarLenBufferBytes"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("type"); + openapiRequiredFields.add("layout"); + openapiRequiredFields.add("status"); + openapiRequiredFields.add("attributeBufferHeaders"); + openapiRequiredFields.add("array"); + openapiRequiredFields.add("totalFixedLengthBufferBytes"); + openapiRequiredFields.add("totalVarLenBufferBytes"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to Query + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (Query.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in Query is not found in the empty JSON string", Query.openapiRequiredFields.toString())); + } + } + + 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) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + JsonArray jsonArrayattributeBufferHeaders = jsonObj.getAsJsonArray("attributeBufferHeaders"); + if (jsonArrayattributeBufferHeaders != null) { + // ensure the json data is an array + if (!jsonObj.get("attributeBufferHeaders").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `attributeBufferHeaders` to be an array in the JSON string but got `%s`", jsonObj.get("attributeBufferHeaders").toString())); + } + + // validate the optional field `attributeBufferHeaders` (array) + for (int i = 0; i < jsonArrayattributeBufferHeaders.size(); i++) { + AttributeBufferHeader.validateJsonObject(jsonArrayattributeBufferHeaders.get(i).getAsJsonObject()); + }; + } + // validate the optional field `writer` + if (jsonObj.getAsJsonObject("writer") != null) { + Writer.validateJsonObject(jsonObj.getAsJsonObject("writer")); + } + // validate the optional field `reader` + if (jsonObj.getAsJsonObject("reader") != null) { + QueryReader.validateJsonObject(jsonObj.getAsJsonObject("reader")); + } + // validate the optional field `array` + if (jsonObj.getAsJsonObject("array") != null) { + Array.validateJsonObject(jsonObj.getAsJsonObject("array")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!Query.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Query' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(Query.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Query value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public Query read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of Query given an JSON string + * + * @param jsonString JSON string + * @return An instance of Query + * @throws IOException if the JSON string is invalid with respect to Query + */ + public static Query fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, Query.class); + } + + /** + * Convert an instance of Query to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/QueryJson.java b/src/main/java/org/openapitools/client/model/QueryJson.java index b3a60df..cb7524f 100644 --- a/src/main/java/org/openapitools/client/model/QueryJson.java +++ b/src/main/java/org/openapitools/client/model/QueryJson.java @@ -27,11 +27,31 @@ import java.util.List; import org.openapitools.client.model.QueryRanges; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * Query returning results as JSON */ @ApiModel(description = "Query returning results as JSON") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class QueryJson { public static final String SERIALIZED_NAME_QUERY_RANGES = "query_ranges"; @SerializedName(SERIALIZED_NAME_QUERY_RANGES) @@ -75,7 +95,7 @@ public QueryJson fields(List fields) { public QueryJson addFieldsItem(String fieldsItem) { if (this.fields == null) { - this.fields = new ArrayList(); + this.fields = new ArrayList<>(); } this.fields.add(fieldsItem); return this; @@ -98,6 +118,7 @@ public void setFields(List fields) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -137,5 +158,99 @@ private String toIndentedString(Object o) { 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("query_ranges"); + openapiFields.add("fields"); + + // 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 QueryJson + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (QueryJson.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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) { + QueryRanges.validateJsonObject(jsonObj.getAsJsonObject("query_ranges")); + } + // ensure the json data is an array + if (jsonObj.get("fields") != null && !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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!QueryJson.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'QueryJson' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(QueryJson.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, QueryJson value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public QueryJson read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of QueryJson given an JSON string + * + * @param jsonString JSON string + * @return An instance of QueryJson + * @throws IOException if the JSON string is invalid with respect to QueryJson + */ + public static QueryJson fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, QueryJson.class); + } + + /** + * Convert an instance of QueryJson to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/QueryRanges.java b/src/main/java/org/openapitools/client/model/QueryRanges.java index a974912..7dc70f3 100644 --- a/src/main/java/org/openapitools/client/model/QueryRanges.java +++ b/src/main/java/org/openapitools/client/model/QueryRanges.java @@ -28,11 +28,31 @@ import java.util.List; import org.openapitools.client.model.Layout; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * Subarray bounds to query */ @ApiModel(description = "Subarray bounds to query") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class QueryRanges { public static final String SERIALIZED_NAME_LAYOUT = "layout"; @SerializedName(SERIALIZED_NAME_LAYOUT) @@ -76,7 +96,7 @@ public QueryRanges ranges(List> ranges) { public QueryRanges addRangesItem(List rangesItem) { if (this.ranges == null) { - this.ranges = new ArrayList>(); + this.ranges = new ArrayList<>(); } this.ranges.add(rangesItem); return this; @@ -99,6 +119,7 @@ public void setRanges(List> ranges) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -138,5 +159,95 @@ private String toIndentedString(Object o) { 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("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 QueryRanges + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (QueryRanges.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + throw new IllegalArgumentException(String.format("Expected the field `ranges` to be an array in the JSON string but got `%s`", jsonObj.get("ranges").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!QueryRanges.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'QueryRanges' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(QueryRanges.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, QueryRanges value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public QueryRanges read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of QueryRanges given an JSON string + * + * @param jsonString JSON string + * @return An instance of QueryRanges + * @throws IOException if the JSON string is invalid with respect to QueryRanges + */ + public static QueryRanges fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, QueryRanges.class); + } + + /** + * Convert an instance of QueryRanges to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/QueryReader.java b/src/main/java/org/openapitools/client/model/QueryReader.java index a7b1315..4d491f1 100644 --- a/src/main/java/org/openapitools/client/model/QueryReader.java +++ b/src/main/java/org/openapitools/client/model/QueryReader.java @@ -27,11 +27,31 @@ import org.openapitools.client.model.ReadState; import org.openapitools.client.model.Subarray; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.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-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class QueryReader { public static final String SERIALIZED_NAME_LAYOUT = "layout"; @SerializedName(SERIALIZED_NAME_LAYOUT) @@ -198,6 +218,7 @@ public void setVarOffsetsBitsize(Integer varOffsetsBitsize) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -245,5 +266,106 @@ private String toIndentedString(Object o) { 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("subarray"); + openapiFields.add("readState"); + openapiFields.add("varOffsetsMode"); + openapiFields.add("varOffsetsAddExtraElement"); + openapiFields.add("varOffsetsBitsize"); + + // 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 QueryReader + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (QueryReader.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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) { + Subarray.validateJsonObject(jsonObj.getAsJsonObject("subarray")); + } + // validate the optional field `readState` + if (jsonObj.getAsJsonObject("readState") != null) { + ReadState.validateJsonObject(jsonObj.getAsJsonObject("readState")); + } + if (jsonObj.get("varOffsetsMode") != null && !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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!QueryReader.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'QueryReader' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(QueryReader.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, QueryReader value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public QueryReader read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of QueryReader given an JSON string + * + * @param jsonString JSON string + * @return An instance of QueryReader + * @throws IOException if the JSON string is invalid with respect to QueryReader + */ + public static QueryReader fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, QueryReader.class); + } + + /** + * Convert an instance of QueryReader to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/ReadState.java b/src/main/java/org/openapitools/client/model/ReadState.java index be6cd32..86432f6 100644 --- a/src/main/java/org/openapitools/client/model/ReadState.java +++ b/src/main/java/org/openapitools/client/model/ReadState.java @@ -25,11 +25,31 @@ import java.io.IOException; import org.openapitools.client.model.SubarrayPartitioner; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * state for reads */ @ApiModel(description = "state for reads") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class ReadState { public static final String SERIALIZED_NAME_INITIALIZED = "initialized"; @SerializedName(SERIALIZED_NAME_INITIALIZED) @@ -142,6 +162,7 @@ public void setSubarrayPartitioner(SubarrayPartitioner subarrayPartitioner) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -185,5 +206,97 @@ private String toIndentedString(Object o) { 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("initialized"); + openapiFields.add("overflowed"); + openapiFields.add("unsplittable"); + openapiFields.add("subarrayPartitioner"); + + // 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 ReadState + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (ReadState.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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) { + SubarrayPartitioner.validateJsonObject(jsonObj.getAsJsonObject("subarrayPartitioner")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ReadState.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ReadState' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ReadState.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ReadState value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ReadState read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ReadState given an JSON string + * + * @param jsonString JSON string + * @return An instance of ReadState + * @throws IOException if the JSON string is invalid with respect to ReadState + */ + public static ReadState fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ReadState.class); + } + + /** + * Convert an instance of ReadState to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/RegisteredTaskGraph.java b/src/main/java/org/openapitools/client/model/RegisteredTaskGraph.java index 37fa405..bfdd2df 100644 --- a/src/main/java/org/openapitools/client/model/RegisteredTaskGraph.java +++ b/src/main/java/org/openapitools/client/model/RegisteredTaskGraph.java @@ -28,11 +28,31 @@ import org.openapitools.client.model.RegisteredTaskGraphNode; import org.openapitools.jackson.nullable.JsonNullable; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.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-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class RegisteredTaskGraph { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) @@ -215,7 +235,7 @@ public RegisteredTaskGraph tags(List tags) { public RegisteredTaskGraph addTagsItem(String tagsItem) { if (this.tags == null) { - this.tags = new ArrayList(); + this.tags = new ArrayList<>(); } this.tags.add(tagsItem); return this; @@ -246,7 +266,7 @@ public RegisteredTaskGraph nodes(List nodes) { public RegisteredTaskGraph addNodesItem(RegisteredTaskGraphNode nodesItem) { if (this.nodes == null) { - this.nodes = new ArrayList(); + this.nodes = new ArrayList<>(); } this.nodes.add(nodesItem); return this; @@ -269,6 +289,7 @@ public void setNodes(List nodes) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -331,5 +352,131 @@ private String toIndentedString(Object o) { 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("name"); + openapiFields.add("readme"); + openapiFields.add("license_id"); + openapiFields.add("license_text"); + openapiFields.add("tags"); + openapiFields.add("nodes"); + + // 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 RegisteredTaskGraph + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (RegisteredTaskGraph.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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())); + } + // 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())); + } + 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++) { + RegisteredTaskGraphNode.validateJsonObject(jsonArraynodes.get(i).getAsJsonObject()); + }; + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!RegisteredTaskGraph.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'RegisteredTaskGraph' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(RegisteredTaskGraph.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, RegisteredTaskGraph value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public RegisteredTaskGraph read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of RegisteredTaskGraph given an JSON string + * + * @param jsonString JSON string + * @return An instance of RegisteredTaskGraph + * @throws IOException if the JSON string is invalid with respect to RegisteredTaskGraph + */ + public static RegisteredTaskGraph fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, RegisteredTaskGraph.class); + } + + /** + * Convert an instance of RegisteredTaskGraph to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/RegisteredTaskGraphNode.java b/src/main/java/org/openapitools/client/model/RegisteredTaskGraphNode.java index d94b9d1..523dbae 100644 --- a/src/main/java/org/openapitools/client/model/RegisteredTaskGraphNode.java +++ b/src/main/java/org/openapitools/client/model/RegisteredTaskGraphNode.java @@ -31,11 +31,31 @@ import org.openapitools.client.model.UDFArrayDetails; import org.openapitools.jackson.nullable.JsonNullable; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.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 = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@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) @@ -122,7 +142,7 @@ public RegisteredTaskGraphNode dependsOn(List dependsOn) { public RegisteredTaskGraphNode addDependsOnItem(String dependsOnItem) { if (this.dependsOn == null) { - this.dependsOn = new ArrayList(); + this.dependsOn = new ArrayList<>(); } this.dependsOn.add(dependsOnItem); return this; @@ -237,6 +257,7 @@ public void setUdfNode(TGUDFNodeData udfNode) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -297,5 +318,122 @@ private String toIndentedString(Object o) { 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/org/openapitools/client/model/ResetUserPasswordRequest.java b/src/main/java/org/openapitools/client/model/ResetUserPasswordRequest.java new file mode 100644 index 0000000..41fccee --- /dev/null +++ b/src/main/java/org/openapitools/client/model/ResetUserPasswordRequest.java @@ -0,0 +1,210 @@ +/* + * 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 org.openapitools.client.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + +/** + * 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]") +public class ResetUserPasswordRequest { + public static final String SERIALIZED_NAME_PASSWORD = "password"; + @SerializedName(SERIALIZED_NAME_PASSWORD) + private String password; + + public ResetUserPasswordRequest() { + } + + public ResetUserPasswordRequest password(String password) { + + this.password = password; + return this; + } + + /** + * password + * @return password + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "password", value = "password") + + public String getPassword() { + return password; + } + + + public void setPassword(String password) { + this.password = password; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ResetUserPasswordRequest resetUserPasswordRequest = (ResetUserPasswordRequest) o; + return Objects.equals(this.password, resetUserPasswordRequest.password); + } + + @Override + public int hashCode() { + return Objects.hash(password); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResetUserPasswordRequest {\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 "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("password"); + + // 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 ResetUserPasswordRequest + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (ResetUserPasswordRequest.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ResetUserPasswordRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ResetUserPasswordRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ResetUserPasswordRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ResetUserPasswordRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public ResetUserPasswordRequest read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ResetUserPasswordRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of ResetUserPasswordRequest + * @throws IOException if the JSON string is invalid with respect to ResetUserPasswordRequest + */ + public static ResetUserPasswordRequest fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ResetUserPasswordRequest.class); + } + + /** + * Convert an instance of ResetUserPasswordRequest to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/org/openapitools/client/model/SQLParameters.java b/src/main/java/org/openapitools/client/model/SQLParameters.java index 6a50c6f..bd53405 100644 --- a/src/main/java/org/openapitools/client/model/SQLParameters.java +++ b/src/main/java/org/openapitools/client/model/SQLParameters.java @@ -27,11 +27,31 @@ import java.util.List; import org.openapitools.client.model.ResultFormat; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * Parameters for running sql query */ @ApiModel(description = "Parameters for running sql query") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class SQLParameters { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -53,6 +73,10 @@ public class SQLParameters { @SerializedName(SERIALIZED_NAME_DONT_DOWNLOAD_RESULTS) private Boolean dontDownloadResults; + public static final String SERIALIZED_NAME_RESOURCE_CLASS = "resource_class"; + @SerializedName(SERIALIZED_NAME_RESOURCE_CLASS) + private String resourceClass; + public static final String SERIALIZED_NAME_RESULT_FORMAT = "result_format"; @SerializedName(SERIALIZED_NAME_RESULT_FORMAT) private ResultFormat resultFormat; @@ -191,6 +215,29 @@ public void setDontDownloadResults(Boolean dontDownloadResults) { } + public SQLParameters resourceClass(String resourceClass) { + + this.resourceClass = resourceClass; + return this; + } + + /** + * The resource class to use for the SQL execution. Resource classes define resource limits for memory and CPUs. If this is empty, then the SQL will execute in the standard resource class of the TileDB Cloud provider. + * @return resourceClass + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "standard", value = "The resource class to use for the SQL execution. Resource classes define resource limits for memory and CPUs. If this is empty, then the SQL will execute in the standard resource class of the TileDB Cloud provider. ") + + public String getResourceClass() { + return resourceClass; + } + + + public void setResourceClass(String resourceClass) { + this.resourceClass = resourceClass; + } + + public SQLParameters resultFormat(ResultFormat resultFormat) { this.resultFormat = resultFormat; @@ -222,7 +269,7 @@ public SQLParameters initCommands(List initCommands) { public SQLParameters addInitCommandsItem(String initCommandsItem) { if (this.initCommands == null) { - this.initCommands = new ArrayList(); + this.initCommands = new ArrayList<>(); } this.initCommands.add(initCommandsItem); return this; @@ -253,7 +300,7 @@ public SQLParameters parameters(List parameters) { public SQLParameters addParametersItem(Object parametersItem) { if (this.parameters == null) { - this.parameters = new ArrayList(); + this.parameters = new ArrayList<>(); } this.parameters.add(parametersItem); return this; @@ -322,6 +369,7 @@ public void setClientNodeUuid(String clientNodeUuid) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -336,6 +384,7 @@ public boolean equals(Object o) { Objects.equals(this.outputUri, sqLParameters.outputUri) && Objects.equals(this.storeResults, sqLParameters.storeResults) && Objects.equals(this.dontDownloadResults, sqLParameters.dontDownloadResults) && + Objects.equals(this.resourceClass, sqLParameters.resourceClass) && Objects.equals(this.resultFormat, sqLParameters.resultFormat) && Objects.equals(this.initCommands, sqLParameters.initCommands) && Objects.equals(this.parameters, sqLParameters.parameters) && @@ -345,7 +394,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(name, query, outputUri, storeResults, dontDownloadResults, resultFormat, initCommands, parameters, taskGraphUuid, clientNodeUuid); + return Objects.hash(name, query, outputUri, storeResults, dontDownloadResults, resourceClass, resultFormat, initCommands, parameters, taskGraphUuid, clientNodeUuid); } @Override @@ -357,6 +406,7 @@ public String toString() { sb.append(" outputUri: ").append(toIndentedString(outputUri)).append("\n"); sb.append(" storeResults: ").append(toIndentedString(storeResults)).append("\n"); sb.append(" dontDownloadResults: ").append(toIndentedString(dontDownloadResults)).append("\n"); + sb.append(" resourceClass: ").append(toIndentedString(resourceClass)).append("\n"); sb.append(" resultFormat: ").append(toIndentedString(resultFormat)).append("\n"); sb.append(" initCommands: ").append(toIndentedString(initCommands)).append("\n"); sb.append(" parameters: ").append(toIndentedString(parameters)).append("\n"); @@ -377,5 +427,126 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("name"); + openapiFields.add("query"); + openapiFields.add("output_uri"); + openapiFields.add("store_results"); + openapiFields.add("dont_download_results"); + openapiFields.add("resource_class"); + openapiFields.add("result_format"); + openapiFields.add("init_commands"); + openapiFields.add("parameters"); + openapiFields.add("task_graph_uuid"); + openapiFields.add("client_node_uuid"); + + // 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 SQLParameters + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (SQLParameters.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!SQLParameters.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SQLParameters' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(SQLParameters.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SQLParameters value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SQLParameters read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of SQLParameters given an JSON string + * + * @param jsonString JSON string + * @return An instance of SQLParameters + * @throws IOException if the JSON string is invalid with respect to SQLParameters + */ + public static SQLParameters fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, SQLParameters.class); + } + + /** + * Convert an instance of SQLParameters to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/Subarray.java b/src/main/java/org/openapitools/client/model/Subarray.java index 03911ce..f64f66a 100644 --- a/src/main/java/org/openapitools/client/model/Subarray.java +++ b/src/main/java/org/openapitools/client/model/Subarray.java @@ -28,11 +28,31 @@ import org.openapitools.client.model.Layout; import org.openapitools.client.model.SubarrayRanges; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * A Subarray */ @ApiModel(description = "A Subarray") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class Subarray { public static final String SERIALIZED_NAME_LAYOUT = "layout"; @SerializedName(SERIALIZED_NAME_LAYOUT) @@ -76,7 +96,7 @@ public Subarray ranges(List ranges) { public Subarray addRangesItem(SubarrayRanges rangesItem) { if (this.ranges == null) { - this.ranges = new ArrayList(); + this.ranges = new ArrayList<>(); } this.ranges.add(rangesItem); return this; @@ -99,6 +119,7 @@ public void setRanges(List ranges) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -138,5 +159,103 @@ private String toIndentedString(Object o) { 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("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 Subarray + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (Subarray.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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 + if (!jsonObj.get("ranges").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `ranges` to be an array in the JSON string but got `%s`", jsonObj.get("ranges").toString())); + } + + // validate the optional field `ranges` (array) + for (int i = 0; i < jsonArrayranges.size(); i++) { + SubarrayRanges.validateJsonObject(jsonArrayranges.get(i).getAsJsonObject()); + }; + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!Subarray.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Subarray' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(Subarray.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Subarray value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public Subarray read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of Subarray given an JSON string + * + * @param jsonString JSON string + * @return An instance of Subarray + * @throws IOException if the JSON string is invalid with respect to Subarray + */ + public static Subarray fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, Subarray.class); + } + + /** + * Convert an instance of Subarray to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/SubarrayPartitioner.java b/src/main/java/org/openapitools/client/model/SubarrayPartitioner.java index dc0468d..50a12a1 100644 --- a/src/main/java/org/openapitools/client/model/SubarrayPartitioner.java +++ b/src/main/java/org/openapitools/client/model/SubarrayPartitioner.java @@ -30,11 +30,31 @@ import org.openapitools.client.model.SubarrayPartitionerCurrent; import org.openapitools.client.model.SubarrayPartitionerState; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * The subarray partitioner */ @ApiModel(description = "The subarray partitioner") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class SubarrayPartitioner { public static final String SERIALIZED_NAME_SUBARRAY = "subarray"; @SerializedName(SERIALIZED_NAME_SUBARRAY) @@ -94,7 +114,7 @@ public SubarrayPartitioner budget(List budget) { public SubarrayPartitioner addBudgetItem(AttributeBufferSize budgetItem) { if (this.budget == null) { - this.budget = new ArrayList(); + this.budget = new ArrayList<>(); } this.budget.add(budgetItem); return this; @@ -209,6 +229,7 @@ public void setMemoryBudgetVar(Integer memoryBudgetVar) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -256,5 +277,119 @@ private String toIndentedString(Object o) { 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("subarray"); + openapiFields.add("budget"); + openapiFields.add("current"); + openapiFields.add("state"); + openapiFields.add("memoryBudget"); + openapiFields.add("memoryBudgetVar"); + + // 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 SubarrayPartitioner + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (SubarrayPartitioner.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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) { + Subarray.validateJsonObject(jsonObj.getAsJsonObject("subarray")); + } + JsonArray jsonArraybudget = jsonObj.getAsJsonArray("budget"); + if (jsonArraybudget != null) { + // ensure the json data is an array + if (!jsonObj.get("budget").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `budget` to be an array in the JSON string but got `%s`", jsonObj.get("budget").toString())); + } + + // validate the optional field `budget` (array) + for (int i = 0; i < jsonArraybudget.size(); i++) { + AttributeBufferSize.validateJsonObject(jsonArraybudget.get(i).getAsJsonObject()); + }; + } + // validate the optional field `current` + if (jsonObj.getAsJsonObject("current") != null) { + SubarrayPartitionerCurrent.validateJsonObject(jsonObj.getAsJsonObject("current")); + } + // validate the optional field `state` + if (jsonObj.getAsJsonObject("state") != null) { + SubarrayPartitionerState.validateJsonObject(jsonObj.getAsJsonObject("state")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!SubarrayPartitioner.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SubarrayPartitioner' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(SubarrayPartitioner.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SubarrayPartitioner value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SubarrayPartitioner read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of SubarrayPartitioner given an JSON string + * + * @param jsonString JSON string + * @return An instance of SubarrayPartitioner + * @throws IOException if the JSON string is invalid with respect to SubarrayPartitioner + */ + public static SubarrayPartitioner fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, SubarrayPartitioner.class); + } + + /** + * Convert an instance of SubarrayPartitioner to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/SubarrayPartitionerCurrent.java b/src/main/java/org/openapitools/client/model/SubarrayPartitionerCurrent.java index 275bbf0..b8b3db8 100644 --- a/src/main/java/org/openapitools/client/model/SubarrayPartitionerCurrent.java +++ b/src/main/java/org/openapitools/client/model/SubarrayPartitionerCurrent.java @@ -25,11 +25,31 @@ import java.io.IOException; import org.openapitools.client.model.Subarray; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * The current partition info */ @ApiModel(description = "The current partition info") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class SubarrayPartitionerCurrent { public static final String SERIALIZED_NAME_SUBARRAY = "subarray"; @SerializedName(SERIALIZED_NAME_SUBARRAY) @@ -142,6 +162,7 @@ public void setSplitMultiRange(Boolean splitMultiRange) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -185,5 +206,97 @@ private String toIndentedString(Object o) { 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("subarray"); + openapiFields.add("start"); + openapiFields.add("end"); + openapiFields.add("splitMultiRange"); + + // 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 SubarrayPartitionerCurrent + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (SubarrayPartitionerCurrent.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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) { + Subarray.validateJsonObject(jsonObj.getAsJsonObject("subarray")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!SubarrayPartitionerCurrent.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SubarrayPartitionerCurrent' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(SubarrayPartitionerCurrent.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SubarrayPartitionerCurrent value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SubarrayPartitionerCurrent read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of SubarrayPartitionerCurrent given an JSON string + * + * @param jsonString JSON string + * @return An instance of SubarrayPartitionerCurrent + * @throws IOException if the JSON string is invalid with respect to SubarrayPartitionerCurrent + */ + public static SubarrayPartitionerCurrent fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, SubarrayPartitionerCurrent.class); + } + + /** + * Convert an instance of SubarrayPartitionerCurrent to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/SubarrayPartitionerState.java b/src/main/java/org/openapitools/client/model/SubarrayPartitionerState.java index 1272110..fbc0c8c 100644 --- a/src/main/java/org/openapitools/client/model/SubarrayPartitionerState.java +++ b/src/main/java/org/openapitools/client/model/SubarrayPartitionerState.java @@ -27,11 +27,31 @@ import java.util.List; import org.openapitools.client.model.Subarray; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.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-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class SubarrayPartitionerState { public static final String SERIALIZED_NAME_START = "start"; @SerializedName(SERIALIZED_NAME_START) @@ -106,7 +126,7 @@ public SubarrayPartitionerState singleRange(List singleRange) { public SubarrayPartitionerState addSingleRangeItem(Subarray singleRangeItem) { if (this.singleRange == null) { - this.singleRange = new ArrayList(); + this.singleRange = new ArrayList<>(); } this.singleRange.add(singleRangeItem); return this; @@ -137,7 +157,7 @@ public SubarrayPartitionerState multiRange(List multiRange) { public SubarrayPartitionerState addMultiRangeItem(Subarray multiRangeItem) { if (this.multiRange == null) { - this.multiRange = new ArrayList(); + this.multiRange = new ArrayList<>(); } this.multiRange.add(multiRangeItem); return this; @@ -160,6 +180,7 @@ public void setMultiRange(List multiRange) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -203,5 +224,117 @@ private String toIndentedString(Object o) { 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("start"); + openapiFields.add("end"); + openapiFields.add("singleRange"); + openapiFields.add("multiRange"); + + // 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 SubarrayPartitionerState + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (SubarrayPartitionerState.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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 + if (!jsonObj.get("singleRange").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `singleRange` to be an array in the JSON string but got `%s`", jsonObj.get("singleRange").toString())); + } + + // validate the optional field `singleRange` (array) + for (int i = 0; i < jsonArraysingleRange.size(); i++) { + Subarray.validateJsonObject(jsonArraysingleRange.get(i).getAsJsonObject()); + }; + } + JsonArray jsonArraymultiRange = jsonObj.getAsJsonArray("multiRange"); + if (jsonArraymultiRange != null) { + // ensure the json data is an array + if (!jsonObj.get("multiRange").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `multiRange` to be an array in the JSON string but got `%s`", jsonObj.get("multiRange").toString())); + } + + // validate the optional field `multiRange` (array) + for (int i = 0; i < jsonArraymultiRange.size(); i++) { + Subarray.validateJsonObject(jsonArraymultiRange.get(i).getAsJsonObject()); + }; + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!SubarrayPartitionerState.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SubarrayPartitionerState' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(SubarrayPartitionerState.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SubarrayPartitionerState value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SubarrayPartitionerState read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of SubarrayPartitionerState given an JSON string + * + * @param jsonString JSON string + * @return An instance of SubarrayPartitionerState + * @throws IOException if the JSON string is invalid with respect to SubarrayPartitionerState + */ + public static SubarrayPartitionerState fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, SubarrayPartitionerState.class); + } + + /** + * Convert an instance of SubarrayPartitionerState to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/SubarrayRanges.java b/src/main/java/org/openapitools/client/model/SubarrayRanges.java index efe684c..05245c2 100644 --- a/src/main/java/org/openapitools/client/model/SubarrayRanges.java +++ b/src/main/java/org/openapitools/client/model/SubarrayRanges.java @@ -27,11 +27,31 @@ import java.util.List; import org.openapitools.client.model.Datatype; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.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-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class SubarrayRanges { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) @@ -102,7 +122,7 @@ public SubarrayRanges buffer(List buffer) { public SubarrayRanges addBufferItem(Integer bufferItem) { if (this.buffer == null) { - this.buffer = new ArrayList(); + this.buffer = new ArrayList<>(); } this.buffer.add(bufferItem); return this; @@ -125,6 +145,7 @@ public void setBuffer(List buffer) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -166,5 +187,96 @@ private String toIndentedString(Object o) { 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("type"); + openapiFields.add("hasDefaultRange"); + openapiFields.add("buffer"); + + // 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 SubarrayRanges + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (SubarrayRanges.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + throw new IllegalArgumentException(String.format("Expected the field `buffer` to be an array in the JSON string but got `%s`", jsonObj.get("buffer").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!SubarrayRanges.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'SubarrayRanges' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(SubarrayRanges.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, SubarrayRanges value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public SubarrayRanges read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of SubarrayRanges given an JSON string + * + * @param jsonString JSON string + * @return An instance of SubarrayRanges + * @throws IOException if the JSON string is invalid with respect to SubarrayRanges + */ + public static SubarrayRanges fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, SubarrayRanges.class); + } + + /** + * Convert an instance of SubarrayRanges to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/Subscription.java b/src/main/java/org/openapitools/client/model/Subscription.java index 6313d58..635a3fd 100644 --- a/src/main/java/org/openapitools/client/model/Subscription.java +++ b/src/main/java/org/openapitools/client/model/Subscription.java @@ -27,11 +27,31 @@ import java.util.List; import org.openapitools.client.model.Pricing; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.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-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class Subscription { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -129,7 +149,7 @@ public Subscription pricing(List pricing) { public Subscription addPricingItem(Pricing pricingItem) { if (this.pricing == null) { - this.pricing = new ArrayList(); + this.pricing = new ArrayList<>(); } this.pricing.add(pricingItem); return this; @@ -152,6 +172,7 @@ public void setPricing(List pricing) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -195,5 +216,114 @@ private String toIndentedString(Object o) { 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("owner_namespace_uuid"); + openapiFields.add("customer_namespace_uuid"); + openapiFields.add("pricing"); + + // 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 Subscription + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (Subscription.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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()) { + 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()) { + throw new IllegalArgumentException(String.format("Expected the field `customer_namespace_uuid` to be a primitive type in the JSON string but got `%s`", jsonObj.get("customer_namespace_uuid").toString())); + } + JsonArray jsonArraypricing = jsonObj.getAsJsonArray("pricing"); + if (jsonArraypricing != null) { + // ensure the json data is an array + if (!jsonObj.get("pricing").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `pricing` to be an array in the JSON string but got `%s`", jsonObj.get("pricing").toString())); + } + + // validate the optional field `pricing` (array) + for (int i = 0; i < jsonArraypricing.size(); i++) { + Pricing.validateJsonObject(jsonArraypricing.get(i).getAsJsonObject()); + }; + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!Subscription.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Subscription' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(Subscription.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Subscription value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public Subscription read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of Subscription given an JSON string + * + * @param jsonString JSON string + * @return An instance of Subscription + * @throws IOException if the JSON string is invalid with respect to Subscription + */ + public static Subscription fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, Subscription.class); + } + + /** + * Convert an instance of Subscription to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/TGInputNodeData.java b/src/main/java/org/openapitools/client/model/TGInputNodeData.java index 1cc5ae4..09f19bc 100644 --- a/src/main/java/org/openapitools/client/model/TGInputNodeData.java +++ b/src/main/java/org/openapitools/client/model/TGInputNodeData.java @@ -25,11 +25,31 @@ import java.io.IOException; import org.openapitools.jackson.nullable.JsonNullable; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.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-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class TGInputNodeData { public static final String SERIALIZED_NAME_DEFAULT_VALUE = "default_value"; @SerializedName(SERIALIZED_NAME_DEFAULT_VALUE) @@ -88,6 +108,7 @@ public void setDatatype(String datatype) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -138,5 +159,94 @@ private String toIndentedString(Object o) { 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("default_value"); + openapiFields.add("datatype"); + + // 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 TGInputNodeData + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (TGInputNodeData.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!TGInputNodeData.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'TGInputNodeData' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(TGInputNodeData.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, TGInputNodeData value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public TGInputNodeData read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of TGInputNodeData given an JSON string + * + * @param jsonString JSON string + * @return An instance of TGInputNodeData + * @throws IOException if the JSON string is invalid with respect to TGInputNodeData + */ + public static TGInputNodeData fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, TGInputNodeData.class); + } + + /** + * Convert an instance of TGInputNodeData to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/TGSQLNodeData.java b/src/main/java/org/openapitools/client/model/TGSQLNodeData.java index d56571f..2e3e12c 100644 --- a/src/main/java/org/openapitools/client/model/TGSQLNodeData.java +++ b/src/main/java/org/openapitools/client/model/TGSQLNodeData.java @@ -26,12 +26,33 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.client.model.ResultFormat; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.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-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class TGSQLNodeData { public static final String SERIALIZED_NAME_INIT_COMMANDS = "init_commands"; @SerializedName(SERIALIZED_NAME_INIT_COMMANDS) @@ -49,6 +70,10 @@ public class TGSQLNodeData { @SerializedName(SERIALIZED_NAME_RESULT_FORMAT) private ResultFormat resultFormat; + public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; + @SerializedName(SERIALIZED_NAME_NAMESPACE) + private String namespace; + public TGSQLNodeData() { } @@ -60,7 +85,7 @@ public TGSQLNodeData initCommands(List initCommands) { public TGSQLNodeData addInitCommandsItem(String initCommandsItem) { if (this.initCommands == null) { - this.initCommands = new ArrayList(); + this.initCommands = new ArrayList<>(); } this.initCommands.add(initCommandsItem); return this; @@ -114,7 +139,7 @@ public TGSQLNodeData parameters(List parameters) { public TGSQLNodeData addParametersItem(Object parametersItem) { if (this.parameters == null) { - this.parameters = new ArrayList(); + this.parameters = new ArrayList<>(); } this.parameters.add(parametersItem); return this; @@ -160,6 +185,30 @@ public void setResultFormat(ResultFormat resultFormat) { } + public TGSQLNodeData namespace(String namespace) { + + this.namespace = namespace; + return this; + } + + /** + * If set, the non-default namespace to execute this SQL query under. + * @return namespace + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "If set, the non-default namespace to execute this SQL query under. ") + + public String getNamespace() { + return namespace; + } + + + public void setNamespace(String namespace) { + this.namespace = namespace; + } + + + @Override public boolean equals(Object o) { if (this == o) { @@ -172,12 +221,24 @@ public boolean equals(Object o) { return Objects.equals(this.initCommands, tgSQLNodeData.initCommands) && Objects.equals(this.query, tgSQLNodeData.query) && Objects.equals(this.parameters, tgSQLNodeData.parameters) && - Objects.equals(this.resultFormat, tgSQLNodeData.resultFormat); + Objects.equals(this.resultFormat, tgSQLNodeData.resultFormat) && + Objects.equals(this.namespace, tgSQLNodeData.namespace); + } + + 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(initCommands, query, parameters, resultFormat); + return Objects.hash(initCommands, query, parameters, resultFormat, namespace); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; } @Override @@ -188,6 +249,7 @@ public String toString() { sb.append(" query: ").append(toIndentedString(query)).append("\n"); 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("}"); return sb.toString(); } @@ -203,5 +265,108 @@ private String toIndentedString(Object o) { 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("init_commands"); + openapiFields.add("query"); + openapiFields.add("parameters"); + openapiFields.add("result_format"); + openapiFields.add("namespace"); + + // 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 TGSQLNodeData + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (TGSQLNodeData.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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()) { + 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()) { + 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()) { + 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 (!TGSQLNodeData.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'TGSQLNodeData' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(TGSQLNodeData.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, TGSQLNodeData value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public TGSQLNodeData read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of TGSQLNodeData given an JSON string + * + * @param jsonString JSON string + * @return An instance of TGSQLNodeData + * @throws IOException if the JSON string is invalid with respect to TGSQLNodeData + */ + public static TGSQLNodeData fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, TGSQLNodeData.class); + } + + /** + * Convert an instance of TGSQLNodeData to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/TGUDFArgument.java b/src/main/java/org/openapitools/client/model/TGUDFArgument.java index d7e48b6..6a368a5 100644 --- a/src/main/java/org/openapitools/client/model/TGUDFArgument.java +++ b/src/main/java/org/openapitools/client/model/TGUDFArgument.java @@ -25,11 +25,31 @@ import java.io.IOException; import org.openapitools.jackson.nullable.JsonNullable; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.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-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class TGUDFArgument { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -88,6 +108,7 @@ public void setValue(Object value) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -138,5 +159,94 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("name"); + openapiFields.add("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 TGUDFArgument + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (TGUDFArgument.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!TGUDFArgument.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'TGUDFArgument' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(TGUDFArgument.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, TGUDFArgument value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public TGUDFArgument read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of TGUDFArgument given an JSON string + * + * @param jsonString JSON string + * @return An instance of TGUDFArgument + * @throws IOException if the JSON string is invalid with respect to TGUDFArgument + */ + public static TGUDFArgument fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, TGUDFArgument.class); + } + + /** + * Convert an instance of TGUDFArgument to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/TGUDFEnvironment.java b/src/main/java/org/openapitools/client/model/TGUDFEnvironment.java index 725ae5e..95d548d 100644 --- a/src/main/java/org/openapitools/client/model/TGUDFEnvironment.java +++ b/src/main/java/org/openapitools/client/model/TGUDFEnvironment.java @@ -24,12 +24,33 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import org.openapitools.client.model.UDFLanguage; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.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-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class TGUDFEnvironment { public static final String SERIALIZED_NAME_LANGUAGE = "language"; @SerializedName(SERIALIZED_NAME_LANGUAGE) @@ -43,10 +64,18 @@ public class TGUDFEnvironment { @SerializedName(SERIALIZED_NAME_IMAGE_NAME) private String imageName; + public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; + @SerializedName(SERIALIZED_NAME_NAMESPACE) + private String namespace; + public static final String SERIALIZED_NAME_RESOURCE_CLASS = "resource_class"; @SerializedName(SERIALIZED_NAME_RESOURCE_CLASS) private String resourceClass; + public static final String SERIALIZED_NAME_RUN_CLIENT_SIDE = "run_client_side"; + @SerializedName(SERIALIZED_NAME_RUN_CLIENT_SIDE) + private Boolean runClientSide; + public TGUDFEnvironment() { } @@ -119,6 +148,29 @@ public void setImageName(String imageName) { } + public TGUDFEnvironment namespace(String namespace) { + + this.namespace = namespace; + return this; + } + + /** + * If set, the non-default namespace to execute this UDF under (and to query any Array Nodes that are used as inputs to this UDF). + * @return namespace + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "If set, the non-default namespace to execute this UDF under (and to query any Array Nodes that are used as inputs to this UDF). ") + + public String getNamespace() { + return namespace; + } + + + public void setNamespace(String namespace) { + this.namespace = namespace; + } + + public TGUDFEnvironment resourceClass(String resourceClass) { this.resourceClass = resourceClass; @@ -142,6 +194,30 @@ public void setResourceClass(String resourceClass) { } + public TGUDFEnvironment runClientSide(Boolean runClientSide) { + + this.runClientSide = runClientSide; + return this; + } + + /** + * A hint that, if possible, this function should be executed on the client side rather than on the server. Registered UDFs and functions which take arrays as inputs can never be executed client-side. If the client’s environment is incompatible, or the client does not support client-side execution, the function will be executed on the server. + * @return runClientSide + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "A hint that, if possible, this function should be executed on the client side rather than on the server. Registered UDFs and functions which take arrays as inputs can never be executed client-side. If the client’s environment is incompatible, or the client does not support client-side execution, the function will be executed on the server. ") + + public Boolean getRunClientSide() { + return runClientSide; + } + + + public void setRunClientSide(Boolean runClientSide) { + this.runClientSide = runClientSide; + } + + + @Override public boolean equals(Object o) { if (this == o) { @@ -154,12 +230,25 @@ 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.resourceClass, tgUDFEnvironment.resourceClass); + Objects.equals(this.namespace, tgUDFEnvironment.namespace) && + Objects.equals(this.resourceClass, tgUDFEnvironment.resourceClass) && + Objects.equals(this.runClientSide, tgUDFEnvironment.runClientSide); + } + + 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(language, languageVersion, imageName, resourceClass); + return Objects.hash(language, languageVersion, imageName, namespace, resourceClass, runClientSide); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; } @Override @@ -169,7 +258,9 @@ 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(" namespace: ").append(toIndentedString(namespace)).append("\n"); sb.append(" resourceClass: ").append(toIndentedString(resourceClass)).append("\n"); + sb.append(" runClientSide: ").append(toIndentedString(runClientSide)).append("\n"); sb.append("}"); return sb.toString(); } @@ -185,5 +276,107 @@ private String toIndentedString(Object o) { 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("language"); + openapiFields.add("language_version"); + openapiFields.add("image_name"); + openapiFields.add("namespace"); + openapiFields.add("resource_class"); + openapiFields.add("run_client_side"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to TGUDFEnvironment + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (TGUDFEnvironment.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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()) { + 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()) { + 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()) { + 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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!TGUDFEnvironment.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'TGUDFEnvironment' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(TGUDFEnvironment.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, TGUDFEnvironment value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public TGUDFEnvironment read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of TGUDFEnvironment given an JSON string + * + * @param jsonString JSON string + * @return An instance of TGUDFEnvironment + * @throws IOException if the JSON string is invalid with respect to TGUDFEnvironment + */ + public static TGUDFEnvironment fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, TGUDFEnvironment.class); + } + + /** + * Convert an instance of TGUDFEnvironment to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/TGUDFNodeData.java b/src/main/java/org/openapitools/client/model/TGUDFNodeData.java index e06858a..0357204 100644 --- a/src/main/java/org/openapitools/client/model/TGUDFNodeData.java +++ b/src/main/java/org/openapitools/client/model/TGUDFNodeData.java @@ -30,11 +30,31 @@ import org.openapitools.client.model.TGUDFEnvironment; import org.openapitools.jackson.nullable.JsonNullable; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * A node specifying the execution of a user-defined function. */ @ApiModel(description = "A node specifying the execution of a user-defined function.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+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) @@ -163,7 +183,7 @@ public TGUDFNodeData arguments(List arguments) { public TGUDFNodeData addArgumentsItem(TGUDFArgument argumentsItem) { if (this.arguments == null) { - this.arguments = new ArrayList(); + this.arguments = new ArrayList<>(); } this.arguments.add(argumentsItem); return this; @@ -209,6 +229,7 @@ public void setResultFormat(ResultFormat resultFormat) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -267,5 +288,120 @@ private String toIndentedString(Object o) { 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("registered_udf_name"); + openapiFields.add("executable_code"); + openapiFields.add("source_text"); + openapiFields.add("environment"); + openapiFields.add("arguments"); + openapiFields.add("result_format"); + + // 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 TGUDFNodeData + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (TGUDFNodeData.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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()) { + 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()) { + 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) { + TGUDFEnvironment.validateJsonObject(jsonObj.getAsJsonObject("environment")); + } + JsonArray jsonArrayarguments = jsonObj.getAsJsonArray("arguments"); + if (jsonArrayarguments != null) { + // ensure the json data is an array + if (!jsonObj.get("arguments").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `arguments` to be an array in the JSON string but got `%s`", jsonObj.get("arguments").toString())); + } + + // validate the optional field `arguments` (array) + for (int i = 0; i < jsonArrayarguments.size(); i++) { + TGUDFArgument.validateJsonObject(jsonArrayarguments.get(i).getAsJsonObject()); + }; + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!TGUDFNodeData.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'TGUDFNodeData' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(TGUDFNodeData.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, TGUDFNodeData value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public TGUDFNodeData read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of TGUDFNodeData given an JSON string + * + * @param jsonString JSON string + * @return An instance of TGUDFNodeData + * @throws IOException if the JSON string is invalid with respect to TGUDFNodeData + */ + public static TGUDFNodeData fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, TGUDFNodeData.class); + } + + /** + * Convert an instance of TGUDFNodeData to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/TaskGraphClientNodeStatus.java b/src/main/java/org/openapitools/client/model/TaskGraphClientNodeStatus.java index c9b22ce..3d959ab 100644 --- a/src/main/java/org/openapitools/client/model/TaskGraphClientNodeStatus.java +++ b/src/main/java/org/openapitools/client/model/TaskGraphClientNodeStatus.java @@ -25,11 +25,31 @@ import java.io.IOException; import org.openapitools.client.model.ArrayTaskStatus; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.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-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+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) @@ -88,6 +108,7 @@ public void setStatus(ArrayTaskStatus status) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -127,5 +148,94 @@ private String toIndentedString(Object o) { 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_uuid"); + 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 TaskGraphClientNodeStatus + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (TaskGraphClientNodeStatus.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!TaskGraphClientNodeStatus.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'TaskGraphClientNodeStatus' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(TaskGraphClientNodeStatus.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, TaskGraphClientNodeStatus value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public TaskGraphClientNodeStatus read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of TaskGraphClientNodeStatus given an JSON string + * + * @param jsonString JSON string + * @return An instance of TaskGraphClientNodeStatus + * @throws IOException if the JSON string is invalid with respect to TaskGraphClientNodeStatus + */ + public static TaskGraphClientNodeStatus fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, TaskGraphClientNodeStatus.class); + } + + /** + * Convert an instance of TaskGraphClientNodeStatus to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/TaskGraphLog.java b/src/main/java/org/openapitools/client/model/TaskGraphLog.java index 412d840..a6c0ce9 100644 --- a/src/main/java/org/openapitools/client/model/TaskGraphLog.java +++ b/src/main/java/org/openapitools/client/model/TaskGraphLog.java @@ -24,6 +24,7 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.math.BigDecimal; +import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.HashMap; import java.util.List; @@ -31,13 +32,32 @@ import org.openapitools.client.model.TaskGraphLogStatus; import org.openapitools.client.model.TaskGraphNodeMetadata; import org.openapitools.jackson.nullable.JsonNullable; -import org.threeten.bp.OffsetDateTime; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.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-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class TaskGraphLog { public static final String SERIALIZED_NAME_UUID = "uuid"; @SerializedName(SERIALIZED_NAME_UUID) @@ -353,7 +373,7 @@ public TaskGraphLog statusCount(Map statusCount) { public TaskGraphLog putStatusCountItem(String key, BigDecimal statusCountItem) { if (this.statusCount == null) { - this.statusCount = new HashMap(); + this.statusCount = new HashMap<>(); } this.statusCount.put(key, statusCountItem); return this; @@ -384,7 +404,7 @@ public TaskGraphLog nodes(List nodes) { public TaskGraphLog addNodesItem(TaskGraphNodeMetadata nodesItem) { if (this.nodes == null) { - this.nodes = new ArrayList(); + this.nodes = new ArrayList<>(); } this.nodes.add(nodesItem); return this; @@ -407,6 +427,7 @@ public void setNodes(List nodes) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -481,5 +502,130 @@ private String toIndentedString(Object o) { 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("start_time"); + openapiFields.add("end_time"); + openapiFields.add("status"); + openapiFields.add("total_cost"); + openapiFields.add("access_cost"); + openapiFields.add("egress_cost"); + openapiFields.add("execution_time"); + openapiFields.add("status_count"); + openapiFields.add("nodes"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to TaskGraphLog + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (TaskGraphLog.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + throw new IllegalArgumentException(String.format("Expected the field `execution_time` to be a primitive type in the JSON string but got `%s`", jsonObj.get("execution_time").toString())); + } + JsonArray jsonArraynodes = jsonObj.getAsJsonArray("nodes"); + if (jsonArraynodes != null) { + // ensure the json data is an array + if (!jsonObj.get("nodes").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `nodes` to be an array in the JSON string but got `%s`", jsonObj.get("nodes").toString())); + } + + // validate the optional field `nodes` (array) + for (int i = 0; i < jsonArraynodes.size(); i++) { + TaskGraphNodeMetadata.validateJsonObject(jsonArraynodes.get(i).getAsJsonObject()); + }; + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!TaskGraphLog.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'TaskGraphLog' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(TaskGraphLog.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, TaskGraphLog value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public TaskGraphLog read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of TaskGraphLog given an JSON string + * + * @param jsonString JSON string + * @return An instance of TaskGraphLog + * @throws IOException if the JSON string is invalid with respect to TaskGraphLog + */ + public static TaskGraphLog fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, TaskGraphLog.class); + } + + /** + * Convert an instance of TaskGraphLog to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/TaskGraphLogsData.java b/src/main/java/org/openapitools/client/model/TaskGraphLogsData.java index d3568f3..4b703a1 100644 --- a/src/main/java/org/openapitools/client/model/TaskGraphLogsData.java +++ b/src/main/java/org/openapitools/client/model/TaskGraphLogsData.java @@ -28,11 +28,31 @@ import org.openapitools.client.model.PaginationMetadata; import org.openapitools.client.model.TaskGraphLog; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.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-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+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) @@ -53,7 +73,7 @@ public TaskGraphLogsData taskGraphLogs(List taskGraphLogs) { public TaskGraphLogsData addTaskGraphLogsItem(TaskGraphLog taskGraphLogsItem) { if (this.taskGraphLogs == null) { - this.taskGraphLogs = new ArrayList(); + this.taskGraphLogs = new ArrayList<>(); } this.taskGraphLogs.add(taskGraphLogsItem); return this; @@ -99,6 +119,7 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -138,5 +159,107 @@ private String toIndentedString(Object o) { 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("task_graph_logs"); + 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 TaskGraphLogsData + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (TaskGraphLogsData.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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 + if (!jsonObj.get("task_graph_logs").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `task_graph_logs` to be an array in the JSON string but got `%s`", jsonObj.get("task_graph_logs").toString())); + } + + // validate the optional field `task_graph_logs` (array) + for (int i = 0; i < jsonArraytaskGraphLogs.size(); i++) { + TaskGraphLog.validateJsonObject(jsonArraytaskGraphLogs.get(i).getAsJsonObject()); + }; + } + // validate the optional field `pagination_metadata` + if (jsonObj.getAsJsonObject("pagination_metadata") != null) { + PaginationMetadata.validateJsonObject(jsonObj.getAsJsonObject("pagination_metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!TaskGraphLogsData.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'TaskGraphLogsData' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(TaskGraphLogsData.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, TaskGraphLogsData value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public TaskGraphLogsData read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of TaskGraphLogsData given an JSON string + * + * @param jsonString JSON string + * @return An instance of TaskGraphLogsData + * @throws IOException if the JSON string is invalid with respect to TaskGraphLogsData + */ + public static TaskGraphLogsData fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, TaskGraphLogsData.class); + } + + /** + * Convert an instance of TaskGraphLogsData to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/TaskGraphNodeMetadata.java b/src/main/java/org/openapitools/client/model/TaskGraphNodeMetadata.java index 956eb2e..18eabbd 100644 --- a/src/main/java/org/openapitools/client/model/TaskGraphNodeMetadata.java +++ b/src/main/java/org/openapitools/client/model/TaskGraphNodeMetadata.java @@ -29,11 +29,31 @@ import org.openapitools.client.model.ArrayTaskStatus; import org.openapitools.client.model.TaskGraphLogRunLocation; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.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-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+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) @@ -124,7 +144,7 @@ public TaskGraphNodeMetadata dependsOn(List dependsOn) { public TaskGraphNodeMetadata addDependsOnItem(String dependsOnItem) { if (this.dependsOn == null) { - this.dependsOn = new ArrayList(); + this.dependsOn = new ArrayList<>(); } this.dependsOn.add(dependsOnItem); return this; @@ -207,6 +227,7 @@ public List getExecutions() { + @Override public boolean equals(Object o) { if (this == o) { @@ -254,5 +275,117 @@ private String toIndentedString(Object o) { 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_uuid"); + openapiFields.add("name"); + openapiFields.add("depends_on"); + openapiFields.add("run_location"); + openapiFields.add("status"); + openapiFields.add("executions"); + + // 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 TaskGraphNodeMetadata + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (TaskGraphNodeMetadata.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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()) { + 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())); + } + JsonArray jsonArrayexecutions = jsonObj.getAsJsonArray("executions"); + if (jsonArrayexecutions != null) { + // ensure the json data is an array + if (!jsonObj.get("executions").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `executions` to be an array in the JSON string but got `%s`", jsonObj.get("executions").toString())); + } + + // validate the optional field `executions` (array) + for (int i = 0; i < jsonArrayexecutions.size(); i++) { + ArrayTask.validateJsonObject(jsonArrayexecutions.get(i).getAsJsonObject()); + }; + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!TaskGraphNodeMetadata.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'TaskGraphNodeMetadata' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(TaskGraphNodeMetadata.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, TaskGraphNodeMetadata value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public TaskGraphNodeMetadata read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of TaskGraphNodeMetadata given an JSON string + * + * @param jsonString JSON string + * @return An instance of TaskGraphNodeMetadata + * @throws IOException if the JSON string is invalid with respect to TaskGraphNodeMetadata + */ + public static TaskGraphNodeMetadata fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, TaskGraphNodeMetadata.class); + } + + /** + * Convert an instance of TaskGraphNodeMetadata to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/TaskGraphSharing.java b/src/main/java/org/openapitools/client/model/TaskGraphSharing.java index a09afba..fa0ba37 100644 --- a/src/main/java/org/openapitools/client/model/TaskGraphSharing.java +++ b/src/main/java/org/openapitools/client/model/TaskGraphSharing.java @@ -27,11 +27,31 @@ import java.util.List; import org.openapitools.client.model.TaskGraphActions; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.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-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class TaskGraphSharing { public static final String SERIALIZED_NAME_ACTIONS = "actions"; @SerializedName(SERIALIZED_NAME_ACTIONS) @@ -56,7 +76,7 @@ public TaskGraphSharing actions(List actions) { public TaskGraphSharing addActionsItem(TaskGraphActions actionsItem) { if (this.actions == null) { - this.actions = new ArrayList(); + this.actions = new ArrayList<>(); } this.actions.add(actionsItem); return this; @@ -125,6 +145,7 @@ public void setNamespaceType(String namespaceType) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -166,5 +187,102 @@ private String toIndentedString(Object o) { 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("actions"); + openapiFields.add("namespace"); + openapiFields.add("namespace_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 TaskGraphSharing + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (TaskGraphSharing.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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()) { + 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()) { + 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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!TaskGraphSharing.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'TaskGraphSharing' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(TaskGraphSharing.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, TaskGraphSharing value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public TaskGraphSharing read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of TaskGraphSharing given an JSON string + * + * @param jsonString JSON string + * @return An instance of TaskGraphSharing + * @throws IOException if the JSON string is invalid with respect to TaskGraphSharing + */ + public static TaskGraphSharing fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, TaskGraphSharing.class); + } + + /** + * Convert an instance of TaskGraphSharing to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/TileDBConfig.java b/src/main/java/org/openapitools/client/model/TileDBConfig.java index 1449e61..b11a513 100644 --- a/src/main/java/org/openapitools/client/model/TileDBConfig.java +++ b/src/main/java/org/openapitools/client/model/TileDBConfig.java @@ -27,11 +27,31 @@ import java.util.List; import java.util.Map; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * user's TileDB config */ @ApiModel(description = "user's TileDB config") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class TileDBConfig { public static final String SERIALIZED_NAME_CONFIGS = "configs"; @SerializedName(SERIALIZED_NAME_CONFIGS) @@ -48,7 +68,7 @@ public TileDBConfig configs(Map configs) { public TileDBConfig putConfigsItem(String key, String configsItem) { if (this.configs == null) { - this.configs = new HashMap(); + this.configs = new HashMap<>(); } this.configs.put(key, configsItem); return this; @@ -71,6 +91,7 @@ public void setConfigs(Map configs) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -108,5 +129,90 @@ private String toIndentedString(Object o) { 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("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 TileDBConfig + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (TileDBConfig.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in TileDBConfig is not found in the empty JSON string", TileDBConfig.openapiRequiredFields.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())); +// } +// } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!TileDBConfig.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'TileDBConfig' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(TileDBConfig.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, TileDBConfig value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public TileDBConfig read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of TileDBConfig given an JSON string + * + * @param jsonString JSON string + * @return An instance of TileDBConfig + * @throws IOException if the JSON string is invalid with respect to TileDBConfig + */ + public static TileDBConfig fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, TileDBConfig.class); + } + + /** + * Convert an instance of TileDBConfig to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/Token.java b/src/main/java/org/openapitools/client/model/Token.java index edd072e..285e2b2 100644 --- a/src/main/java/org/openapitools/client/model/Token.java +++ b/src/main/java/org/openapitools/client/model/Token.java @@ -23,13 +23,33 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import org.threeten.bp.OffsetDateTime; +import java.time.OffsetDateTime; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; /** * A api token and its metadata */ @ApiModel(description = "A api token and its metadata") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class Token { public static final String SERIALIZED_NAME_TOKEN = "token"; @SerializedName(SERIALIZED_NAME_TOKEN) @@ -169,6 +189,7 @@ public void setScope(String scope) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -214,5 +235,103 @@ private String toIndentedString(Object o) { 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("token"); + openapiFields.add("name"); + openapiFields.add("issued_at"); + openapiFields.add("expires_at"); + openapiFields.add("scope"); + + // 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 Token + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (Token.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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()) { + 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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!Token.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Token' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(Token.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Token value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public Token read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of Token given an JSON string + * + * @param jsonString JSON string + * @return An instance of Token + * @throws IOException if the JSON string is invalid with respect to Token + */ + public static Token fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, Token.class); + } + + /** + * Convert an instance of Token to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/TokenRequest.java b/src/main/java/org/openapitools/client/model/TokenRequest.java index d0b3ad3..cfce612 100644 --- a/src/main/java/org/openapitools/client/model/TokenRequest.java +++ b/src/main/java/org/openapitools/client/model/TokenRequest.java @@ -23,13 +23,33 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import org.threeten.bp.OffsetDateTime; +import java.time.OffsetDateTime; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; /** * A request from a user for an api token */ @ApiModel(description = "A request from a user for an api token") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class TokenRequest { public static final String SERIALIZED_NAME_EXPIRES = "expires"; @SerializedName(SERIALIZED_NAME_EXPIRES) @@ -57,7 +77,7 @@ public TokenRequest expires(OffsetDateTime expires) { * @return expires **/ @javax.annotation.Nullable - @ApiModelProperty(value = "Expiration date for token, if empty token defaults to 30 minutes") + @ApiModelProperty(example = "2018-12-31T12:13:14Z", value = "Expiration date for token, if empty token defaults to 30 minutes") public OffsetDateTime getExpires() { return expires; @@ -115,6 +135,7 @@ public void setScope(String scope) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -156,5 +177,98 @@ private String toIndentedString(Object o) { 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("expires"); + openapiFields.add("name"); + openapiFields.add("scope"); + + // 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 TokenRequest + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (TokenRequest.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!TokenRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'TokenRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(TokenRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, TokenRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public TokenRequest read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of TokenRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of TokenRequest + * @throws IOException if the JSON string is invalid with respect to TokenRequest + */ + public static TokenRequest fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, TokenRequest.class); + } + + /** + * Convert an instance of TokenRequest to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/UDFArrayDetails.java b/src/main/java/org/openapitools/client/model/UDFArrayDetails.java index aa511b9..a67090b 100644 --- a/src/main/java/org/openapitools/client/model/UDFArrayDetails.java +++ b/src/main/java/org/openapitools/client/model/UDFArrayDetails.java @@ -28,11 +28,31 @@ import org.openapitools.client.model.QueryRanges; import org.openapitools.jackson.nullable.JsonNullable; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.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-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class UDFArrayDetails { public static final String SERIALIZED_NAME_PARAMETER_ID = "parameter_id"; @SerializedName(SERIALIZED_NAME_PARAMETER_ID) @@ -130,7 +150,7 @@ public UDFArrayDetails buffers(List buffers) { public UDFArrayDetails addBuffersItem(String buffersItem) { if (this.buffers == null) { - this.buffers = new ArrayList(); + this.buffers = new ArrayList<>(); } this.buffers.add(buffersItem); return this; @@ -153,6 +173,7 @@ public void setBuffers(List buffers) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -207,5 +228,107 @@ private String toIndentedString(Object o) { 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("parameter_id"); + 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 UDFArrayDetails + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (UDFArrayDetails.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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()) { + 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) { + QueryRanges.validateJsonObject(jsonObj.getAsJsonObject("ranges")); + } + // ensure the json data is an array + if (jsonObj.get("buffers") != null && !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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!UDFArrayDetails.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UDFArrayDetails' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UDFArrayDetails.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UDFArrayDetails value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UDFArrayDetails read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of UDFArrayDetails given an JSON string + * + * @param jsonString JSON string + * @return An instance of UDFArrayDetails + * @throws IOException if the JSON string is invalid with respect to UDFArrayDetails + */ + public static UDFArrayDetails fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, UDFArrayDetails.class); + } + + /** + * Convert an instance of UDFArrayDetails to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/UDFCopied.java b/src/main/java/org/openapitools/client/model/UDFCopied.java index 924fa6b..17932de 100644 --- a/src/main/java/org/openapitools/client/model/UDFCopied.java +++ b/src/main/java/org/openapitools/client/model/UDFCopied.java @@ -24,11 +24,31 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * Copied udf uri and information */ @ApiModel(description = "Copied udf uri and information") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class UDFCopied { public static final String SERIALIZED_NAME_OUTPUT_URI = "output_uri"; @SerializedName(SERIALIZED_NAME_OUTPUT_URI) @@ -141,6 +161,7 @@ public void setId(String id) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -184,5 +205,113 @@ private String toIndentedString(Object o) { 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("output_uri"); + openapiFields.add("namespace"); + openapiFields.add("name"); + openapiFields.add("id"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("id"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to UDFCopied + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (UDFCopied.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in UDFCopied is not found in the empty JSON string", UDFCopied.openapiRequiredFields.toString())); + } + } + + 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()) { + 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()) { + 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()) { + 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()) { + 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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!UDFCopied.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UDFCopied' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UDFCopied.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UDFCopied value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UDFCopied read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of UDFCopied given an JSON string + * + * @param jsonString JSON string + * @return An instance of UDFCopied + * @throws IOException if the JSON string is invalid with respect to UDFCopied + */ + public static UDFCopied fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, UDFCopied.class); + } + + /** + * Convert an instance of UDFCopied to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/UDFCopy.java b/src/main/java/org/openapitools/client/model/UDFCopy.java index 9170064..28c5cf6 100644 --- a/src/main/java/org/openapitools/client/model/UDFCopy.java +++ b/src/main/java/org/openapitools/client/model/UDFCopy.java @@ -24,11 +24,31 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * information required to copy a udf */ @ApiModel(description = "information required to copy a udf") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class UDFCopy { public static final String SERIALIZED_NAME_OUTPUT_URI = "output_uri"; @SerializedName(SERIALIZED_NAME_OUTPUT_URI) @@ -114,6 +134,7 @@ public void setName(String name) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -155,5 +176,101 @@ private String toIndentedString(Object o) { 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("output_uri"); + openapiFields.add("namespace"); + openapiFields.add("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 UDFCopy + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (UDFCopy.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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()) { + 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()) { + 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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!UDFCopy.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UDFCopy' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UDFCopy.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UDFCopy value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UDFCopy read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of UDFCopy given an JSON string + * + * @param jsonString JSON string + * @return An instance of UDFCopy + * @throws IOException if the JSON string is invalid with respect to UDFCopy + */ + public static UDFCopy fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, UDFCopy.class); + } + + /** + * Convert an instance of UDFCopy to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/UDFFavorite.java b/src/main/java/org/openapitools/client/model/UDFFavorite.java index 97e231a..761702a 100644 --- a/src/main/java/org/openapitools/client/model/UDFFavorite.java +++ b/src/main/java/org/openapitools/client/model/UDFFavorite.java @@ -24,11 +24,31 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * A user-favorite UDF item */ @ApiModel(description = "A user-favorite UDF item") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class UDFFavorite { public static final String SERIALIZED_NAME_UDF_UUID = "udf_uuid"; @SerializedName(SERIALIZED_NAME_UDF_UUID) @@ -114,6 +134,7 @@ public void setName(String name) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -155,5 +176,101 @@ private String toIndentedString(Object o) { 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("udf_uuid"); + openapiFields.add("namespace"); + openapiFields.add("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 UDFFavorite + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (UDFFavorite.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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()) { + 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()) { + 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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!UDFFavorite.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UDFFavorite' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UDFFavorite.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UDFFavorite value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UDFFavorite read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of UDFFavorite given an JSON string + * + * @param jsonString JSON string + * @return An instance of UDFFavorite + * @throws IOException if the JSON string is invalid with respect to UDFFavorite + */ + public static UDFFavorite fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, UDFFavorite.class); + } + + /** + * Convert an instance of UDFFavorite to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/UDFFavoritesData.java b/src/main/java/org/openapitools/client/model/UDFFavoritesData.java index 8ea0256..f15fc1e 100644 --- a/src/main/java/org/openapitools/client/model/UDFFavoritesData.java +++ b/src/main/java/org/openapitools/client/model/UDFFavoritesData.java @@ -28,11 +28,31 @@ import org.openapitools.client.model.ArrayInfo; import org.openapitools.client.model.PaginationMetadata; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.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-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class UDFFavoritesData { public static final String SERIALIZED_NAME_UDFS = "udfs"; @SerializedName(SERIALIZED_NAME_UDFS) @@ -53,7 +73,7 @@ public UDFFavoritesData udfs(List udfs) { public UDFFavoritesData addUdfsItem(ArrayInfo udfsItem) { if (this.udfs == null) { - this.udfs = new ArrayList(); + this.udfs = new ArrayList<>(); } this.udfs.add(udfsItem); return this; @@ -99,6 +119,7 @@ public void setPaginationMetadata(PaginationMetadata paginationMetadata) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -138,5 +159,107 @@ private String toIndentedString(Object o) { 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("udfs"); + 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 UDFFavoritesData + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (UDFFavoritesData.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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 + if (!jsonObj.get("udfs").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `udfs` to be an array in the JSON string but got `%s`", jsonObj.get("udfs").toString())); + } + + // validate the optional field `udfs` (array) + for (int i = 0; i < jsonArrayudfs.size(); i++) { + ArrayInfo.validateJsonObject(jsonArrayudfs.get(i).getAsJsonObject()); + }; + } + // validate the optional field `pagination_metadata` + if (jsonObj.getAsJsonObject("pagination_metadata") != null) { + PaginationMetadata.validateJsonObject(jsonObj.getAsJsonObject("pagination_metadata")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!UDFFavoritesData.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UDFFavoritesData' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UDFFavoritesData.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UDFFavoritesData value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UDFFavoritesData read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of UDFFavoritesData given an JSON string + * + * @param jsonString JSON string + * @return An instance of UDFFavoritesData + * @throws IOException if the JSON string is invalid with respect to UDFFavoritesData + */ + public static UDFFavoritesData fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, UDFFavoritesData.class); + } + + /** + * Convert an instance of UDFFavoritesData to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/UDFImage.java b/src/main/java/org/openapitools/client/model/UDFImage.java index 8ff56f6..55dc2a0 100644 --- a/src/main/java/org/openapitools/client/model/UDFImage.java +++ b/src/main/java/org/openapitools/client/model/UDFImage.java @@ -25,11 +25,31 @@ import java.io.IOException; import org.openapitools.client.model.UDFLanguage; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.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-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class UDFImage { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -115,6 +135,7 @@ public void setLanguage(UDFLanguage language) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -156,5 +177,98 @@ private String toIndentedString(Object o) { 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("language"); + + // 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 UDFImage + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (UDFImage.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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()) { + 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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!UDFImage.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UDFImage' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UDFImage.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UDFImage value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UDFImage read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of UDFImage given an JSON string + * + * @param jsonString JSON string + * @return An instance of UDFImage + * @throws IOException if the JSON string is invalid with respect to UDFImage + */ + public static UDFImage fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, UDFImage.class); + } + + /** + * Convert an instance of UDFImage to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/UDFImageVersion.java b/src/main/java/org/openapitools/client/model/UDFImageVersion.java index 42a75e2..ec8b83a 100644 --- a/src/main/java/org/openapitools/client/model/UDFImageVersion.java +++ b/src/main/java/org/openapitools/client/model/UDFImageVersion.java @@ -25,11 +25,31 @@ import java.io.IOException; import java.math.BigDecimal; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * Defines an image that belongs to a set of images having a version */ @ApiModel(description = "Defines an image that belongs to a set of images having a version") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class UDFImageVersion { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -223,6 +243,7 @@ public void setLatest(Boolean latest) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -272,5 +293,108 @@ private String toIndentedString(Object o) { 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("udf_image_uuid"); + openapiFields.add("docker_image"); + openapiFields.add("version"); + openapiFields.add("default"); + openapiFields.add("latest"); + + // 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 UDFImageVersion + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (UDFImageVersion.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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()) { + 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()) { + 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()) { + 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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!UDFImageVersion.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UDFImageVersion' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UDFImageVersion.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UDFImageVersion value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UDFImageVersion read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of UDFImageVersion given an JSON string + * + * @param jsonString JSON string + * @return An instance of UDFImageVersion + * @throws IOException if the JSON string is invalid with respect to UDFImageVersion + */ + public static UDFImageVersion fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, UDFImageVersion.class); + } + + /** + * Convert an instance of UDFImageVersion to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/UDFInfo.java b/src/main/java/org/openapitools/client/model/UDFInfo.java index 2328e10..e8ef3a5 100644 --- a/src/main/java/org/openapitools/client/model/UDFInfo.java +++ b/src/main/java/org/openapitools/client/model/UDFInfo.java @@ -28,11 +28,31 @@ import org.openapitools.client.model.UDFLanguage; import org.openapitools.client.model.UDFType; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.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-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class UDFInfo { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -238,7 +258,7 @@ public UDFInfo tags(List tags) { public UDFInfo addTagsItem(String tagsItem) { if (this.tags == null) { - this.tags = new ArrayList(); + this.tags = new ArrayList<>(); } this.tags.add(tagsItem); return this; @@ -261,6 +281,7 @@ public void setTags(List tags) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -312,5 +333,116 @@ private String toIndentedString(Object o) { 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("language"); + openapiFields.add("type"); + openapiFields.add("readme"); + openapiFields.add("license_id"); + openapiFields.add("license_text"); + openapiFields.add("tags"); + + // 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 UDFInfo + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (UDFInfo.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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()) { + 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()) { + 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()) { + 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())); + } + // 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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!UDFInfo.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UDFInfo' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UDFInfo.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UDFInfo value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UDFInfo read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of UDFInfo given an JSON string + * + * @param jsonString JSON string + * @return An instance of UDFInfo + * @throws IOException if the JSON string is invalid with respect to UDFInfo + */ + public static UDFInfo fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, UDFInfo.class); + } + + /** + * Convert an instance of UDFInfo to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/UDFInfoUpdate.java b/src/main/java/org/openapitools/client/model/UDFInfoUpdate.java index ffaf2e9..fc56539 100644 --- a/src/main/java/org/openapitools/client/model/UDFInfoUpdate.java +++ b/src/main/java/org/openapitools/client/model/UDFInfoUpdate.java @@ -28,11 +28,31 @@ import org.openapitools.client.model.UDFLanguage; import org.openapitools.client.model.UDFType; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.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-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class UDFInfoUpdate { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) @@ -319,7 +339,7 @@ public UDFInfoUpdate tags(List tags) { public UDFInfoUpdate addTagsItem(String tagsItem) { if (this.tags == null) { - this.tags = new ArrayList(); + this.tags = new ArrayList<>(); } this.tags.add(tagsItem); return this; @@ -342,6 +362,7 @@ public void setTags(List tags) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -399,5 +420,128 @@ private String toIndentedString(Object o) { return o.toString().replace("\n", "\n "); } + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("name"); + openapiFields.add("language"); + openapiFields.add("version"); + openapiFields.add("image_name"); + openapiFields.add("type"); + openapiFields.add("exec"); + openapiFields.add("exec_raw"); + openapiFields.add("readme"); + openapiFields.add("license_id"); + openapiFields.add("license_text"); + openapiFields.add("tags"); + + // 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 UDFInfoUpdate + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (UDFInfoUpdate.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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())); + } + // 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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!UDFInfoUpdate.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UDFInfoUpdate' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UDFInfoUpdate.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UDFInfoUpdate value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UDFInfoUpdate read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of UDFInfoUpdate given an JSON string + * + * @param jsonString JSON string + * @return An instance of UDFInfoUpdate + * @throws IOException if the JSON string is invalid with respect to UDFInfoUpdate + */ + public static UDFInfoUpdate fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, UDFInfoUpdate.class); + } + + /** + * Convert an instance of UDFInfoUpdate to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/UDFSharing.java b/src/main/java/org/openapitools/client/model/UDFSharing.java index a1a5839..5976567 100644 --- a/src/main/java/org/openapitools/client/model/UDFSharing.java +++ b/src/main/java/org/openapitools/client/model/UDFSharing.java @@ -27,11 +27,31 @@ import java.util.List; import org.openapitools.client.model.UDFActions; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.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-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class UDFSharing { public static final String SERIALIZED_NAME_ACTIONS = "actions"; @SerializedName(SERIALIZED_NAME_ACTIONS) @@ -56,7 +76,7 @@ public UDFSharing actions(List actions) { public UDFSharing addActionsItem(UDFActions actionsItem) { if (this.actions == null) { - this.actions = new ArrayList(); + this.actions = new ArrayList<>(); } this.actions.add(actionsItem); return this; @@ -125,6 +145,7 @@ public void setNamespaceType(String namespaceType) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -166,5 +187,102 @@ private String toIndentedString(Object o) { 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("actions"); + openapiFields.add("namespace"); + openapiFields.add("namespace_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 UDFSharing + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (UDFSharing.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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()) { + 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()) { + 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()) { + 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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!UDFSharing.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UDFSharing' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UDFSharing.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UDFSharing value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UDFSharing read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of UDFSharing given an JSON string + * + * @param jsonString JSON string + * @return An instance of UDFSharing + * @throws IOException if the JSON string is invalid with respect to UDFSharing + */ + public static UDFSharing fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, UDFSharing.class); + } + + /** + * Convert an instance of UDFSharing to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/UDFSubarray.java b/src/main/java/org/openapitools/client/model/UDFSubarray.java index e2f9422..4a71a8f 100644 --- a/src/main/java/org/openapitools/client/model/UDFSubarray.java +++ b/src/main/java/org/openapitools/client/model/UDFSubarray.java @@ -28,11 +28,31 @@ import org.openapitools.client.model.Layout; import org.openapitools.client.model.UDFSubarrayRange; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.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-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class UDFSubarray { public static final String SERIALIZED_NAME_LAYOUT = "layout"; @SerializedName(SERIALIZED_NAME_LAYOUT) @@ -76,7 +96,7 @@ public UDFSubarray ranges(List ranges) { public UDFSubarray addRangesItem(UDFSubarrayRange rangesItem) { if (this.ranges == null) { - this.ranges = new ArrayList(); + this.ranges = new ArrayList<>(); } this.ranges.add(rangesItem); return this; @@ -99,6 +119,7 @@ public void setRanges(List ranges) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -138,5 +159,103 @@ private String toIndentedString(Object o) { 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("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 UDFSubarray + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (UDFSubarray.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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 + if (!jsonObj.get("ranges").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `ranges` to be an array in the JSON string but got `%s`", jsonObj.get("ranges").toString())); + } + + // validate the optional field `ranges` (array) + for (int i = 0; i < jsonArrayranges.size(); i++) { + UDFSubarrayRange.validateJsonObject(jsonArrayranges.get(i).getAsJsonObject()); + }; + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!UDFSubarray.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UDFSubarray' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UDFSubarray.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UDFSubarray value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UDFSubarray read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of UDFSubarray given an JSON string + * + * @param jsonString JSON string + * @return An instance of UDFSubarray + * @throws IOException if the JSON string is invalid with respect to UDFSubarray + */ + public static UDFSubarray fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, UDFSubarray.class); + } + + /** + * Convert an instance of UDFSubarray to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/UDFSubarrayRange.java b/src/main/java/org/openapitools/client/model/UDFSubarrayRange.java index a56c654..34339df 100644 --- a/src/main/java/org/openapitools/client/model/UDFSubarrayRange.java +++ b/src/main/java/org/openapitools/client/model/UDFSubarrayRange.java @@ -25,11 +25,31 @@ import java.io.IOException; import org.openapitools.client.model.DimensionCoordinate; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * A dimension range to query */ @ApiModel(description = "A dimension range to query") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class UDFSubarrayRange { public static final String SERIALIZED_NAME_DIMENSION_ID = "dimension_id"; @SerializedName(SERIALIZED_NAME_DIMENSION_ID) @@ -115,6 +135,7 @@ public void setRangeEnd(DimensionCoordinate rangeEnd) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -156,5 +177,100 @@ private String toIndentedString(Object o) { 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("dimension_id"); + openapiFields.add("range_start"); + openapiFields.add("range_end"); + + // 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 UDFSubarrayRange + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (UDFSubarrayRange.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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) { + DimensionCoordinate.validateJsonObject(jsonObj.getAsJsonObject("range_start")); + } + // validate the optional field `range_end` + if (jsonObj.getAsJsonObject("range_end") != null) { + DimensionCoordinate.validateJsonObject(jsonObj.getAsJsonObject("range_end")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!UDFSubarrayRange.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UDFSubarrayRange' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UDFSubarrayRange.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UDFSubarrayRange value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public UDFSubarrayRange read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of UDFSubarrayRange given an JSON string + * + * @param jsonString JSON string + * @return An instance of UDFSubarrayRange + * @throws IOException if the JSON string is invalid with respect to UDFSubarrayRange + */ + public static UDFSubarrayRange fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, UDFSubarrayRange.class); + } + + /** + * Convert an instance of UDFSubarrayRange to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/User.java b/src/main/java/org/openapitools/client/model/User.java index 004481e..aacce5e 100644 --- a/src/main/java/org/openapitools/client/model/User.java +++ b/src/main/java/org/openapitools/client/model/User.java @@ -23,17 +23,38 @@ 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.client.model.NamespaceActions; import org.openapitools.client.model.OrganizationUser; -import org.threeten.bp.OffsetDateTime; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; /** * User */ @ApiModel(description = "User") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class User { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) @@ -376,7 +397,7 @@ public User allowedActions(List allowedActions) { public User addAllowedActionsItem(NamespaceActions allowedActionsItem) { if (this.allowedActions == null) { - this.allowedActions = new ArrayList(); + this.allowedActions = new ArrayList<>(); } this.allowedActions.add(allowedActionsItem); return this; @@ -496,6 +517,7 @@ public void setDefaultNamespaceCharged(String defaultNamespaceCharged) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -525,11 +547,22 @@ public boolean equals(Object o) { Objects.equals(this.defaultNamespaceCharged, user.defaultNamespaceCharged); } + 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(id, username, password, name, email, isValidEmail, stripeConnect, company, logo, lastActivityDate, timezone, organizations, allowedActions, enabledFeatures, unpaidSubscription, defaultS3Path, defaultS3PathCredentialsName, defaultNamespaceCharged); } + 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(); @@ -567,5 +600,168 @@ private String toIndentedString(Object o) { 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("username"); + openapiFields.add("password"); + openapiFields.add("name"); + openapiFields.add("email"); + openapiFields.add("is_valid_email"); + 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"); + openapiFields.add("enabled_features"); + openapiFields.add("unpaid_subscription"); + openapiFields.add("default_s3_path"); + openapiFields.add("default_s3_path_credentials_name"); + openapiFields.add("default_namespace_charged"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("username"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to User + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (User.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in User is not found in the empty JSON string", User.openapiRequiredFields.toString())); + } + } + + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + 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()) { + throw new IllegalArgumentException(String.format("Expected the field `timezone` to be a primitive type in the JSON string but got `%s`", jsonObj.get("timezone").toString())); + } + JsonArray jsonArrayorganizations = jsonObj.getAsJsonArray("organizations"); + if (jsonArrayorganizations != null) { + // ensure the json data is an array + if (!jsonObj.get("organizations").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `organizations` to be an array in the JSON string but got `%s`", jsonObj.get("organizations").toString())); + } + + // validate the optional field `organizations` (array) + for (int i = 0; i < jsonArrayorganizations.size(); i++) { + OrganizationUser.validateJsonObject(jsonArrayorganizations.get(i).getAsJsonObject()); + }; + } + // ensure the json data is an array + if (jsonObj.get("allowed_actions") != null && !jsonObj.get("allowed_actions").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()) { + 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()) { + 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())); + } + if (jsonObj.get("default_namespace_charged") != null && !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())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!User.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'User' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(User.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, User value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public User read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of User given an JSON string + * + * @param jsonString JSON string + * @return An instance of User + * @throws IOException if the JSON string is invalid with respect to User + */ + public static User fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, User.class); + } + + /** + * Convert an instance of User to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/main/java/org/openapitools/client/model/Writer.java b/src/main/java/org/openapitools/client/model/Writer.java index 32e1865..92179c4 100644 --- a/src/main/java/org/openapitools/client/model/Writer.java +++ b/src/main/java/org/openapitools/client/model/Writer.java @@ -25,10 +25,30 @@ import java.io.IOException; import org.openapitools.client.model.DomainArray; +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import org.openapitools.client.JSON; + /** * Writer */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-19T15:04:32.581406+03:00[Europe/Athens]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-14T18:46:41.869452+03:00[Europe/Athens]") public class Writer { public static final String SERIALIZED_NAME_CHECK_COORD_DUPS = "checkCoordDups"; @SerializedName(SERIALIZED_NAME_CHECK_COORD_DUPS) @@ -141,6 +161,7 @@ public void setSubarray(DomainArray subarray) { } + @Override public boolean equals(Object o) { if (this == o) { @@ -184,5 +205,97 @@ private String toIndentedString(Object o) { 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("checkCoordDups"); + openapiFields.add("checkCoordOOB"); + openapiFields.add("dedupCoords"); + openapiFields.add("subarray"); + + // 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 Writer + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (Writer.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + 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) { + DomainArray.validateJsonObject(jsonObj.getAsJsonObject("subarray")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!Writer.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'Writer' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(Writer.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, Writer value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public Writer read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of Writer given an JSON string + * + * @param jsonString JSON string + * @return An instance of Writer + * @throws IOException if the JSON string is invalid with respect to Writer + */ + public static Writer fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, Writer.class); + } + + /** + * Convert an instance of Writer to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } } diff --git a/src/test/java/org/openapitools/client/model/GetTiledbStats200ResponseTest.java b/src/test/java/org/openapitools/client/model/GetTiledbStats200ResponseTest.java new file mode 100644 index 0000000..c7f8a6d --- /dev/null +++ b/src/test/java/org/openapitools/client/model/GetTiledbStats200ResponseTest.java @@ -0,0 +1,50 @@ +/* + * 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 org.openapitools.client.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for GetTiledbStats200Response + */ +public class GetTiledbStats200ResponseTest { + private final GetTiledbStats200Response model = new GetTiledbStats200Response(); + + /** + * Model tests for GetTiledbStats200Response + */ + @Test + public void testGetTiledbStats200Response() { + // TODO: test GetTiledbStats200Response + } + + /** + * Test the property 'stats' + */ + @Test + public void statsTest() { + // TODO: test stats + } + +} diff --git a/src/test/java/org/openapitools/client/model/ResetUserPasswordRequestTest.java b/src/test/java/org/openapitools/client/model/ResetUserPasswordRequestTest.java new file mode 100644 index 0000000..1a52616 --- /dev/null +++ b/src/test/java/org/openapitools/client/model/ResetUserPasswordRequestTest.java @@ -0,0 +1,50 @@ +/* + * 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 org.openapitools.client.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for ResetUserPasswordRequest + */ +public class ResetUserPasswordRequestTest { + private final ResetUserPasswordRequest model = new ResetUserPasswordRequest(); + + /** + * Model tests for ResetUserPasswordRequest + */ + @Test + public void testResetUserPasswordRequest() { + // TODO: test ResetUserPasswordRequest + } + + /** + * Test the property 'password' + */ + @Test + public void passwordTest() { + // TODO: test password + } + +}