diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index c1588a2..ef206e5 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -302,6 +302,7 @@ src/main/java/io/tiledb/cloud/rest_api/model/Attribute.java src/main/java/io/tiledb/cloud/rest_api/model/AttributeBufferHeader.java src/main/java/io/tiledb/cloud/rest_api/model/AttributeBufferSize.java src/main/java/io/tiledb/cloud/rest_api/model/Backoff.java +src/main/java/io/tiledb/cloud/rest_api/model/ChangeAssetCredentialsRequest.java src/main/java/io/tiledb/cloud/rest_api/model/Datatype.java src/main/java/io/tiledb/cloud/rest_api/model/Dimension.java src/main/java/io/tiledb/cloud/rest_api/model/DimensionCoordinate.java @@ -460,216 +461,3 @@ src/main/java/io/tiledb/cloud/rest_api/model/UDFSubarrayRange.java src/main/java/io/tiledb/cloud/rest_api/model/UDFType.java src/main/java/io/tiledb/cloud/rest_api/model/User.java src/main/java/io/tiledb/cloud/rest_api/model/Writer.java -src/test/java/io/tiledb/cloud/rest_api/api/ArrayApiTest.java -src/test/java/io/tiledb/cloud/rest_api/api/ArrayTasksApiTest.java -src/test/java/io/tiledb/cloud/rest_api/api/AssetsApiTest.java -src/test/java/io/tiledb/cloud/rest_api/api/FavoritesApiTest.java -src/test/java/io/tiledb/cloud/rest_api/api/FilesApiTest.java -src/test/java/io/tiledb/cloud/rest_api/api/GroupsApiTest.java -src/test/java/io/tiledb/cloud/rest_api/api/InvitationApiTest.java -src/test/java/io/tiledb/cloud/rest_api/api/NotebookApiTest.java -src/test/java/io/tiledb/cloud/rest_api/api/NotebooksApiTest.java -src/test/java/io/tiledb/cloud/rest_api/api/OrganizationApiTest.java -src/test/java/io/tiledb/cloud/rest_api/api/QueryApiTest.java -src/test/java/io/tiledb/cloud/rest_api/api/RegisteredTaskGraphsApiTest.java -src/test/java/io/tiledb/cloud/rest_api/api/SqlApiTest.java -src/test/java/io/tiledb/cloud/rest_api/api/StatsApiTest.java -src/test/java/io/tiledb/cloud/rest_api/api/TaskGraphLogsApiTest.java -src/test/java/io/tiledb/cloud/rest_api/api/TaskGraphsApiTest.java -src/test/java/io/tiledb/cloud/rest_api/api/TasksApiTest.java -src/test/java/io/tiledb/cloud/rest_api/api/UdfApiTest.java -src/test/java/io/tiledb/cloud/rest_api/api/UserApiTest.java -src/test/java/io/tiledb/cloud/rest_api/model/AWSAccessCredentialsTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ActivityEventTypeTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ArrayActionsTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ArrayActivityLogTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ArrayBrowserDataTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ArrayBrowserSidebarTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ArrayConsolidationRequestTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ArrayEndTimestampDataTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ArrayFavoriteTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ArrayFavoritesDataTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ArrayInfoTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ArrayInfoUpdateTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ArrayMetadataEntryTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ArrayMetadataTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ArraySampleTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ArraySchemaTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ArraySharingTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskBrowserSidebarTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskDataTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskLogTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskStatusTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ArrayTaskTypeTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ArrayTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ArrayTypeTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ArrayVacuumRequestTest.java -src/test/java/io/tiledb/cloud/rest_api/model/AssetBackingTypeTest.java -src/test/java/io/tiledb/cloud/rest_api/model/AssetInfoTest.java -src/test/java/io/tiledb/cloud/rest_api/model/AssetListResponseTest.java -src/test/java/io/tiledb/cloud/rest_api/model/AssetLocationsTest.java -src/test/java/io/tiledb/cloud/rest_api/model/AssetOwnershipLevelTest.java -src/test/java/io/tiledb/cloud/rest_api/model/AssetTypeTest.java -src/test/java/io/tiledb/cloud/rest_api/model/AttributeBufferHeaderTest.java -src/test/java/io/tiledb/cloud/rest_api/model/AttributeBufferSizeTest.java -src/test/java/io/tiledb/cloud/rest_api/model/AttributeTest.java -src/test/java/io/tiledb/cloud/rest_api/model/BackoffTest.java -src/test/java/io/tiledb/cloud/rest_api/model/DatatypeTest.java -src/test/java/io/tiledb/cloud/rest_api/model/DimensionCoordinateTest.java -src/test/java/io/tiledb/cloud/rest_api/model/DimensionTest.java -src/test/java/io/tiledb/cloud/rest_api/model/DimensionTileExtentTest.java -src/test/java/io/tiledb/cloud/rest_api/model/DomainArrayTest.java -src/test/java/io/tiledb/cloud/rest_api/model/DomainCheckResultTest.java -src/test/java/io/tiledb/cloud/rest_api/model/DomainCheckStatusTest.java -src/test/java/io/tiledb/cloud/rest_api/model/DomainTest.java -src/test/java/io/tiledb/cloud/rest_api/model/DomainVerificationStatusTest.java -src/test/java/io/tiledb/cloud/rest_api/model/EnumerationTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ErrorTest.java -src/test/java/io/tiledb/cloud/rest_api/model/FileCreateTest.java -src/test/java/io/tiledb/cloud/rest_api/model/FileCreatedTest.java -src/test/java/io/tiledb/cloud/rest_api/model/FileExportTest.java -src/test/java/io/tiledb/cloud/rest_api/model/FileExportedTest.java -src/test/java/io/tiledb/cloud/rest_api/model/FilePropertyNameTest.java -src/test/java/io/tiledb/cloud/rest_api/model/FileTypeTest.java -src/test/java/io/tiledb/cloud/rest_api/model/FileUploadedTest.java -src/test/java/io/tiledb/cloud/rest_api/model/FilterDataTest.java -src/test/java/io/tiledb/cloud/rest_api/model/FilterOptionTest.java -src/test/java/io/tiledb/cloud/rest_api/model/FilterPipelineTest.java -src/test/java/io/tiledb/cloud/rest_api/model/FilterTest.java -src/test/java/io/tiledb/cloud/rest_api/model/FilterTypeTest.java -src/test/java/io/tiledb/cloud/rest_api/model/FragmentInfoRequestTest.java -src/test/java/io/tiledb/cloud/rest_api/model/FragmentInfoTest.java -src/test/java/io/tiledb/cloud/rest_api/model/FragmentMetadataTest.java -src/test/java/io/tiledb/cloud/rest_api/model/GenericUDFTest.java -src/test/java/io/tiledb/cloud/rest_api/model/GetTiledbStats200ResponseTest.java -src/test/java/io/tiledb/cloud/rest_api/model/GroupActionsTest.java -src/test/java/io/tiledb/cloud/rest_api/model/GroupBrowserDataTest.java -src/test/java/io/tiledb/cloud/rest_api/model/GroupBrowserFilterDataTest.java -src/test/java/io/tiledb/cloud/rest_api/model/GroupChangesTest.java -src/test/java/io/tiledb/cloud/rest_api/model/GroupContentActivityAssetTest.java -src/test/java/io/tiledb/cloud/rest_api/model/GroupContentActivityResponseTest.java -src/test/java/io/tiledb/cloud/rest_api/model/GroupContentActivityTest.java -src/test/java/io/tiledb/cloud/rest_api/model/GroupContentsFilterDataTest.java -src/test/java/io/tiledb/cloud/rest_api/model/GroupContentsTest.java -src/test/java/io/tiledb/cloud/rest_api/model/GroupCreateTest.java -src/test/java/io/tiledb/cloud/rest_api/model/GroupEntryTest.java -src/test/java/io/tiledb/cloud/rest_api/model/GroupInfoTest.java -src/test/java/io/tiledb/cloud/rest_api/model/GroupMemberAssetTypeTest.java -src/test/java/io/tiledb/cloud/rest_api/model/GroupMemberTest.java -src/test/java/io/tiledb/cloud/rest_api/model/GroupMemberTypeTest.java -src/test/java/io/tiledb/cloud/rest_api/model/GroupRegisterTest.java -src/test/java/io/tiledb/cloud/rest_api/model/GroupSharingRequestTest.java -src/test/java/io/tiledb/cloud/rest_api/model/GroupSharingTest.java -src/test/java/io/tiledb/cloud/rest_api/model/GroupTypeMetadataKeyTest.java -src/test/java/io/tiledb/cloud/rest_api/model/GroupTypeTest.java -src/test/java/io/tiledb/cloud/rest_api/model/GroupUpdateTest.java -src/test/java/io/tiledb/cloud/rest_api/model/InvitationArrayShareEmailTest.java -src/test/java/io/tiledb/cloud/rest_api/model/InvitationDataTest.java -src/test/java/io/tiledb/cloud/rest_api/model/InvitationFailedRecipientsTest.java -src/test/java/io/tiledb/cloud/rest_api/model/InvitationGroupShareEmailTest.java -src/test/java/io/tiledb/cloud/rest_api/model/InvitationOrganizationJoinEmailTest.java -src/test/java/io/tiledb/cloud/rest_api/model/InvitationStatusTest.java -src/test/java/io/tiledb/cloud/rest_api/model/InvitationTest.java -src/test/java/io/tiledb/cloud/rest_api/model/InvitationTypeTest.java -src/test/java/io/tiledb/cloud/rest_api/model/LastAccessedArrayTest.java -src/test/java/io/tiledb/cloud/rest_api/model/LayoutTest.java -src/test/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaRequestTest.java -src/test/java/io/tiledb/cloud/rest_api/model/LoadArraySchemaResponseTest.java -src/test/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsRequestTest.java -src/test/java/io/tiledb/cloud/rest_api/model/LoadEnumerationsResponseTest.java -src/test/java/io/tiledb/cloud/rest_api/model/MLModelFavoriteTest.java -src/test/java/io/tiledb/cloud/rest_api/model/MLModelFavoritesDataTest.java -src/test/java/io/tiledb/cloud/rest_api/model/MaxBufferSizesTest.java -src/test/java/io/tiledb/cloud/rest_api/model/MetadataStringifiedEntryTest.java -src/test/java/io/tiledb/cloud/rest_api/model/MetadataStringifiedTest.java -src/test/java/io/tiledb/cloud/rest_api/model/MultiArrayUDFTest.java -src/test/java/io/tiledb/cloud/rest_api/model/NamespaceActionsTest.java -src/test/java/io/tiledb/cloud/rest_api/model/NonEmptyDomainTest.java -src/test/java/io/tiledb/cloud/rest_api/model/NotebookCopiedTest.java -src/test/java/io/tiledb/cloud/rest_api/model/NotebookCopyTest.java -src/test/java/io/tiledb/cloud/rest_api/model/NotebookFavoriteTest.java -src/test/java/io/tiledb/cloud/rest_api/model/NotebookFavoritesDataTest.java -src/test/java/io/tiledb/cloud/rest_api/model/NotebookStatusTest.java -src/test/java/io/tiledb/cloud/rest_api/model/OrganizationRolesTest.java -src/test/java/io/tiledb/cloud/rest_api/model/OrganizationTest.java -src/test/java/io/tiledb/cloud/rest_api/model/OrganizationUpdateTest.java -src/test/java/io/tiledb/cloud/rest_api/model/OrganizationUserTest.java -src/test/java/io/tiledb/cloud/rest_api/model/PaginationMetadataTest.java -src/test/java/io/tiledb/cloud/rest_api/model/PodStatusTest.java -src/test/java/io/tiledb/cloud/rest_api/model/PricingAggregateUsageTest.java -src/test/java/io/tiledb/cloud/rest_api/model/PricingCurrencyTest.java -src/test/java/io/tiledb/cloud/rest_api/model/PricingIntervalTest.java -src/test/java/io/tiledb/cloud/rest_api/model/PricingTest.java -src/test/java/io/tiledb/cloud/rest_api/model/PricingTypeTest.java -src/test/java/io/tiledb/cloud/rest_api/model/PricingUnitLabelTest.java -src/test/java/io/tiledb/cloud/rest_api/model/PublicShareFilterTest.java -src/test/java/io/tiledb/cloud/rest_api/model/QueryJsonTest.java -src/test/java/io/tiledb/cloud/rest_api/model/QueryRangesTest.java -src/test/java/io/tiledb/cloud/rest_api/model/QueryReaderTest.java -src/test/java/io/tiledb/cloud/rest_api/model/QueryTest.java -src/test/java/io/tiledb/cloud/rest_api/model/QuerystatusTest.java -src/test/java/io/tiledb/cloud/rest_api/model/QuerytypeTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ReadStateTest.java -src/test/java/io/tiledb/cloud/rest_api/model/RegisteredTaskGraphTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ResetUserPasswordRequestTest.java -src/test/java/io/tiledb/cloud/rest_api/model/ResultFormatTest.java -src/test/java/io/tiledb/cloud/rest_api/model/RetryPolicyTest.java -src/test/java/io/tiledb/cloud/rest_api/model/RetryStrategyTest.java -src/test/java/io/tiledb/cloud/rest_api/model/SQLParametersTest.java -src/test/java/io/tiledb/cloud/rest_api/model/SSODomainConfigResponseTest.java -src/test/java/io/tiledb/cloud/rest_api/model/SSODomainConfigTest.java -src/test/java/io/tiledb/cloud/rest_api/model/SSODomainSetupTest.java -src/test/java/io/tiledb/cloud/rest_api/model/SSOProviderTest.java -src/test/java/io/tiledb/cloud/rest_api/model/SharePaymentRequestTest.java -src/test/java/io/tiledb/cloud/rest_api/model/SingleFragmentInfoTest.java -src/test/java/io/tiledb/cloud/rest_api/model/StorageLocationTest.java -src/test/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerCurrentTest.java -src/test/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerStateTest.java -src/test/java/io/tiledb/cloud/rest_api/model/SubarrayPartitionerTest.java -src/test/java/io/tiledb/cloud/rest_api/model/SubarrayRangesTest.java -src/test/java/io/tiledb/cloud/rest_api/model/SubarrayTest.java -src/test/java/io/tiledb/cloud/rest_api/model/SubscriptionTest.java -src/test/java/io/tiledb/cloud/rest_api/model/TGArrayNodeDataTest.java -src/test/java/io/tiledb/cloud/rest_api/model/TGInputNodeDataTest.java -src/test/java/io/tiledb/cloud/rest_api/model/TGQueryRangesTest.java -src/test/java/io/tiledb/cloud/rest_api/model/TGSQLNodeDataTest.java -src/test/java/io/tiledb/cloud/rest_api/model/TGUDFArgumentTest.java -src/test/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironmentResourcesTest.java -src/test/java/io/tiledb/cloud/rest_api/model/TGUDFEnvironmentTest.java -src/test/java/io/tiledb/cloud/rest_api/model/TGUDFNodeDataTest.java -src/test/java/io/tiledb/cloud/rest_api/model/TGUDFStorageTest.java -src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphActionsTest.java -src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphClientNodeStatusTest.java -src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogRunLocationTest.java -src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogStatusTest.java -src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogTest.java -src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphLogsDataTest.java -src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphNodeMetadataTest.java -src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphNodeTest.java -src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphSharingTest.java -src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphTest.java -src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphTypeTest.java -src/test/java/io/tiledb/cloud/rest_api/model/TaskGraphsTest.java -src/test/java/io/tiledb/cloud/rest_api/model/TileDBConfigEntriesInnerTest.java -src/test/java/io/tiledb/cloud/rest_api/model/TileDBConfigTest.java -src/test/java/io/tiledb/cloud/rest_api/model/TokenRequestTest.java -src/test/java/io/tiledb/cloud/rest_api/model/TokenScopeTest.java -src/test/java/io/tiledb/cloud/rest_api/model/TokenTest.java -src/test/java/io/tiledb/cloud/rest_api/model/UDFActionsTest.java -src/test/java/io/tiledb/cloud/rest_api/model/UDFArrayDetailsTest.java -src/test/java/io/tiledb/cloud/rest_api/model/UDFCopiedTest.java -src/test/java/io/tiledb/cloud/rest_api/model/UDFCopyTest.java -src/test/java/io/tiledb/cloud/rest_api/model/UDFFavoriteTest.java -src/test/java/io/tiledb/cloud/rest_api/model/UDFFavoritesDataTest.java -src/test/java/io/tiledb/cloud/rest_api/model/UDFImageTest.java -src/test/java/io/tiledb/cloud/rest_api/model/UDFImageVersionTest.java -src/test/java/io/tiledb/cloud/rest_api/model/UDFInfoTest.java -src/test/java/io/tiledb/cloud/rest_api/model/UDFInfoUpdateTest.java -src/test/java/io/tiledb/cloud/rest_api/model/UDFLanguageTest.java -src/test/java/io/tiledb/cloud/rest_api/model/UDFSharingTest.java -src/test/java/io/tiledb/cloud/rest_api/model/UDFSubarrayRangeTest.java -src/test/java/io/tiledb/cloud/rest_api/model/UDFSubarrayTest.java -src/test/java/io/tiledb/cloud/rest_api/model/UDFTypeTest.java -src/test/java/io/tiledb/cloud/rest_api/model/UserTest.java -src/test/java/io/tiledb/cloud/rest_api/model/WriterTest.java diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index 6d54bbd..1985849 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -6.0.1 \ No newline at end of file +7.7.0 diff --git a/DEVELOP.md b/DEVELOP.md new file mode 100644 index 0000000..09ae291 --- /dev/null +++ b/DEVELOP.md @@ -0,0 +1,25 @@ +# Regenerate client: + +Install desired version of `openapi-generator-cli` ([docs](https://openapi-generator.tech/docs/installation)): +```bash +npm install @openapitools/openapi-generator-cli -g +openapi-generator-cli version-manager set 7.7.0 +openapi-generator generate -i openapi-v1.yaml -g java +``` + +Update local copy of spec from [`TileDB-Server//openapi/v1to3/src/openapi-v1.yaml`](https://github.com/TileDB-Inc/TileDB-Server/blob/main/openapi/v1to3/src/openapi-v1.yaml): +```bash +gh api \ + -H "Accept: application/vnd.github.raw" \ + /repos/TileDB-Inc/TileDB-Server/contents/openapi/v1to3/src/openapi-v1.yaml \ +> openapi-v1.yaml +``` + +Regenerate client ([`regen.sh`](regen.sh)): +```bash +./regen.sh +``` + +This regenerates the client code, `git add`s relevant files, and applies custom code / patches (see [`patch`]). + +[`patch`]: https://github.com/TileDB-Inc/TileDB-Cloud-Java/commit/patch diff --git a/config.yaml b/config.yaml new file mode 100644 index 0000000..0b03ace --- /dev/null +++ b/config.yaml @@ -0,0 +1,4 @@ +additionalProperties: + apiPackage: io.tiledb.cloud.rest_api.api + modelPackage: io.tiledb.cloud.rest_api.model + hideGenerationTimestamp: true diff --git a/docs/ArrayApi.md b/docs/ArrayApi.md index b2d445b..4949da7 100644 --- a/docs/ArrayApi.md +++ b/docs/ArrayApi.md @@ -40,7 +40,7 @@ All URIs are relative to */v1* | [**vacuumArray**](ArrayApi.md#vacuumArray) | **POST** /arrays/{workspace}/{teamspace}/{array}/vacuum | | - + # **arrayActivityLog** > List<ArrayActivityLog> arrayActivityLog(workspace, teamspace, array, start, end, eventTypes, taskId, hasTaskId) @@ -49,52 +49,51 @@ All URIs are relative to */v1* get array activity logs ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String array = "array_example"; // String | name/uri of array that is url-encoded - Integer start = 56; // Integer | Start time of window of fetch logs, unix epoch in seconds (default: seven days ago) - Integer end = 56; // Integer | End time of window of fetch logs, unix epoch in seconds (default: current utc timestamp) - String eventTypes = "eventTypes_example"; // String | Refer to ActivityEventType for possible values - String taskId = "taskId_example"; // String | Array task ID To filter activity to - Boolean hasTaskId = true; // Boolean | Excludes activity log results that do not contain an array task UUID - try { - List result = apiInstance.arrayActivityLog(workspace, teamspace, array, start, end, eventTypes, taskId, hasTaskId); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#arrayActivityLog"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String array = "array_example"; // String | name/uri of array that is url-encoded + Integer start = 56; // Integer | Start time of window of fetch logs, unix epoch in seconds (default: seven days ago) + Integer end = 56; // Integer | End time of window of fetch logs, unix epoch in seconds (default: current utc timestamp) + String eventTypes = "eventTypes_example"; // String | Refer to ActivityEventType for possible values + String taskId = "taskId_example"; // String | Array task ID To filter activity to + Boolean hasTaskId = true; // Boolean | Excludes activity log results that do not contain an array task UUID + try { + List result = apiInstance.arrayActivityLog(workspace, teamspace, array, start, end, eventTypes, taskId, hasTaskId); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#arrayActivityLog"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -117,7 +116,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -131,7 +130,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **arraysBrowserOwnedGet** > ArrayBrowserData arraysBrowserOwnedGet(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, withMetadata) @@ -140,56 +139,55 @@ public class Example { Fetch a list of all arrays that are owned directly by user or user's organizations ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - Integer page = 56; // Integer | pagination offset - Integer perPage = 56; // Integer | pagination limit - String search = "search_example"; // String | search string that will look at name, namespace or description fields - String namespace = "namespace_example"; // String | namespace - String orderby = "orderby_example"; // String | sort by which field valid values include size, name - String permissions = "permissions_example"; // String | permissions valid values include read, read_write, write, admin - List tag = Arrays.asList(); // List | tag to search for, more than one can be included - List excludeTag = Arrays.asList(); // List | tags to exclude matching array in results, more than one can be included - List fileType = Arrays.asList(); // List | file_type to search for, more than one can be included - List excludeFileType = Arrays.asList(); // List | file_type to exclude matching array in results, more than one can be included - List fileProperty = Arrays.asList(); // List | file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included - Boolean withMetadata = true; // Boolean | include the metadata of the array - try { - ArrayBrowserData result = apiInstance.arraysBrowserOwnedGet(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, withMetadata); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#arraysBrowserOwnedGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + Integer page = 56; // Integer | pagination offset + Integer perPage = 56; // Integer | pagination limit + String search = "search_example"; // String | search string that will look at name, namespace or description fields + String namespace = "namespace_example"; // String | namespace + String orderby = "orderby_example"; // String | sort by which field valid values include size, name + String permissions = "permissions_example"; // String | permissions valid values include read, read_write, write, admin + List tag = Arrays.asList(); // List | tag to search for, more than one can be included + List excludeTag = Arrays.asList(); // List | tags to exclude matching array in results, more than one can be included + List fileType = Arrays.asList(); // List | file_type to search for, more than one can be included + List excludeFileType = Arrays.asList(); // List | file_type to exclude matching array in results, more than one can be included + List fileProperty = Arrays.asList(); // List | file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included + Boolean withMetadata = true; // Boolean | include the metadata of the array + try { + ArrayBrowserData result = apiInstance.arraysBrowserOwnedGet(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, withMetadata); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#arraysBrowserOwnedGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -216,7 +214,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -230,7 +228,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **arraysBrowserOwnedSidebarGet** > ArrayBrowserSidebar arraysBrowserOwnedSidebarGet(fileType, excludeFileType, fileProperty) @@ -239,47 +237,46 @@ public class Example { Fetch a sidebar for arrays that are owned directly by user or user's organizations ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - List fileType = Arrays.asList(); // List | file_type to search for, more than one can be included - List excludeFileType = Arrays.asList(); // List | file_type to exclude matching array in results, more than one can be included - List fileProperty = Arrays.asList(); // List | file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included - try { - ArrayBrowserSidebar result = apiInstance.arraysBrowserOwnedSidebarGet(fileType, excludeFileType, fileProperty); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#arraysBrowserOwnedSidebarGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + List fileType = Arrays.asList(); // List | file_type to search for, more than one can be included + List excludeFileType = Arrays.asList(); // List | file_type to exclude matching array in results, more than one can be included + List fileProperty = Arrays.asList(); // List | file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included + try { + ArrayBrowserSidebar result = apiInstance.arraysBrowserOwnedSidebarGet(fileType, excludeFileType, fileProperty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#arraysBrowserOwnedSidebarGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -297,7 +294,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -311,7 +308,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **arraysBrowserPublicGet** > ArrayBrowserData arraysBrowserPublicGet(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, withMetadata) @@ -320,56 +317,55 @@ public class Example { Fetch a list of all arrays that have been shared publically ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - Integer page = 56; // Integer | pagination offset - Integer perPage = 56; // Integer | pagination limit - String search = "search_example"; // String | search string that will look at name, namespace or description fields - String namespace = "namespace_example"; // String | namespace - String orderby = "orderby_example"; // String | sort by which field valid values include size, name - String permissions = "permissions_example"; // String | permissions valid values include read, read_write, write, admin - List tag = Arrays.asList(); // List | tag to search for, more than one can be included - List excludeTag = Arrays.asList(); // List | tags to exclude matching array in results, more than one can be included - List fileType = Arrays.asList(); // List | file_type to search for, more than one can be included - List excludeFileType = Arrays.asList(); // List | file_type to exclude matching array in results, more than one can be included - List fileProperty = Arrays.asList(); // List | file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included - Boolean withMetadata = true; // Boolean | include the metadata of the array - try { - ArrayBrowserData result = apiInstance.arraysBrowserPublicGet(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, withMetadata); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#arraysBrowserPublicGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + Integer page = 56; // Integer | pagination offset + Integer perPage = 56; // Integer | pagination limit + String search = "search_example"; // String | search string that will look at name, namespace or description fields + String namespace = "namespace_example"; // String | namespace + String orderby = "orderby_example"; // String | sort by which field valid values include size, name + String permissions = "permissions_example"; // String | permissions valid values include read, read_write, write, admin + List tag = Arrays.asList(); // List | tag to search for, more than one can be included + List excludeTag = Arrays.asList(); // List | tags to exclude matching array in results, more than one can be included + List fileType = Arrays.asList(); // List | file_type to search for, more than one can be included + List excludeFileType = Arrays.asList(); // List | file_type to exclude matching array in results, more than one can be included + List fileProperty = Arrays.asList(); // List | file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included + Boolean withMetadata = true; // Boolean | include the metadata of the array + try { + ArrayBrowserData result = apiInstance.arraysBrowserPublicGet(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, withMetadata); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#arraysBrowserPublicGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -396,7 +392,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -410,7 +406,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **arraysBrowserPublicSidebarGet** > ArrayBrowserSidebar arraysBrowserPublicSidebarGet(fileType, excludeFileType, fileProperty) @@ -419,47 +415,46 @@ public class Example { Fetch a sidebar of all arrays that have been shared publically ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - List fileType = Arrays.asList(); // List | file_type to search for, more than one can be included - List excludeFileType = Arrays.asList(); // List | file_type to exclude matching array in results, more than one can be included - List fileProperty = Arrays.asList(); // List | file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included - try { - ArrayBrowserSidebar result = apiInstance.arraysBrowserPublicSidebarGet(fileType, excludeFileType, fileProperty); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#arraysBrowserPublicSidebarGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + List fileType = Arrays.asList(); // List | file_type to search for, more than one can be included + List excludeFileType = Arrays.asList(); // List | file_type to exclude matching array in results, more than one can be included + List fileProperty = Arrays.asList(); // List | file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included + try { + ArrayBrowserSidebar result = apiInstance.arraysBrowserPublicSidebarGet(fileType, excludeFileType, fileProperty); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#arraysBrowserPublicSidebarGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -477,7 +472,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -491,7 +486,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **arraysBrowserSharedGet** > ArrayBrowserData arraysBrowserSharedGet(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, sharedTo, withMetadata) @@ -500,57 +495,56 @@ public class Example { Fetch a list of all arrays that have been shared with the user ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - Integer page = 56; // Integer | pagination offset - Integer perPage = 56; // Integer | pagination limit - String search = "search_example"; // String | search string that will look at name, namespace or description fields - String namespace = "namespace_example"; // String | namespace - String orderby = "orderby_example"; // String | sort by which field valid values include size, name - String permissions = "permissions_example"; // String | permissions valid values include read, read_write, write, admin - List tag = Arrays.asList(); // List | tag to search for, more than one can be included - List excludeTag = Arrays.asList(); // List | tags to exclude matching array in results, more than one can be included - List fileType = Arrays.asList(); // List | file_type to search for, more than one can be included - List excludeFileType = Arrays.asList(); // List | file_type to exclude matching array in results, more than one can be included - List fileProperty = Arrays.asList(); // List | file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included - List sharedTo = Arrays.asList(); // List | namespaces to filter results of where there arrays were shared to - Boolean withMetadata = true; // Boolean | include the metadata of the array - try { - ArrayBrowserData result = apiInstance.arraysBrowserSharedGet(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, sharedTo, withMetadata); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#arraysBrowserSharedGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + Integer page = 56; // Integer | pagination offset + Integer perPage = 56; // Integer | pagination limit + String search = "search_example"; // String | search string that will look at name, namespace or description fields + String namespace = "namespace_example"; // String | namespace + String orderby = "orderby_example"; // String | sort by which field valid values include size, name + String permissions = "permissions_example"; // String | permissions valid values include read, read_write, write, admin + List tag = Arrays.asList(); // List | tag to search for, more than one can be included + List excludeTag = Arrays.asList(); // List | tags to exclude matching array in results, more than one can be included + List fileType = Arrays.asList(); // List | file_type to search for, more than one can be included + List excludeFileType = Arrays.asList(); // List | file_type to exclude matching array in results, more than one can be included + List fileProperty = Arrays.asList(); // List | file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included + List sharedTo = Arrays.asList(); // List | namespaces to filter results of where there arrays were shared to + Boolean withMetadata = true; // Boolean | include the metadata of the array + try { + ArrayBrowserData result = apiInstance.arraysBrowserSharedGet(page, perPage, search, namespace, orderby, permissions, tag, excludeTag, fileType, excludeFileType, fileProperty, sharedTo, withMetadata); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#arraysBrowserSharedGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -578,7 +572,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -592,7 +586,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **arraysBrowserSharedSidebarGet** > ArrayBrowserSidebar arraysBrowserSharedSidebarGet(fileType, excludeFileType, fileProperty, sharedTo) @@ -601,48 +595,47 @@ public class Example { Fetch a list of all arrays that have been shared with the user ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - List fileType = Arrays.asList(); // List | file_type to search for, more than one can be included - List excludeFileType = Arrays.asList(); // List | file_type to exclude matching array in results, more than one can be included - List fileProperty = Arrays.asList(); // List | file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included - List sharedTo = Arrays.asList(); // List | namespaces to filter results of where there groups were shared to - try { - ArrayBrowserSidebar result = apiInstance.arraysBrowserSharedSidebarGet(fileType, excludeFileType, fileProperty, sharedTo); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#arraysBrowserSharedSidebarGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + List fileType = Arrays.asList(); // List | file_type to search for, more than one can be included + List excludeFileType = Arrays.asList(); // List | file_type to exclude matching array in results, more than one can be included + List fileProperty = Arrays.asList(); // List | file_property key-value pair (comma separated, i.e. key,value) to search for, more than one can be included + List sharedTo = Arrays.asList(); // List | namespaces to filter results of where there groups were shared to + try { + ArrayBrowserSidebar result = apiInstance.arraysBrowserSharedSidebarGet(fileType, excludeFileType, fileProperty, sharedTo); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#arraysBrowserSharedSidebarGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -661,7 +654,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -675,7 +668,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **arraysWorkspaceTeamspaceArrayEndTimestampsGet** > ArrayEndTimestampData arraysWorkspaceTeamspaceArrayEndTimestampsGet(workspace, teamspace, array, page, perPage) @@ -684,49 +677,48 @@ public class Example { retrieve a list of timestamps from the array fragment info listing in milliseconds, paginated ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String array = "array_example"; // String | name/uri of array that is url-encoded - Integer page = 56; // Integer | pagination offset - Integer perPage = 56; // Integer | pagination limit - try { - ArrayEndTimestampData result = apiInstance.arraysWorkspaceTeamspaceArrayEndTimestampsGet(workspace, teamspace, array, page, perPage); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#arraysWorkspaceTeamspaceArrayEndTimestampsGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String array = "array_example"; // String | name/uri of array that is url-encoded + Integer page = 56; // Integer | pagination offset + Integer perPage = 56; // Integer | pagination limit + try { + ArrayEndTimestampData result = apiInstance.arraysWorkspaceTeamspaceArrayEndTimestampsGet(workspace, teamspace, array, page, perPage); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#arraysWorkspaceTeamspaceArrayEndTimestampsGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -746,7 +738,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -760,7 +752,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **consolidateArray** > consolidateArray(workspace, teamspace, array, consolidateRequest) @@ -769,47 +761,46 @@ public class Example { consolidate an array at a specified URI ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String array = "array_example"; // String | name/uri of array that is url-encoded - ArrayConsolidationRequest consolidateRequest = new ArrayConsolidationRequest(); // ArrayConsolidationRequest | Consolidate Request - try { - apiInstance.consolidateArray(workspace, teamspace, array, consolidateRequest); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#consolidateArray"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String array = "array_example"; // String | name/uri of array that is url-encoded + ArrayConsolidationRequest consolidateRequest = new ArrayConsolidationRequest(); // ArrayConsolidationRequest | Consolidate Request + try { + apiInstance.consolidateArray(workspace, teamspace, array, consolidateRequest); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#consolidateArray"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -828,7 +819,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -842,7 +833,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **createArray** > createArray(workspace, teamspace, array, contentType, arraySchema, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME) @@ -851,49 +842,48 @@ null (empty response body) create a array schema at a specified URI registered to a group/project ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String array = "array_example"; // String | name/uri of array that is url-encoded - String contentType = "application/json"; // String | Content Type of input and return mime - ArraySchema arraySchema = new ArraySchema(); // ArraySchema | ArraySchema being created - String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME = "X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME_example"; // String | Optional registered access credentials to use for creation - try { - apiInstance.createArray(workspace, teamspace, array, contentType, arraySchema, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#createArray"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String array = "array_example"; // String | name/uri of array that is url-encoded + String contentType = "application/json"; // String | Content Type of input and return mime + ArraySchema arraySchema = new ArraySchema(); // ArraySchema | ArraySchema being created + String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME = "X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME_example"; // String | Optional registered access credentials to use for creation + try { + apiInstance.createArray(workspace, teamspace, array, contentType, arraySchema, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#createArray"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -914,7 +904,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -928,7 +918,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **deleteArray** > deleteArray(workspace, teamspace, array, contentType) @@ -937,47 +927,46 @@ null (empty response body) delete a array ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String array = "array_example"; // String | name/uri of array that is url-encoded - String contentType = "application/json"; // String | Content Type of input and return mime - try { - apiInstance.deleteArray(workspace, teamspace, array, contentType); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#deleteArray"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String array = "array_example"; // String | name/uri of array that is url-encoded + String contentType = "application/json"; // String | Content Type of input and return mime + try { + apiInstance.deleteArray(workspace, teamspace, array, contentType); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#deleteArray"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -996,7 +985,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1010,7 +999,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **deregisterArray** > deregisterArray(workspace, teamspace, array) @@ -1019,46 +1008,45 @@ null (empty response body) deregister a array ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String array = "array_example"; // String | name/uri of array that is url-encoded - try { - apiInstance.deregisterArray(workspace, teamspace, array); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#deregisterArray"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String array = "array_example"; // String | name/uri of array that is url-encoded + try { + apiInstance.deregisterArray(workspace, teamspace, array); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#deregisterArray"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1076,7 +1064,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1090,7 +1078,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **fragmentInfo** > FragmentInfo fragmentInfo(workspace, teamspace, array, contentType, fragmentInfoRequest) @@ -1099,49 +1087,48 @@ null (empty response body) fetch an array's fragment info ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String array = "array_example"; // String | name/uri of array that is url-encoded - String contentType = "application/json"; // String | Content Type of input and return mime - FragmentInfoRequest fragmentInfoRequest = new FragmentInfoRequest(); // FragmentInfoRequest | ArraySchema being created - try { - FragmentInfo result = apiInstance.fragmentInfo(workspace, teamspace, array, contentType, fragmentInfoRequest); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#fragmentInfo"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String array = "array_example"; // String | name/uri of array that is url-encoded + String contentType = "application/json"; // String | Content Type of input and return mime + FragmentInfoRequest fragmentInfoRequest = new FragmentInfoRequest(); // FragmentInfoRequest | ArraySchema being created + try { + FragmentInfo result = apiInstance.fragmentInfo(workspace, teamspace, array, contentType, fragmentInfoRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#fragmentInfo"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1161,7 +1148,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1174,7 +1161,7 @@ public class Example { | **200** | fragment info | - | | **0** | error response | - | - + # **getActivityLogById** > ArrayActivityLog getActivityLogById(workspace, teamspace, array, id) @@ -1183,48 +1170,47 @@ public class Example { get activity log by ID ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String array = "array_example"; // String | name/uri of array that is url-encoded - String id = "id_example"; // String | ID of the activity - try { - ArrayActivityLog result = apiInstance.getActivityLogById(workspace, teamspace, array, id); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#getActivityLogById"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String array = "array_example"; // String | name/uri of array that is url-encoded + String id = "id_example"; // String | ID of the activity + try { + ArrayActivityLog result = apiInstance.getActivityLogById(workspace, teamspace, array, id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#getActivityLogById"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1243,7 +1229,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1257,7 +1243,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getAllArrayMetadata** > List<ArrayInfo> getAllArrayMetadata(publicShare) @@ -1266,45 +1252,44 @@ public class Example { get all array metadata user has access to ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String publicShare = "publicShare_example"; // String | Public share values can be one of exclude, only - try { - List result = apiInstance.getAllArrayMetadata(publicShare); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#getAllArrayMetadata"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String publicShare = "publicShare_example"; // String | Public share values can be one of exclude, only + try { + List result = apiInstance.getAllArrayMetadata(publicShare); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#getAllArrayMetadata"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1320,7 +1305,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1334,7 +1319,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getArray** > ArraySchema getArray(workspace, teamspace, array, contentType) @@ -1343,48 +1328,47 @@ public class Example { get an ArraySchema using a url encoded uri ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String array = "array_example"; // String | name/uri of array that is url-encoded - String contentType = "application/json"; // String | Content Type of input and return mime - try { - ArraySchema result = apiInstance.getArray(workspace, teamspace, array, contentType); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#getArray"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String array = "array_example"; // String | name/uri of array that is url-encoded + String contentType = "application/json"; // String | Content Type of input and return mime + try { + ArraySchema result = apiInstance.getArray(workspace, teamspace, array, contentType); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#getArray"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1403,7 +1387,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1417,7 +1401,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getArrayMaxBufferSizes** > MaxBufferSizes getArrayMaxBufferSizes(workspace, teamspace, array, subarray, contentType, xPayer) @@ -1426,50 +1410,49 @@ public class Example { get the max buffer sizes of an array for a subarray ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String array = "array_example"; // String | name/uri of array that is url-encoded - String subarray = "subarray_example"; // String | CSV string of subarray to get max buffer sizes for - String contentType = "application/json"; // String | Content Type of input and return mime - String xPayer = "xPayer_example"; // String | Name of organization or user who should be charged for this request - try { - MaxBufferSizes result = apiInstance.getArrayMaxBufferSizes(workspace, teamspace, array, subarray, contentType, xPayer); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#getArrayMaxBufferSizes"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String array = "array_example"; // String | name/uri of array that is url-encoded + String subarray = "subarray_example"; // String | CSV string of subarray to get max buffer sizes for + String contentType = "application/json"; // String | Content Type of input and return mime + String xPayer = "xPayer_example"; // String | Name of organization or user who should be charged for this request + try { + MaxBufferSizes result = apiInstance.getArrayMaxBufferSizes(workspace, teamspace, array, subarray, contentType, xPayer); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#getArrayMaxBufferSizes"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1490,7 +1473,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1504,58 +1487,57 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getArrayMetaDataJson** -> Object getArrayMetaDataJson(workspace, teamspace, array, length, endTimestamp) +> Map<String, Object> getArrayMetaDataJson(workspace, teamspace, array, length, endTimestamp) get metadata from the array in JSON format ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String array = "array_example"; // String | name/uri of array that is url-encoded - Integer length = 56; // Integer | (optional) limit character length of returned values - Integer endTimestamp = 56; // Integer | Milliseconds since Unix epoch, metadata will use open_at functionality to open array at the specific timestamp - try { - Object result = apiInstance.getArrayMetaDataJson(workspace, teamspace, array, length, endTimestamp); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#getArrayMetaDataJson"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String array = "array_example"; // String | name/uri of array that is url-encoded + Integer length = 56; // Integer | (optional) limit character length of returned values + Integer endTimestamp = 56; // Integer | Milliseconds since Unix epoch, metadata will use open_at functionality to open array at the specific timestamp + try { + Map result = apiInstance.getArrayMetaDataJson(workspace, teamspace, array, length, endTimestamp); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#getArrayMetaDataJson"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1571,11 +1553,11 @@ public class Example { ### Return type -**Object** +**Map<String, Object>** ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1589,7 +1571,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getArrayMetadata** > ArrayInfo getArrayMetadata(workspace, teamspace, array) @@ -1598,47 +1580,46 @@ public class Example { get metadata on an array ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String array = "array_example"; // String | name/uri of array that is url-encoded - try { - ArrayInfo result = apiInstance.getArrayMetadata(workspace, teamspace, array); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#getArrayMetadata"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String array = "array_example"; // String | name/uri of array that is url-encoded + try { + ArrayInfo result = apiInstance.getArrayMetadata(workspace, teamspace, array); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#getArrayMetadata"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1656,7 +1637,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1670,7 +1651,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getArrayMetadataCapnp** > ArrayMetadata getArrayMetadataCapnp(workspace, teamspace, array) @@ -1679,47 +1660,46 @@ public class Example { get metadata on an array ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String array = "array_example"; // String | name/uri of array that is url-encoded - try { - ArrayMetadata result = apiInstance.getArrayMetadataCapnp(workspace, teamspace, array); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#getArrayMetadataCapnp"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String array = "array_example"; // String | name/uri of array that is url-encoded + try { + ArrayMetadata result = apiInstance.getArrayMetadataCapnp(workspace, teamspace, array); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#getArrayMetadataCapnp"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1737,7 +1717,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1751,7 +1731,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getArrayNonEmptyDomain** > NonEmptyDomain getArrayNonEmptyDomain(workspace, teamspace, array, contentType, xPayer) @@ -1760,49 +1740,48 @@ public class Example { get the non empty domain of an array ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String array = "array_example"; // String | name/uri of array that is url-encoded - String contentType = "application/json"; // String | Content Type of input and return mime - String xPayer = "xPayer_example"; // String | Name of organization or user who should be charged for this request - try { - NonEmptyDomain result = apiInstance.getArrayNonEmptyDomain(workspace, teamspace, array, contentType, xPayer); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#getArrayNonEmptyDomain"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String array = "array_example"; // String | name/uri of array that is url-encoded + String contentType = "application/json"; // String | Content Type of input and return mime + String xPayer = "xPayer_example"; // String | Name of organization or user who should be charged for this request + try { + NonEmptyDomain result = apiInstance.getArrayNonEmptyDomain(workspace, teamspace, array, contentType, xPayer); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#getArrayNonEmptyDomain"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1822,7 +1801,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1836,56 +1815,55 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getArrayNonEmptyDomainJson** -> Object getArrayNonEmptyDomainJson(workspace, teamspace, array) +> Map<String, Object> getArrayNonEmptyDomainJson(workspace, teamspace, array) get non-empty domain from the array in json format ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String array = "array_example"; // String | name/uri of array that is url-encoded - try { - Object result = apiInstance.getArrayNonEmptyDomainJson(workspace, teamspace, array); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#getArrayNonEmptyDomainJson"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String array = "array_example"; // String | name/uri of array that is url-encoded + try { + Map result = apiInstance.getArrayNonEmptyDomainJson(workspace, teamspace, array); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#getArrayNonEmptyDomainJson"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1899,11 +1877,11 @@ public class Example { ### Return type -**Object** +**Map<String, Object>** ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1917,7 +1895,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getArraySampleData** > ArraySample getArraySampleData(workspace, teamspace, array, samples) @@ -1926,48 +1904,47 @@ public class Example { get an sample set of data from the array ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String array = "array_example"; // String | name/uri of array that is url-encoded - BigDecimal samples = new BigDecimal("5.0"); // BigDecimal | Number of sample results to return - try { - ArraySample result = apiInstance.getArraySampleData(workspace, teamspace, array, samples); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#getArraySampleData"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String array = "array_example"; // String | name/uri of array that is url-encoded + BigDecimal samples = new BigDecimal("5.0"); // BigDecimal | Number of sample results to return + try { + ArraySample result = apiInstance.getArraySampleData(workspace, teamspace, array, samples); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#getArraySampleData"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1986,7 +1963,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -2000,7 +1977,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getArraySharingPolicies** > List<ArraySharing> getArraySharingPolicies(workspace, teamspace, array) @@ -2009,47 +1986,46 @@ public class Example { Get all sharing details of the array ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String array = "array_example"; // String | name/uri of array that is url-encoded - try { - List result = apiInstance.getArraySharingPolicies(workspace, teamspace, array); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#getArraySharingPolicies"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String array = "array_example"; // String | name/uri of array that is url-encoded + try { + List result = apiInstance.getArraySharingPolicies(workspace, teamspace, array); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#getArraySharingPolicies"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -2067,7 +2043,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -2082,7 +2058,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getArraysInNamespace** > List<ArrayInfo> getArraysInNamespace(workspace, teamspace, withMetadata) @@ -2091,47 +2067,46 @@ public class Example { get metadata on all arrays in a namespace ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - Boolean withMetadata = true; // Boolean | include the metadata of the arrays - try { - List result = apiInstance.getArraysInNamespace(workspace, teamspace, withMetadata); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#getArraysInNamespace"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + Boolean withMetadata = true; // Boolean | include the metadata of the arrays + try { + List result = apiInstance.getArraysInNamespace(workspace, teamspace, withMetadata); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#getArraysInNamespace"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -2149,7 +2124,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -2163,7 +2138,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getFragmentEndTimestamp** > Integer getFragmentEndTimestamp(workspace, teamspace, array, endTimestamp) @@ -2172,48 +2147,47 @@ public class Example { Get fragment end_timestamp on an array, will search for the closest end_timestamp to the timestamp asked ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String array = "array_example"; // String | name/uri of array that is url-encoded - Integer endTimestamp = 56; // Integer | Milliseconds since Unix epoch - try { - Integer result = apiInstance.getFragmentEndTimestamp(workspace, teamspace, array, endTimestamp); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#getFragmentEndTimestamp"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String array = "array_example"; // String | name/uri of array that is url-encoded + Integer endTimestamp = 56; // Integer | Milliseconds since Unix epoch + try { + Integer result = apiInstance.getFragmentEndTimestamp(workspace, teamspace, array, endTimestamp); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#getFragmentEndTimestamp"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -2232,7 +2206,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -2246,51 +2220,50 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getLastAccessedArrays** > List<LastAccessedArray> getLastAccessedArrays() ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - try { - List result = apiInstance.getLastAccessedArrays(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#getLastAccessedArrays"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + try { + List result = apiInstance.getLastAccessedArrays(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#getLastAccessedArrays"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -2303,7 +2276,7 @@ This endpoint does not need any parameter. ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -2317,7 +2290,7 @@ This endpoint does not need any parameter. | **502** | Bad Gateway | - | | **0** | error response | - | - + # **loadArraySchema** > LoadArraySchemaResponse loadArraySchema(workspace, teamspace, array, loadArraySchemaRequest) @@ -2326,48 +2299,47 @@ This endpoint does not need any parameter. request to get the array schema ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String array = "array_example"; // String | name/uri of array that is url-encoded - LoadArraySchemaRequest loadArraySchemaRequest = new LoadArraySchemaRequest(); // LoadArraySchemaRequest | Load Array Schema Request - try { - LoadArraySchemaResponse result = apiInstance.loadArraySchema(workspace, teamspace, array, loadArraySchemaRequest); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#loadArraySchema"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String array = "array_example"; // String | name/uri of array that is url-encoded + LoadArraySchemaRequest loadArraySchemaRequest = new LoadArraySchemaRequest(); // LoadArraySchemaRequest | Load Array Schema Request + try { + LoadArraySchemaResponse result = apiInstance.loadArraySchema(workspace, teamspace, array, loadArraySchemaRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#loadArraySchema"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -2386,7 +2358,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -2401,7 +2373,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **loadEnumerations** > LoadEnumerationsResponse loadEnumerations(workspace, teamspace, array, loadEnumerationsRequest) @@ -2410,48 +2382,47 @@ public class Example { request to get the enumerations of the arrays' attributes ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String array = "array_example"; // String | name/uri of array that is url-encoded - LoadEnumerationsRequest loadEnumerationsRequest = new LoadEnumerationsRequest(); // LoadEnumerationsRequest | Load Enumerations Request - try { - LoadEnumerationsResponse result = apiInstance.loadEnumerations(workspace, teamspace, array, loadEnumerationsRequest); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#loadEnumerations"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String array = "array_example"; // String | name/uri of array that is url-encoded + LoadEnumerationsRequest loadEnumerationsRequest = new LoadEnumerationsRequest(); // LoadEnumerationsRequest | Load Enumerations Request + try { + LoadEnumerationsResponse result = apiInstance.loadEnumerations(workspace, teamspace, array, loadEnumerationsRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#loadEnumerations"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -2470,7 +2441,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -2485,7 +2456,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **registerArray** > ArrayInfo registerArray(workspace, teamspace, array, arrayMetadata) @@ -2494,48 +2465,47 @@ public class Example { register an array at a specified URI registered to the given namespace ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String array = "array_example"; // String | name/uri of array that is url-encoded - ArrayInfoUpdate arrayMetadata = new ArrayInfoUpdate(); // ArrayInfoUpdate | metadata associated with array - try { - ArrayInfo result = apiInstance.registerArray(workspace, teamspace, array, arrayMetadata); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#registerArray"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String array = "array_example"; // String | asset id or path of array that is url-encoded + ArrayInfoUpdate arrayMetadata = new ArrayInfoUpdate(); // ArrayInfoUpdate | metadata associated with array + try { + ArrayInfo result = apiInstance.registerArray(workspace, teamspace, array, arrayMetadata); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#registerArray"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -2545,7 +2515,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **workspace** | **String**| the workspace containing the teamspace the array belongs to | | | **teamspace** | **String**| the teamspace the array belongs to | | -| **array** | **String**| name/uri of array that is url-encoded | | +| **array** | **String**| asset id or path of array that is url-encoded | | | **arrayMetadata** | [**ArrayInfoUpdate**](ArrayInfoUpdate.md)| metadata associated with array | | ### Return type @@ -2554,7 +2524,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -2568,7 +2538,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **shareArray** > shareArray(workspace, teamspace, array, arraySharing) @@ -2577,47 +2547,46 @@ public class Example { Share an array with a user ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String array = "array_example"; // String | name/uri of array that is url-encoded - ArraySharing arraySharing = new ArraySharing(); // ArraySharing | Namespace and list of permissions to share with. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the array will not be shared with the namespace at all. - try { - apiInstance.shareArray(workspace, teamspace, array, arraySharing); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#shareArray"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String array = "array_example"; // String | name/uri of array that is url-encoded + ArraySharing arraySharing = new ArraySharing(); // ArraySharing | Namespace and list of permissions to share with. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the array will not be shared with the namespace at all. + try { + apiInstance.shareArray(workspace, teamspace, array, arraySharing); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#shareArray"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -2636,7 +2605,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -2651,7 +2620,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **updateArrayMetadata** > updateArrayMetadata(workspace, teamspace, array, arrayMetadata) @@ -2660,47 +2629,46 @@ null (empty response body) update metadata on an array ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String array = "array_example"; // String | name/uri of array that is url-encoded - ArrayInfoUpdate arrayMetadata = new ArrayInfoUpdate(); // ArrayInfoUpdate | array metadata to update - try { - apiInstance.updateArrayMetadata(workspace, teamspace, array, arrayMetadata); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#updateArrayMetadata"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String array = "array_example"; // String | name/uri of array that is url-encoded + ArrayInfoUpdate arrayMetadata = new ArrayInfoUpdate(); // ArrayInfoUpdate | array metadata to update + try { + apiInstance.updateArrayMetadata(workspace, teamspace, array, arrayMetadata); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#updateArrayMetadata"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -2719,7 +2687,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -2733,7 +2701,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **updateArrayMetadataCapnp** > updateArrayMetadataCapnp(workspace, teamspace, array, arrayMetadataEntries) @@ -2742,47 +2710,46 @@ null (empty response body) update metadata on an array ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String array = "array_example"; // String | name/uri of array that is url-encoded - ArrayMetadata arrayMetadataEntries = new ArrayMetadata(); // ArrayMetadata | List of metadata entries - try { - apiInstance.updateArrayMetadataCapnp(workspace, teamspace, array, arrayMetadataEntries); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#updateArrayMetadataCapnp"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String array = "array_example"; // String | name/uri of array that is url-encoded + ArrayMetadata arrayMetadataEntries = new ArrayMetadata(); // ArrayMetadata | List of metadata entries + try { + apiInstance.updateArrayMetadataCapnp(workspace, teamspace, array, arrayMetadataEntries); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#updateArrayMetadataCapnp"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -2801,7 +2768,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -2815,7 +2782,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **vacuumArray** > vacuumArray(workspace, teamspace, array, vaccumRequest) @@ -2824,47 +2791,46 @@ null (empty response body) vacuum an array at a specified URI ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.ArrayApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayApi apiInstance = new ArrayApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String array = "array_example"; // String | name/uri of array that is url-encoded - ArrayVacuumRequest vaccumRequest = new ArrayVacuumRequest(); // ArrayVacuumRequest | Vaccum Request - try { - apiInstance.vacuumArray(workspace, teamspace, array, vaccumRequest); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayApi#vacuumArray"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + ArrayApi apiInstance = new ArrayApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String array = "array_example"; // String | name/uri of array that is url-encoded + ArrayVacuumRequest vaccumRequest = new ArrayVacuumRequest(); // ArrayVacuumRequest | Vaccum Request + try { + apiInstance.vacuumArray(workspace, teamspace, array, vaccumRequest); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayApi#vacuumArray"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -2883,7 +2849,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers diff --git a/docs/ArrayTasksApi.md b/docs/ArrayTasksApi.md index 5973b8e..c2d225f 100644 --- a/docs/ArrayTasksApi.md +++ b/docs/ArrayTasksApi.md @@ -7,53 +7,52 @@ All URIs are relative to */v1* | [**getArrayTasksSidebar**](ArrayTasksApi.md#getArrayTasksSidebar) | **GET** /tasks/sidebar | | - + # **getArrayTasksSidebar** > ArrayTaskBrowserSidebar getArrayTasksSidebar(start, end) ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.ArrayTasksApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - ArrayTasksApi apiInstance = new ArrayTasksApi(defaultClient); - Integer start = 56; // Integer | Fetch tasks created after this time, unix epoch in seconds, default 7 days ago - Integer end = 56; // Integer | Fetch tasks created before this time, unix epoch in seconds, default now - try { - ArrayTaskBrowserSidebar result = apiInstance.getArrayTasksSidebar(start, end); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling ArrayTasksApi#getArrayTasksSidebar"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + ArrayTasksApi apiInstance = new ArrayTasksApi(defaultClient); + Integer start = 56; // Integer | Fetch tasks created after this time, unix epoch in seconds, default 7 days ago + Integer end = 56; // Integer | Fetch tasks created before this time, unix epoch in seconds, default now + try { + ArrayTaskBrowserSidebar result = apiInstance.getArrayTasksSidebar(start, end); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ArrayTasksApi#getArrayTasksSidebar"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -70,7 +69,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers diff --git a/docs/AssetsApi.md b/docs/AssetsApi.md index 3179c76..d89b1b8 100644 --- a/docs/AssetsApi.md +++ b/docs/AssetsApi.md @@ -9,7 +9,7 @@ All URIs are relative to */v1* | [**listPublicAssets**](AssetsApi.md#listPublicAssets) | **GET** /public_assets | | - + # **changeAssetCredentials** > changeAssetCredentials(workspace, teamspace, changeCredentialsRequest) @@ -18,46 +18,45 @@ All URIs are relative to */v1* Changes the access credentials to the given assets ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.AssetsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - AssetsApi apiInstance = new AssetsApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - ChangeAssetCredentialsRequest changeCredentialsRequest = new ChangeAssetCredentialsRequest(); // ChangeAssetCredentialsRequest | aws access credentials to store for a namespace - try { - apiInstance.changeAssetCredentials(workspace, teamspace, changeCredentialsRequest); - } catch (ApiException e) { - System.err.println("Exception when calling AssetsApi#changeAssetCredentials"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + AssetsApi apiInstance = new AssetsApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + ChangeAssetCredentialsRequest changeCredentialsRequest = new ChangeAssetCredentialsRequest(); // ChangeAssetCredentialsRequest | aws access credentials to store for a namespace + try { + apiInstance.changeAssetCredentials(workspace, teamspace, changeCredentialsRequest); + } catch (ApiException e) { + System.err.println("Exception when calling AssetsApi#changeAssetCredentials"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -75,7 +74,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -89,7 +88,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **listAssets** > AssetListResponse listAssets(workspace, teamspace, assetType, ownershipLevel, depth, search, page, perPage, orderBy, expand) @@ -98,54 +97,53 @@ null (empty response body) List assets in a namespace ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.AssetsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - AssetsApi apiInstance = new AssetsApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String assetType = "assetType_example"; // String | asset_type to filter to - String ownershipLevel = "ownershipLevel_example"; // String | ownership_level to filter to (owned, shared) - String depth = "depth_example"; // String | depth of assets to be returned - String search = "search_example"; // String | search string - Integer page = 56; // Integer | pagination offset - Integer perPage = 56; // Integer | pagination limit - String orderBy = "orderBy_example"; // String | order by a specific property, defaults to `created_at desc` supported values are created_at, name, asset_type can also include the order type (asc or desc) separated by space i.e. `name asc` `name desc` etc. - String expand = "expand_example"; // String | expansion option for the AssetInfo object to be added to the response - try { - AssetListResponse result = apiInstance.listAssets(workspace, teamspace, assetType, ownershipLevel, depth, search, page, perPage, orderBy, expand); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling AssetsApi#listAssets"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + AssetsApi apiInstance = new AssetsApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String assetType = "assetType_example"; // String | asset_type to filter to + String ownershipLevel = "ownershipLevel_example"; // String | ownership_level to filter to (owned, shared) + String depth = "depth_example"; // String | depth of assets to be returned + String search = "search_example"; // String | search string + Integer page = 56; // Integer | pagination offset + Integer perPage = 56; // Integer | pagination limit + String orderBy = "orderBy_example"; // String | order by a specific property, defaults to `created_at desc` supported values are created_at, name, asset_type can also include the order type (asc or desc) separated by space i.e. `name asc` `name desc` etc. + String expand = "expand_example"; // String | expansion option for the AssetInfo object to be added to the response + try { + AssetListResponse result = apiInstance.listAssets(workspace, teamspace, assetType, ownershipLevel, depth, search, page, perPage, orderBy, expand); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AssetsApi#listAssets"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -170,7 +168,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -184,7 +182,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **listPublicAssets** > AssetListResponse listPublicAssets(assetType, depth, search, page, perPage, orderBy) @@ -193,50 +191,49 @@ public class Example { List public assets ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.AssetsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - AssetsApi apiInstance = new AssetsApi(defaultClient); - String assetType = "assetType_example"; // String | asset_type to filter to - String depth = "depth_example"; // String | depth of assets to be returned - String search = "search_example"; // String | search string - Integer page = 56; // Integer | pagination offset - Integer perPage = 56; // Integer | pagination limit - String orderBy = "orderBy_example"; // String | order by a specific property, defaults to `created_at desc` supported values are created_at, name, asset_type can also include the order type (asc or desc) separated by space i.e. `name asc` `name desc` etc. - try { - AssetListResponse result = apiInstance.listPublicAssets(assetType, depth, search, page, perPage, orderBy); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling AssetsApi#listPublicAssets"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + AssetsApi apiInstance = new AssetsApi(defaultClient); + String assetType = "assetType_example"; // String | asset_type to filter to + String depth = "depth_example"; // String | depth of assets to be returned + String search = "search_example"; // String | search string + Integer page = 56; // Integer | pagination offset + Integer perPage = 56; // Integer | pagination limit + String orderBy = "orderBy_example"; // String | order by a specific property, defaults to `created_at desc` supported values are created_at, name, asset_type can also include the order type (asc or desc) separated by space i.e. `name asc` `name desc` etc. + try { + AssetListResponse result = apiInstance.listPublicAssets(assetType, depth, search, page, perPage, orderBy); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling AssetsApi#listPublicAssets"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -257,7 +254,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers diff --git a/docs/FavoritesApi.md b/docs/FavoritesApi.md index 60b6a6b..20ee437 100644 --- a/docs/FavoritesApi.md +++ b/docs/FavoritesApi.md @@ -26,7 +26,7 @@ All URIs are relative to */v1* | [**listUDFFavoritesUUIDs**](FavoritesApi.md#listUDFFavoritesUUIDs) | **GET** /udfs/favorites/uuids | | - + # **addArrayFavorite** > addArrayFavorite(workspace, teamspace, name) @@ -35,46 +35,45 @@ All URIs are relative to */v1* Add a new array favorite ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String name = "name_example"; // String | The name of the array - try { - apiInstance.addArrayFavorite(workspace, teamspace, name); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#addArrayFavorite"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String name = "name_example"; // String | The name of the array + try { + apiInstance.addArrayFavorite(workspace, teamspace, name); + } catch (ApiException e) { + System.err.println("Exception when calling FavoritesApi#addArrayFavorite"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -92,7 +91,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -106,7 +105,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **addMLModelFavorite** > addMLModelFavorite(workspace, teamspace, name) @@ -115,46 +114,45 @@ null (empty response body) Add a new ML model favorite ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String name = "name_example"; // String | The name of the ML model - try { - apiInstance.addMLModelFavorite(workspace, teamspace, name); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#addMLModelFavorite"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String name = "name_example"; // String | The name of the ML model + try { + apiInstance.addMLModelFavorite(workspace, teamspace, name); + } catch (ApiException e) { + System.err.println("Exception when calling FavoritesApi#addMLModelFavorite"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -172,7 +170,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -186,7 +184,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **addNotebookFavorite** > addNotebookFavorite(workspace, teamspace, name) @@ -195,46 +193,45 @@ null (empty response body) Add a new notebook favorite ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String name = "name_example"; // String | The name of the notebook - try { - apiInstance.addNotebookFavorite(workspace, teamspace, name); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#addNotebookFavorite"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String name = "name_example"; // String | The name of the notebook + try { + apiInstance.addNotebookFavorite(workspace, teamspace, name); + } catch (ApiException e) { + System.err.println("Exception when calling FavoritesApi#addNotebookFavorite"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -252,7 +249,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -266,7 +263,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **addUDFFavorite** > addUDFFavorite(workspace, name) @@ -275,45 +272,44 @@ null (empty response body) Add a new UDF favorite ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String name = "name_example"; // String | The name of the UDF - try { - apiInstance.addUDFFavorite(workspace, name); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#addUDFFavorite"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String name = "name_example"; // String | The name of the UDF + try { + apiInstance.addUDFFavorite(workspace, name); + } catch (ApiException e) { + System.err.println("Exception when calling FavoritesApi#addUDFFavorite"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -330,7 +326,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -344,7 +340,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **deleteArrayFavorite** > deleteArrayFavorite(workspace, teamspace, name) @@ -353,46 +349,45 @@ null (empty response body) Delete specific array favorite ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String name = "name_example"; // String | The name of the array - try { - apiInstance.deleteArrayFavorite(workspace, teamspace, name); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#deleteArrayFavorite"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String name = "name_example"; // String | The name of the array + try { + apiInstance.deleteArrayFavorite(workspace, teamspace, name); + } catch (ApiException e) { + System.err.println("Exception when calling FavoritesApi#deleteArrayFavorite"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -410,7 +405,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -424,7 +419,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **deleteMLModelFavorite** > deleteMLModelFavorite(workspace, teamspace, name) @@ -433,46 +428,45 @@ null (empty response body) Delete specific ML model favorite ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String name = "name_example"; // String | The name of the ML model - try { - apiInstance.deleteMLModelFavorite(workspace, teamspace, name); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#deleteMLModelFavorite"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String name = "name_example"; // String | The name of the ML model + try { + apiInstance.deleteMLModelFavorite(workspace, teamspace, name); + } catch (ApiException e) { + System.err.println("Exception when calling FavoritesApi#deleteMLModelFavorite"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -490,7 +484,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -504,7 +498,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **deleteNotebookFavorite** > deleteNotebookFavorite(workspace, teamspace, name) @@ -513,46 +507,45 @@ null (empty response body) Delete specific notebook favorite ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String name = "name_example"; // String | The name of the notebook - try { - apiInstance.deleteNotebookFavorite(workspace, teamspace, name); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#deleteNotebookFavorite"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String name = "name_example"; // String | The name of the notebook + try { + apiInstance.deleteNotebookFavorite(workspace, teamspace, name); + } catch (ApiException e) { + System.err.println("Exception when calling FavoritesApi#deleteNotebookFavorite"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -570,7 +563,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -584,7 +577,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **deleteUDFFavorite** > deleteUDFFavorite(workspace, name) @@ -593,45 +586,44 @@ null (empty response body) Delete specific UDF favorite ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String name = "name_example"; // String | The name of the UDF - try { - apiInstance.deleteUDFFavorite(workspace, name); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#deleteUDFFavorite"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String name = "name_example"; // String | The name of the UDF + try { + apiInstance.deleteUDFFavorite(workspace, name); + } catch (ApiException e) { + System.err.println("Exception when calling FavoritesApi#deleteUDFFavorite"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -648,7 +640,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -662,7 +654,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getArrayFavorite** > ArrayFavorite getArrayFavorite(workspace, teamspace, name) @@ -671,47 +663,46 @@ null (empty response body) Fetch array favorite of a specific array ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String name = "name_example"; // String | The name of the array - try { - ArrayFavorite result = apiInstance.getArrayFavorite(workspace, teamspace, name); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#getArrayFavorite"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String name = "name_example"; // String | The name of the array + try { + ArrayFavorite result = apiInstance.getArrayFavorite(workspace, teamspace, name); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FavoritesApi#getArrayFavorite"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -729,7 +720,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -743,7 +734,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getMLModelFavorite** > MLModelFavorite getMLModelFavorite(workspace, teamspace, name) @@ -752,47 +743,46 @@ public class Example { Fetch ML model favorite of a specific ML model ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String name = "name_example"; // String | The name of the ML model - try { - MLModelFavorite result = apiInstance.getMLModelFavorite(workspace, teamspace, name); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#getMLModelFavorite"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String name = "name_example"; // String | The name of the ML model + try { + MLModelFavorite result = apiInstance.getMLModelFavorite(workspace, teamspace, name); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FavoritesApi#getMLModelFavorite"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -810,7 +800,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -824,7 +814,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getNotebookFavorite** > NotebookFavorite getNotebookFavorite(workspace, teamspace, name) @@ -833,47 +823,46 @@ public class Example { Fetch notebook favorite of a specific notebook ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String name = "name_example"; // String | The name of the notebook - try { - NotebookFavorite result = apiInstance.getNotebookFavorite(workspace, teamspace, name); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#getNotebookFavorite"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String name = "name_example"; // String | The name of the notebook + try { + NotebookFavorite result = apiInstance.getNotebookFavorite(workspace, teamspace, name); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FavoritesApi#getNotebookFavorite"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -891,7 +880,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -905,7 +894,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getUDFFavorite** > UDFFavorite getUDFFavorite(workspace, name) @@ -914,46 +903,45 @@ public class Example { Fetch UDF favorite of a specific UDF ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String name = "name_example"; // String | The name of the UDF - try { - UDFFavorite result = apiInstance.getUDFFavorite(workspace, name); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#getUDFFavorite"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String name = "name_example"; // String | The name of the UDF + try { + UDFFavorite result = apiInstance.getUDFFavorite(workspace, name); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FavoritesApi#getUDFFavorite"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -970,7 +958,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -984,7 +972,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **listArrayFavorites** > ArrayFavoritesData listArrayFavorites(page, perPage) @@ -993,46 +981,45 @@ public class Example { Fetch a page of array favorites of connected user ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - Integer page = 56; // Integer | pagination offset - Integer perPage = 56; // Integer | pagination limit - try { - ArrayFavoritesData result = apiInstance.listArrayFavorites(page, perPage); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#listArrayFavorites"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + Integer page = 56; // Integer | pagination offset + Integer perPage = 56; // Integer | pagination limit + try { + ArrayFavoritesData result = apiInstance.listArrayFavorites(page, perPage); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FavoritesApi#listArrayFavorites"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1049,7 +1036,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1063,7 +1050,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **listArrayFavoritesUUIDs** > List<ArrayFavorite> listArrayFavoritesUUIDs() @@ -1072,44 +1059,43 @@ public class Example { Fetch all favorite array uuids of connected user ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - try { - List result = apiInstance.listArrayFavoritesUUIDs(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#listArrayFavoritesUUIDs"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + try { + List result = apiInstance.listArrayFavoritesUUIDs(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FavoritesApi#listArrayFavoritesUUIDs"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1122,7 +1108,7 @@ This endpoint does not need any parameter. ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1136,7 +1122,7 @@ This endpoint does not need any parameter. | **502** | Bad Gateway | - | | **0** | error response | - | - + # **listMLModelFavorites** > MLModelFavoritesData listMLModelFavorites(page, perPage) @@ -1145,46 +1131,45 @@ This endpoint does not need any parameter. Fetch a page of ML models favorites of connected user ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - Integer page = 56; // Integer | pagination offset - Integer perPage = 56; // Integer | pagination limit - try { - MLModelFavoritesData result = apiInstance.listMLModelFavorites(page, perPage); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#listMLModelFavorites"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + Integer page = 56; // Integer | pagination offset + Integer perPage = 56; // Integer | pagination limit + try { + MLModelFavoritesData result = apiInstance.listMLModelFavorites(page, perPage); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FavoritesApi#listMLModelFavorites"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1201,7 +1186,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1215,7 +1200,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **listMLModelFavoritesUUIDs** > List<MLModelFavorite> listMLModelFavoritesUUIDs() @@ -1224,44 +1209,43 @@ public class Example { Fetch all favorite ML models uuids of connected user ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - try { - List result = apiInstance.listMLModelFavoritesUUIDs(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#listMLModelFavoritesUUIDs"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + try { + List result = apiInstance.listMLModelFavoritesUUIDs(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FavoritesApi#listMLModelFavoritesUUIDs"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1274,7 +1258,7 @@ This endpoint does not need any parameter. ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1288,7 +1272,7 @@ This endpoint does not need any parameter. | **502** | Bad Gateway | - | | **0** | error response | - | - + # **listNotebookFavorites** > NotebookFavoritesData listNotebookFavorites(isDashboard, page, perPage) @@ -1297,47 +1281,46 @@ This endpoint does not need any parameter. Fetch a page of notebook favorites of connected user ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - Boolean isDashboard = true; // Boolean | return only dashboards - Integer page = 56; // Integer | pagination offset - Integer perPage = 56; // Integer | pagination limit - try { - NotebookFavoritesData result = apiInstance.listNotebookFavorites(isDashboard, page, perPage); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#listNotebookFavorites"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + Boolean isDashboard = true; // Boolean | return only dashboards + Integer page = 56; // Integer | pagination offset + Integer perPage = 56; // Integer | pagination limit + try { + NotebookFavoritesData result = apiInstance.listNotebookFavorites(isDashboard, page, perPage); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FavoritesApi#listNotebookFavorites"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1355,7 +1338,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1369,7 +1352,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **listNotebookFavoritesUUIDs** > List<NotebookFavorite> listNotebookFavoritesUUIDs() @@ -1378,44 +1361,43 @@ public class Example { Fetch all favorite notebook uuids of connected user ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - try { - List result = apiInstance.listNotebookFavoritesUUIDs(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#listNotebookFavoritesUUIDs"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + try { + List result = apiInstance.listNotebookFavoritesUUIDs(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FavoritesApi#listNotebookFavoritesUUIDs"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1428,7 +1410,7 @@ This endpoint does not need any parameter. ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1442,7 +1424,7 @@ This endpoint does not need any parameter. | **502** | Bad Gateway | - | | **0** | error response | - | - + # **listUDFFavorites** > UDFFavoritesData listUDFFavorites(page, perPage) @@ -1451,46 +1433,45 @@ This endpoint does not need any parameter. Fetch a page of UDF favorites of connected user ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - Integer page = 56; // Integer | pagination offset - Integer perPage = 56; // Integer | pagination limit - try { - UDFFavoritesData result = apiInstance.listUDFFavorites(page, perPage); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#listUDFFavorites"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + Integer page = 56; // Integer | pagination offset + Integer perPage = 56; // Integer | pagination limit + try { + UDFFavoritesData result = apiInstance.listUDFFavorites(page, perPage); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FavoritesApi#listUDFFavorites"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1507,7 +1488,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1521,7 +1502,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **listUDFFavoritesUUIDs** > List<UDFFavorite> listUDFFavoritesUUIDs() @@ -1530,44 +1511,43 @@ public class Example { Fetch all favorite UDF uuids of connected user ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.FavoritesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - FavoritesApi apiInstance = new FavoritesApi(defaultClient); - try { - List result = apiInstance.listUDFFavoritesUUIDs(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FavoritesApi#listUDFFavoritesUUIDs"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + FavoritesApi apiInstance = new FavoritesApi(defaultClient); + try { + List result = apiInstance.listUDFFavoritesUUIDs(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FavoritesApi#listUDFFavoritesUUIDs"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1580,7 +1560,7 @@ This endpoint does not need any parameter. ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers diff --git a/docs/FilesApi.md b/docs/FilesApi.md index 966daaa..1809bdb 100644 --- a/docs/FilesApi.md +++ b/docs/FilesApi.md @@ -9,7 +9,7 @@ All URIs are relative to */v1* | [**handleUploadFile**](FilesApi.md#handleUploadFile) | **POST** /files/{workspace}/{teamspace}/upload | | - + # **handleCreateFile** > FileCreated handleCreateFile(workspace, teamspace, fileCreate, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME) @@ -18,48 +18,47 @@ All URIs are relative to */v1* Create a tiledb file at the specified location ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.FilesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - FilesApi apiInstance = new FilesApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - FileCreate fileCreate = new FileCreate(); // FileCreate | Input/Output information to create a new TileDB file - String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME = "X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME_example"; // String | Optional registered access credentials to use for creation - try { - FileCreated result = apiInstance.handleCreateFile(workspace, teamspace, fileCreate, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FilesApi#handleCreateFile"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + FilesApi apiInstance = new FilesApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + FileCreate fileCreate = new FileCreate(); // FileCreate | Input/Output information to create a new TileDB file + String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME = "X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME_example"; // String | Optional registered access credentials to use for creation + try { + FileCreated result = apiInstance.handleCreateFile(workspace, teamspace, fileCreate, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FilesApi#handleCreateFile"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -78,7 +77,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -92,7 +91,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **handleExportFile** > FileExported handleExportFile(workspace, teamspace, _file, fileExport) @@ -101,48 +100,47 @@ public class Example { Export a TileDB File back to its original file format ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.FilesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - FilesApi apiInstance = new FilesApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String _file = "_file_example"; // String | The file identifier - FileExport fileExport = new FileExport(); // FileExport | Export configuration information - try { - FileExported result = apiInstance.handleExportFile(workspace, teamspace, _file, fileExport); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FilesApi#handleExportFile"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + FilesApi apiInstance = new FilesApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String _file = "_file_example"; // String | The file identifier + FileExport fileExport = new FileExport(); // FileExport | Export configuration information + try { + FileExported result = apiInstance.handleExportFile(workspace, teamspace, _file, fileExport); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FilesApi#handleExportFile"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -161,7 +159,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -175,7 +173,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **handleUploadFile** > FileUploaded handleUploadFile(workspace, teamspace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name) @@ -184,50 +182,49 @@ public class Example { Upload a tiledb file at the specified location ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.FilesApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - FilesApi apiInstance = new FilesApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - File inputFile = new File("/path/to/file"); // File | the file to upload - String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME = "X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME_example"; // String | Optional registered access credentials to use for creation - String outputUri = "outputUri_example"; // String | output location of the TileDB File - String name = "name_example"; // String | name to set for registered file - try { - FileUploaded result = apiInstance.handleUploadFile(workspace, teamspace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling FilesApi#handleUploadFile"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + FilesApi apiInstance = new FilesApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + File inputFile = new File("/path/to/file"); // File | the file to upload + String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME = "X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME_example"; // String | Optional registered access credentials to use for creation + String outputUri = "outputUri_example"; // String | output location of the TileDB File + String name = "name_example"; // String | name to set for registered file + try { + FileUploaded result = apiInstance.handleUploadFile(workspace, teamspace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FilesApi#handleUploadFile"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -248,7 +245,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers diff --git a/docs/GroupsApi.md b/docs/GroupsApi.md index 2c78fdc..8a31860 100644 --- a/docs/GroupsApi.md +++ b/docs/GroupsApi.md @@ -23,7 +23,7 @@ All URIs are relative to */v1* | [**updateGroup**](GroupsApi.md#updateGroup) | **PATCH** /groups/{workspace}/{teamspace}/{group_name} | | - + # **changeGroupContents** > changeGroupContents(workspace, teamspace, groupName, groupChanges) @@ -32,47 +32,46 @@ All URIs are relative to */v1* Changes the contents of the group by adding/removing members. ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.GroupsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - GroupsApi apiInstance = new GroupsApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String groupName = "groupName_example"; // String | The unique name or id of the group - GroupChanges groupChanges = new GroupChanges(); // GroupChanges | - try { - apiInstance.changeGroupContents(workspace, teamspace, groupName, groupChanges); - } catch (ApiException e) { - System.err.println("Exception when calling GroupsApi#changeGroupContents"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + GroupsApi apiInstance = new GroupsApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String groupName = "groupName_example"; // String | The unique name or id of the group + GroupChanges groupChanges = new GroupChanges(); // GroupChanges | + try { + apiInstance.changeGroupContents(workspace, teamspace, groupName, groupChanges); + } catch (ApiException e) { + System.err.println("Exception when calling GroupsApi#changeGroupContents"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -91,7 +90,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -105,7 +104,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **createGroup** > createGroup(workspace, teamspace, groupCreate) @@ -114,46 +113,45 @@ null (empty response body) Creates a new group in the namespace. ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.GroupsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - GroupsApi apiInstance = new GroupsApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - GroupCreate groupCreate = new GroupCreate(); // GroupCreate | - try { - apiInstance.createGroup(workspace, teamspace, groupCreate); - } catch (ApiException e) { - System.err.println("Exception when calling GroupsApi#createGroup"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + GroupsApi apiInstance = new GroupsApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + GroupCreate groupCreate = new GroupCreate(); // GroupCreate | + try { + apiInstance.createGroup(workspace, teamspace, groupCreate); + } catch (ApiException e) { + System.err.println("Exception when calling GroupsApi#createGroup"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -171,7 +169,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -185,7 +183,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **deleteGroup** > deleteGroup(workspace, teamspace, groupName) @@ -194,46 +192,45 @@ null (empty response body) Deletes the group. The assets are not deleted nor are not relocated to any other group ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.GroupsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - GroupsApi apiInstance = new GroupsApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String groupName = "groupName_example"; // String | The unique name or id of the group - try { - apiInstance.deleteGroup(workspace, teamspace, groupName); - } catch (ApiException e) { - System.err.println("Exception when calling GroupsApi#deleteGroup"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + GroupsApi apiInstance = new GroupsApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String groupName = "groupName_example"; // String | The unique name or id of the group + try { + apiInstance.deleteGroup(workspace, teamspace, groupName); + } catch (ApiException e) { + System.err.println("Exception when calling GroupsApi#deleteGroup"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -251,7 +248,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -265,7 +262,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getGroup** > GroupInfo getGroup(workspace, teamspace, groupName) @@ -274,47 +271,46 @@ null (empty response body) Returns the the group ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.GroupsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - GroupsApi apiInstance = new GroupsApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String groupName = "groupName_example"; // String | The unique name or id of the group - try { - GroupInfo result = apiInstance.getGroup(workspace, teamspace, groupName); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling GroupsApi#getGroup"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + GroupsApi apiInstance = new GroupsApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String groupName = "groupName_example"; // String | The unique name or id of the group + try { + GroupInfo result = apiInstance.getGroup(workspace, teamspace, groupName); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling GroupsApi#getGroup"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -332,7 +328,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -346,7 +342,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getGroupActivity** > GroupContentActivityResponse getGroupActivity(workspace, teamspace, groupName, page, perPage) @@ -355,49 +351,48 @@ public class Example { Returns the activity of group content ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.GroupsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - GroupsApi apiInstance = new GroupsApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String groupName = "groupName_example"; // String | The unique name or id of the group - Integer page = 56; // Integer | pagination offset - Integer perPage = 56; // Integer | pagination limit - try { - GroupContentActivityResponse result = apiInstance.getGroupActivity(workspace, teamspace, groupName, page, perPage); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling GroupsApi#getGroupActivity"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + GroupsApi apiInstance = new GroupsApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String groupName = "groupName_example"; // String | The unique name or id of the group + Integer page = 56; // Integer | pagination offset + Integer perPage = 56; // Integer | pagination limit + try { + GroupContentActivityResponse result = apiInstance.getGroupActivity(workspace, teamspace, groupName, page, perPage); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling GroupsApi#getGroupActivity"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -417,7 +412,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -431,7 +426,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getGroupContents** > GroupContents getGroupContents(workspace, teamspace, groupName, page, perPage, namespace, search, orderby, tag, excludeTag, memberType, excludeMemberType) @@ -440,56 +435,55 @@ public class Example { Returns the contents of the group ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.GroupsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - GroupsApi apiInstance = new GroupsApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String groupName = "groupName_example"; // String | The unique name or id of the group - Integer page = 56; // Integer | pagination offset for assets - Integer perPage = 56; // Integer | pagination limit for assets - String namespace = "namespace_example"; // String | namespace to search for - String search = "search_example"; // String | search string that will look at name, namespace or description fields - String orderby = "orderby_example"; // String | sort by which field valid values include last_accessed, size, name - List tag = Arrays.asList(); // List | tag to search for, more than one can be included - List excludeTag = Arrays.asList(); // List | tags to exclude matching array in results, more than one can be included - List memberType = Arrays.asList(); // List | member type to search for, more than one can be included - List excludeMemberType = Arrays.asList(); // List | member type to exclude matching groups in results, more than one can be included - try { - GroupContents result = apiInstance.getGroupContents(workspace, teamspace, groupName, page, perPage, namespace, search, orderby, tag, excludeTag, memberType, excludeMemberType); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling GroupsApi#getGroupContents"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + GroupsApi apiInstance = new GroupsApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String groupName = "groupName_example"; // String | The unique name or id of the group + Integer page = 56; // Integer | pagination offset for assets + Integer perPage = 56; // Integer | pagination limit for assets + String namespace = "namespace_example"; // String | namespace to search for + String search = "search_example"; // String | search string that will look at name, namespace or description fields + String orderby = "orderby_example"; // String | sort by which field valid values include last_accessed, size, name + List tag = Arrays.asList(); // List | tag to search for, more than one can be included + List excludeTag = Arrays.asList(); // List | tags to exclude matching array in results, more than one can be included + List memberType = Arrays.asList(); // List | member type to search for, more than one can be included + List excludeMemberType = Arrays.asList(); // List | member type to exclude matching groups in results, more than one can be included + try { + GroupContents result = apiInstance.getGroupContents(workspace, teamspace, groupName, page, perPage, namespace, search, orderby, tag, excludeTag, memberType, excludeMemberType); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling GroupsApi#getGroupContents"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -516,7 +510,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -530,7 +524,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getGroupSharingPolicies** > List<GroupSharing> getGroupSharingPolicies(workspace, teamspace, groupName) @@ -539,47 +533,46 @@ public class Example { Get all sharing details of the group ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.GroupsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - GroupsApi apiInstance = new GroupsApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String groupName = "groupName_example"; // String | The unique name or id of the group - try { - List result = apiInstance.getGroupSharingPolicies(workspace, teamspace, groupName); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling GroupsApi#getGroupSharingPolicies"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + GroupsApi apiInstance = new GroupsApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String groupName = "groupName_example"; // String | The unique name or id of the group + try { + List result = apiInstance.getGroupSharingPolicies(workspace, teamspace, groupName); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling GroupsApi#getGroupSharingPolicies"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -597,7 +590,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -612,7 +605,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **groupsBrowserOwnedFiltersGet** > GroupBrowserFilterData groupsBrowserOwnedFiltersGet(namespace) @@ -621,45 +614,44 @@ public class Example { Fetch data to initialize filters for the groups browser ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.GroupsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - GroupsApi apiInstance = new GroupsApi(defaultClient); - String namespace = "namespace_example"; // String | namespace - try { - GroupBrowserFilterData result = apiInstance.groupsBrowserOwnedFiltersGet(namespace); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling GroupsApi#groupsBrowserOwnedFiltersGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + GroupsApi apiInstance = new GroupsApi(defaultClient); + String namespace = "namespace_example"; // String | namespace + try { + GroupBrowserFilterData result = apiInstance.groupsBrowserOwnedFiltersGet(namespace); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling GroupsApi#groupsBrowserOwnedFiltersGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -675,7 +667,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -689,7 +681,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **groupsBrowserPublicFiltersGet** > GroupBrowserFilterData groupsBrowserPublicFiltersGet() @@ -698,44 +690,43 @@ public class Example { Fetch data to initialize filters for the groups browser ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.GroupsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - GroupsApi apiInstance = new GroupsApi(defaultClient); - try { - GroupBrowserFilterData result = apiInstance.groupsBrowserPublicFiltersGet(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling GroupsApi#groupsBrowserPublicFiltersGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + GroupsApi apiInstance = new GroupsApi(defaultClient); + try { + GroupBrowserFilterData result = apiInstance.groupsBrowserPublicFiltersGet(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling GroupsApi#groupsBrowserPublicFiltersGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -748,7 +739,7 @@ This endpoint does not need any parameter. ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -762,7 +753,7 @@ This endpoint does not need any parameter. | **502** | Bad Gateway | - | | **0** | error response | - | - + # **groupsBrowserSharedFiltersGet** > GroupBrowserFilterData groupsBrowserSharedFiltersGet(namespace) @@ -771,45 +762,44 @@ This endpoint does not need any parameter. Fetch data to initialize filters for the groups browser ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.GroupsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - GroupsApi apiInstance = new GroupsApi(defaultClient); - String namespace = "namespace_example"; // String | namespace - try { - GroupBrowserFilterData result = apiInstance.groupsBrowserSharedFiltersGet(namespace); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling GroupsApi#groupsBrowserSharedFiltersGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + GroupsApi apiInstance = new GroupsApi(defaultClient); + String namespace = "namespace_example"; // String | namespace + try { + GroupBrowserFilterData result = apiInstance.groupsBrowserSharedFiltersGet(namespace); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling GroupsApi#groupsBrowserSharedFiltersGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -825,7 +815,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -839,7 +829,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **groupsWorkspaceTeamspaceGroupNameContentsFiltersGet** > GroupContentsFilterData groupsWorkspaceTeamspaceGroupNameContentsFiltersGet(workspace, teamspace, groupName) @@ -848,47 +838,46 @@ public class Example { Fetch data to initialize filters for the group contents ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.GroupsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - GroupsApi apiInstance = new GroupsApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String groupName = "groupName_example"; // String | The unique name or id of the group - try { - GroupContentsFilterData result = apiInstance.groupsWorkspaceTeamspaceGroupNameContentsFiltersGet(workspace, teamspace, groupName); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling GroupsApi#groupsWorkspaceTeamspaceGroupNameContentsFiltersGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + GroupsApi apiInstance = new GroupsApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String groupName = "groupName_example"; // String | The unique name or id of the group + try { + GroupContentsFilterData result = apiInstance.groupsWorkspaceTeamspaceGroupNameContentsFiltersGet(workspace, teamspace, groupName); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling GroupsApi#groupsWorkspaceTeamspaceGroupNameContentsFiltersGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -906,7 +895,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -920,7 +909,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **listOwnedGroups** > GroupBrowserData listOwnedGroups(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, withMetadata) @@ -929,56 +918,55 @@ public class Example { Returns one page of owned groups. ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.GroupsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - GroupsApi apiInstance = new GroupsApi(defaultClient); - Integer page = 56; // Integer | pagination offset - Integer perPage = 56; // Integer | pagination limit - String groupType = "groupType_example"; // String | filter by a specific group type - String search = "search_example"; // String | search string that will look at name, namespace or description fields - String namespace = "namespace_example"; // String | namespace - String orderby = "orderby_example"; // String | sort by which field valid values include last_accessed, size, name - String permissions = "permissions_example"; // String | permissions valid values include read, read_write, write, admin - List tag = Arrays.asList(); // List | tag to search for, more than one can be included - List excludeTag = Arrays.asList(); // List | tags to exclude matching array in results, more than one can be included - Boolean flat = true; // Boolean | if true, ignores the nesting of groups and searches all of them - String parent = "parent_example"; // String | search only the children of the groups with this uuid - Boolean withMetadata = true; // Boolean | include the metadata of the groups - try { - GroupBrowserData result = apiInstance.listOwnedGroups(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, withMetadata); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling GroupsApi#listOwnedGroups"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + GroupsApi apiInstance = new GroupsApi(defaultClient); + Integer page = 56; // Integer | pagination offset + Integer perPage = 56; // Integer | pagination limit + String groupType = "groupType_example"; // String | filter by a specific group type + String search = "search_example"; // String | search string that will look at name, namespace or description fields + String namespace = "namespace_example"; // String | namespace + String orderby = "orderby_example"; // String | sort by which field valid values include last_accessed, size, name + String permissions = "permissions_example"; // String | permissions valid values include read, read_write, write, admin + List tag = Arrays.asList(); // List | tag to search for, more than one can be included + List excludeTag = Arrays.asList(); // List | tags to exclude matching array in results, more than one can be included + Boolean flat = true; // Boolean | if true, ignores the nesting of groups and searches all of them + String parent = "parent_example"; // String | search only the children of the groups with this uuid + Boolean withMetadata = true; // Boolean | include the metadata of the groups + try { + GroupBrowserData result = apiInstance.listOwnedGroups(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, withMetadata); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling GroupsApi#listOwnedGroups"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1005,7 +993,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1019,7 +1007,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **listPublicGroups** > GroupBrowserData listPublicGroups(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, withMetadata) @@ -1028,56 +1016,55 @@ public class Example { Returns one page of public groups. ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.GroupsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - GroupsApi apiInstance = new GroupsApi(defaultClient); - Integer page = 56; // Integer | pagination offset - Integer perPage = 56; // Integer | pagination limit - String groupType = "groupType_example"; // String | filter by a specific group type - String search = "search_example"; // String | search string that will look at name, namespace or description fields - String namespace = "namespace_example"; // String | namespace - String orderby = "orderby_example"; // String | sort by which field valid values include last_accessed, size, name - String permissions = "permissions_example"; // String | permissions valid values include read, read_write, write, admin - List tag = Arrays.asList(); // List | tag to search for, more than one can be included - List excludeTag = Arrays.asList(); // List | tags to exclude matching array in results, more than one can be included - Boolean flat = true; // Boolean | if true, ignores the nesting of groups and searches all of them - String parent = "parent_example"; // String | search only the children of the groups with this uuid - Boolean withMetadata = true; // Boolean | include the metadata of the groups - try { - GroupBrowserData result = apiInstance.listPublicGroups(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, withMetadata); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling GroupsApi#listPublicGroups"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + GroupsApi apiInstance = new GroupsApi(defaultClient); + Integer page = 56; // Integer | pagination offset + Integer perPage = 56; // Integer | pagination limit + String groupType = "groupType_example"; // String | filter by a specific group type + String search = "search_example"; // String | search string that will look at name, namespace or description fields + String namespace = "namespace_example"; // String | namespace + String orderby = "orderby_example"; // String | sort by which field valid values include last_accessed, size, name + String permissions = "permissions_example"; // String | permissions valid values include read, read_write, write, admin + List tag = Arrays.asList(); // List | tag to search for, more than one can be included + List excludeTag = Arrays.asList(); // List | tags to exclude matching array in results, more than one can be included + Boolean flat = true; // Boolean | if true, ignores the nesting of groups and searches all of them + String parent = "parent_example"; // String | search only the children of the groups with this uuid + Boolean withMetadata = true; // Boolean | include the metadata of the groups + try { + GroupBrowserData result = apiInstance.listPublicGroups(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, withMetadata); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling GroupsApi#listPublicGroups"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1104,7 +1091,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1118,7 +1105,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **listSharedGroups** > GroupBrowserData listSharedGroups(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, sharedTo, withMetadata) @@ -1127,57 +1114,56 @@ public class Example { Returns one page of shared groups. ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.GroupsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - GroupsApi apiInstance = new GroupsApi(defaultClient); - Integer page = 56; // Integer | pagination offset - Integer perPage = 56; // Integer | pagination limit - String groupType = "groupType_example"; // String | filter by a specific group type - String search = "search_example"; // String | search string that will look at name, namespace or description fields - String namespace = "namespace_example"; // String | namespace - String orderby = "orderby_example"; // String | sort by which field valid values include last_accessed, size, name - String permissions = "permissions_example"; // String | permissions valid values include read, read_write, write, admin - List tag = Arrays.asList(); // List | tag to search for, more than one can be included - List excludeTag = Arrays.asList(); // List | tags to exclude matching array in results, more than one can be included - Boolean flat = true; // Boolean | if true, ignores the nesting of groups and searches all of them - String parent = "parent_example"; // String | search only the children of the groups with this uuid - List sharedTo = Arrays.asList(); // List | namespaces to filter results of where there groups were shared to - Boolean withMetadata = true; // Boolean | include the metadata of the groups - try { - GroupBrowserData result = apiInstance.listSharedGroups(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, sharedTo, withMetadata); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling GroupsApi#listSharedGroups"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + GroupsApi apiInstance = new GroupsApi(defaultClient); + Integer page = 56; // Integer | pagination offset + Integer perPage = 56; // Integer | pagination limit + String groupType = "groupType_example"; // String | filter by a specific group type + String search = "search_example"; // String | search string that will look at name, namespace or description fields + String namespace = "namespace_example"; // String | namespace + String orderby = "orderby_example"; // String | sort by which field valid values include last_accessed, size, name + String permissions = "permissions_example"; // String | permissions valid values include read, read_write, write, admin + List tag = Arrays.asList(); // List | tag to search for, more than one can be included + List excludeTag = Arrays.asList(); // List | tags to exclude matching array in results, more than one can be included + Boolean flat = true; // Boolean | if true, ignores the nesting of groups and searches all of them + String parent = "parent_example"; // String | search only the children of the groups with this uuid + List sharedTo = Arrays.asList(); // List | namespaces to filter results of where there groups were shared to + Boolean withMetadata = true; // Boolean | include the metadata of the groups + try { + GroupBrowserData result = apiInstance.listSharedGroups(page, perPage, groupType, search, namespace, orderby, permissions, tag, excludeTag, flat, parent, sharedTo, withMetadata); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling GroupsApi#listSharedGroups"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1205,7 +1191,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1219,7 +1205,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **registerGroup** > registerGroup(workspace, teamspace, array, groupRegister) @@ -1228,47 +1214,46 @@ public class Example { Registers an existing group in the namespace. ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.GroupsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - GroupsApi apiInstance = new GroupsApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String array = "array_example"; // String | The unique name or id of the group - GroupRegister groupRegister = new GroupRegister(); // GroupRegister | - try { - apiInstance.registerGroup(workspace, teamspace, array, groupRegister); - } catch (ApiException e) { - System.err.println("Exception when calling GroupsApi#registerGroup"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + GroupsApi apiInstance = new GroupsApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String array = "array_example"; // String | The unique name or id of the group + GroupRegister groupRegister = new GroupRegister(); // GroupRegister | + try { + apiInstance.registerGroup(workspace, teamspace, array, groupRegister); + } catch (ApiException e) { + System.err.println("Exception when calling GroupsApi#registerGroup"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1287,7 +1272,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1301,7 +1286,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **shareGroup** > shareGroup(workspace, teamspace, groupName, groupSharingRequest) @@ -1310,47 +1295,46 @@ null (empty response body) Share a group with a namespace ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.GroupsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - GroupsApi apiInstance = new GroupsApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String groupName = "groupName_example"; // String | The unique name or id of the group - GroupSharingRequest groupSharingRequest = new GroupSharingRequest(); // GroupSharingRequest | Namespace and list of permissions to share with. Sharing is recursive, it is applied to all reachable subgroups and arrays of the group. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the group will not be shared with the namespace at all. - try { - apiInstance.shareGroup(workspace, teamspace, groupName, groupSharingRequest); - } catch (ApiException e) { - System.err.println("Exception when calling GroupsApi#shareGroup"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + GroupsApi apiInstance = new GroupsApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String groupName = "groupName_example"; // String | The unique name or id of the group + GroupSharingRequest groupSharingRequest = new GroupSharingRequest(); // GroupSharingRequest | Namespace and list of permissions to share with. Sharing is recursive, it is applied to all reachable subgroups and arrays of the group. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the group will not be shared with the namespace at all. + try { + apiInstance.shareGroup(workspace, teamspace, groupName, groupSharingRequest); + } catch (ApiException e) { + System.err.println("Exception when calling GroupsApi#shareGroup"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1369,7 +1353,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1384,7 +1368,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **updateGroup** > updateGroup(workspace, teamspace, groupName, groupUpdate) @@ -1393,47 +1377,46 @@ null (empty response body) Changes attributes of the group ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.GroupsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - GroupsApi apiInstance = new GroupsApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String groupName = "groupName_example"; // String | The unique name or id of the group - GroupUpdate groupUpdate = new GroupUpdate(); // GroupUpdate | - try { - apiInstance.updateGroup(workspace, teamspace, groupName, groupUpdate); - } catch (ApiException e) { - System.err.println("Exception when calling GroupsApi#updateGroup"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + GroupsApi apiInstance = new GroupsApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String groupName = "groupName_example"; // String | The unique name or id of the group + GroupUpdate groupUpdate = new GroupUpdate(); // GroupUpdate | + try { + apiInstance.updateGroup(workspace, teamspace, groupName, groupUpdate); + } catch (ApiException e) { + System.err.println("Exception when calling GroupsApi#updateGroup"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1452,7 +1435,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers diff --git a/docs/InvitationApi.md b/docs/InvitationApi.md index 9beb396..ad5ec0e 100644 --- a/docs/InvitationApi.md +++ b/docs/InvitationApi.md @@ -16,7 +16,7 @@ All URIs are relative to */v1* | [**sharePayment**](InvitationApi.md#sharePayment) | **POST** /invitations/share_payment/{workspace}/{teamspace} | | - + # **acceptInvitation** > acceptInvitation(invitation) @@ -25,44 +25,43 @@ All URIs are relative to */v1* Accepts invitation ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.InvitationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - InvitationApi apiInstance = new InvitationApi(defaultClient); - String invitation = "invitation_example"; // String | the ID of invitation about to be accepted - try { - apiInstance.acceptInvitation(invitation); - } catch (ApiException e) { - System.err.println("Exception when calling InvitationApi#acceptInvitation"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + InvitationApi apiInstance = new InvitationApi(defaultClient); + String invitation = "invitation_example"; // String | the ID of invitation about to be accepted + try { + apiInstance.acceptInvitation(invitation); + } catch (ApiException e) { + System.err.println("Exception when calling InvitationApi#acceptInvitation"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -78,7 +77,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -93,7 +92,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **cancelJoinOrganization** > cancelJoinOrganization(invitation, organization) @@ -102,45 +101,44 @@ null (empty response body) Cancels join organization invitation ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.InvitationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - InvitationApi apiInstance = new InvitationApi(defaultClient); - String invitation = "invitation_example"; // String | the ID of invitation about to be cancelled - String organization = "organization_example"; // String | name or UUID of organization - try { - apiInstance.cancelJoinOrganization(invitation, organization); - } catch (ApiException e) { - System.err.println("Exception when calling InvitationApi#cancelJoinOrganization"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + InvitationApi apiInstance = new InvitationApi(defaultClient); + String invitation = "invitation_example"; // String | the ID of invitation about to be cancelled + String organization = "organization_example"; // String | name or UUID of organization + try { + apiInstance.cancelJoinOrganization(invitation, organization); + } catch (ApiException e) { + System.err.println("Exception when calling InvitationApi#cancelJoinOrganization"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -157,7 +155,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -172,7 +170,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **cancelShareArrayByInvite** > cancelShareArrayByInvite(workspace, teamspace, invitation, array) @@ -181,47 +179,46 @@ null (empty response body) Cancels array sharing invitation ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.InvitationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - InvitationApi apiInstance = new InvitationApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String invitation = "invitation_example"; // String | the ID of invitation about to be cancelled - String array = "array_example"; // String | name/uri of array that is url-encoded - try { - apiInstance.cancelShareArrayByInvite(workspace, teamspace, invitation, array); - } catch (ApiException e) { - System.err.println("Exception when calling InvitationApi#cancelShareArrayByInvite"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + InvitationApi apiInstance = new InvitationApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String invitation = "invitation_example"; // String | the ID of invitation about to be cancelled + String array = "array_example"; // String | name/uri of array that is url-encoded + try { + apiInstance.cancelShareArrayByInvite(workspace, teamspace, invitation, array); + } catch (ApiException e) { + System.err.println("Exception when calling InvitationApi#cancelShareArrayByInvite"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -240,7 +237,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -255,7 +252,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **cancelShareGroupByInvite** > cancelShareGroupByInvite(workspace, teamspace, invitation, groupName) @@ -264,47 +261,46 @@ null (empty response body) Cancels group sharing invitation ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.InvitationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - InvitationApi apiInstance = new InvitationApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String invitation = "invitation_example"; // String | the ID of invitation about to be cancelled - String groupName = "groupName_example"; // String | name/uuid of group that is url-encoded - try { - apiInstance.cancelShareGroupByInvite(workspace, teamspace, invitation, groupName); - } catch (ApiException e) { - System.err.println("Exception when calling InvitationApi#cancelShareGroupByInvite"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + InvitationApi apiInstance = new InvitationApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String invitation = "invitation_example"; // String | the ID of invitation about to be cancelled + String groupName = "groupName_example"; // String | name/uuid of group that is url-encoded + try { + apiInstance.cancelShareGroupByInvite(workspace, teamspace, invitation, groupName); + } catch (ApiException e) { + System.err.println("Exception when calling InvitationApi#cancelShareGroupByInvite"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -323,7 +319,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -338,7 +334,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **cancelSharePayment** > cancelSharePayment(workspace, teamspace, target) @@ -347,46 +343,45 @@ null (empty response body) Revokes invitation from the source namespace to the target. ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.InvitationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - InvitationApi apiInstance = new InvitationApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String target = "target_example"; // String | name or UUID of recipient namespace - try { - apiInstance.cancelSharePayment(workspace, teamspace, target); - } catch (ApiException e) { - System.err.println("Exception when calling InvitationApi#cancelSharePayment"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + InvitationApi apiInstance = new InvitationApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String target = "target_example"; // String | name or UUID of recipient namespace + try { + apiInstance.cancelSharePayment(workspace, teamspace, target); + } catch (ApiException e) { + System.err.println("Exception when calling InvitationApi#cancelSharePayment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -404,7 +399,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -418,7 +413,7 @@ null (empty response body) | **404** | No invitation was found to cancel | - | | **0** | error response | - | - + # **fetchInvitations** > InvitationData fetchInvitations(organization, array, group, start, end, page, perPage, type, status, orderby) @@ -427,54 +422,53 @@ null (empty response body) Fetch a list of invitations ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.InvitationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - InvitationApi apiInstance = new InvitationApi(defaultClient); - String organization = "organization_example"; // String | name or ID of organization to filter - String array = "array_example"; // String | name/uri of array that is url-encoded to filter - String group = "group_example"; // String | name or ID of group to filter - Integer start = 56; // Integer | start time for tasks to filter by - Integer end = 56; // Integer | end time for tasks to filter by - Integer page = 56; // Integer | pagination offset - Integer perPage = 56; // Integer | pagination limit - String type = "type_example"; // String | invitation type, \"ARRAY_SHARE\", \"JOIN_ORGANIZATION\" - String status = "status_example"; // String | Filter to only return \"PENDING\", \"ACCEPTED\" - String orderby = "orderby_example"; // String | sort by which field valid values include timestamp, array_name, organization_name - try { - InvitationData result = apiInstance.fetchInvitations(organization, array, group, start, end, page, perPage, type, status, orderby); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling InvitationApi#fetchInvitations"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + InvitationApi apiInstance = new InvitationApi(defaultClient); + String organization = "organization_example"; // String | name or ID of organization to filter + String array = "array_example"; // String | name/uri of array that is url-encoded to filter + String group = "group_example"; // String | name or ID of group to filter + Integer start = 56; // Integer | start time for tasks to filter by + Integer end = 56; // Integer | end time for tasks to filter by + Integer page = 56; // Integer | pagination offset + Integer perPage = 56; // Integer | pagination limit + String type = "type_example"; // String | invitation type, \"ARRAY_SHARE\", \"JOIN_ORGANIZATION\" + String status = "status_example"; // String | Filter to only return \"PENDING\", \"ACCEPTED\" + String orderby = "orderby_example"; // String | sort by which field valid values include timestamp, array_name, organization_name + try { + InvitationData result = apiInstance.fetchInvitations(organization, array, group, start, end, page, perPage, type, status, orderby); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling InvitationApi#fetchInvitations"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -499,7 +493,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -513,7 +507,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **joinOrganization** > joinOrganization(organization, emailInvite) @@ -522,45 +516,44 @@ public class Example { Sends email to multiple recipients with joining information regarding an organization ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.InvitationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - InvitationApi apiInstance = new InvitationApi(defaultClient); - String organization = "organization_example"; // String | name or UUID of organization - InvitationOrganizationJoinEmail emailInvite = new InvitationOrganizationJoinEmail(); // InvitationOrganizationJoinEmail | list of email recipients - try { - apiInstance.joinOrganization(organization, emailInvite); - } catch (ApiException e) { - System.err.println("Exception when calling InvitationApi#joinOrganization"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + InvitationApi apiInstance = new InvitationApi(defaultClient); + String organization = "organization_example"; // String | name or UUID of organization + InvitationOrganizationJoinEmail emailInvite = new InvitationOrganizationJoinEmail(); // InvitationOrganizationJoinEmail | list of email recipients + try { + apiInstance.joinOrganization(organization, emailInvite); + } catch (ApiException e) { + System.err.println("Exception when calling InvitationApi#joinOrganization"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -577,7 +570,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -593,7 +586,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **shareArrayByInvite** > shareArrayByInvite(workspace, teamspace, array, emailInvite) @@ -602,47 +595,46 @@ null (empty response body) Sends email to multiple recipients with sharing information regarding an array ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.InvitationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - InvitationApi apiInstance = new InvitationApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String array = "array_example"; // String | name/uri of array that is url-encoded - InvitationArrayShareEmail emailInvite = new InvitationArrayShareEmail(); // InvitationArrayShareEmail | list of email recipients - try { - apiInstance.shareArrayByInvite(workspace, teamspace, array, emailInvite); - } catch (ApiException e) { - System.err.println("Exception when calling InvitationApi#shareArrayByInvite"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + InvitationApi apiInstance = new InvitationApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String array = "array_example"; // String | name/uri of array that is url-encoded + InvitationArrayShareEmail emailInvite = new InvitationArrayShareEmail(); // InvitationArrayShareEmail | list of email recipients + try { + apiInstance.shareArrayByInvite(workspace, teamspace, array, emailInvite); + } catch (ApiException e) { + System.err.println("Exception when calling InvitationApi#shareArrayByInvite"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -661,7 +653,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -677,7 +669,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **shareGroupByInvite** > shareGroupByInvite(workspace, teamspace, group, emailInvite) @@ -686,47 +678,46 @@ null (empty response body) Sends email to multiple recipients with sharing information regarding a group ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.InvitationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - InvitationApi apiInstance = new InvitationApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String group = "group_example"; // String | name/uri of group that is url-encoded - InvitationGroupShareEmail emailInvite = new InvitationGroupShareEmail(); // InvitationGroupShareEmail | list of email/namespace recipients - try { - apiInstance.shareGroupByInvite(workspace, teamspace, group, emailInvite); - } catch (ApiException e) { - System.err.println("Exception when calling InvitationApi#shareGroupByInvite"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + InvitationApi apiInstance = new InvitationApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String group = "group_example"; // String | name/uri of group that is url-encoded + InvitationGroupShareEmail emailInvite = new InvitationGroupShareEmail(); // InvitationGroupShareEmail | list of email/namespace recipients + try { + apiInstance.shareGroupByInvite(workspace, teamspace, group, emailInvite); + } catch (ApiException e) { + System.err.println("Exception when calling InvitationApi#shareGroupByInvite"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -745,7 +736,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -761,7 +752,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **sharePayment** > sharePayment(workspace, teamspace, emailInvite) @@ -770,46 +761,45 @@ null (empty response body) Sends email to multiple recipients allowing them to use the payment instrument provided by the source namespace. ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.InvitationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - InvitationApi apiInstance = new InvitationApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - SharePaymentRequest emailInvite = new SharePaymentRequest(); // SharePaymentRequest | Recipients of the invitation. These may only be namespaces, not email addresses. - try { - apiInstance.sharePayment(workspace, teamspace, emailInvite); - } catch (ApiException e) { - System.err.println("Exception when calling InvitationApi#sharePayment"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + InvitationApi apiInstance = new InvitationApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + SharePaymentRequest emailInvite = new SharePaymentRequest(); // SharePaymentRequest | Recipients of the invitation. These may only be namespaces, not email addresses. + try { + apiInstance.sharePayment(workspace, teamspace, emailInvite); + } catch (ApiException e) { + System.err.println("Exception when calling InvitationApi#sharePayment"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -827,7 +817,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers diff --git a/docs/NotebookApi.md b/docs/NotebookApi.md index 9d06b79..fffa49e 100644 --- a/docs/NotebookApi.md +++ b/docs/NotebookApi.md @@ -11,7 +11,7 @@ All URIs are relative to */v1* | [**updateNotebookName**](NotebookApi.md#updateNotebookName) | **PATCH** /notebooks/{workspace}/{teamspace}/{array}/rename | | - + # **getNotebookServerStatus** > NotebookStatus getNotebookServerStatus(workspace, teamspace) @@ -20,46 +20,45 @@ All URIs are relative to */v1* Get status of the notebook server ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.NotebookApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - NotebookApi apiInstance = new NotebookApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - try { - NotebookStatus result = apiInstance.getNotebookServerStatus(workspace, teamspace); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling NotebookApi#getNotebookServerStatus"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + NotebookApi apiInstance = new NotebookApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + try { + NotebookStatus result = apiInstance.getNotebookServerStatus(workspace, teamspace); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NotebookApi#getNotebookServerStatus"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -76,7 +75,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -92,7 +91,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **handleCopyNotebook** > NotebookCopied handleCopyNotebook(workspace, teamspace, array, notebookCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp) @@ -101,50 +100,49 @@ public class Example { Copy a tiledb notebook at the specified location ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.NotebookApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - NotebookApi apiInstance = new NotebookApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String array = "array_example"; // String | The name of the notebook - NotebookCopy notebookCopy = new NotebookCopy(); // NotebookCopy | Input/Output information to create a new TileDB file - String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME = "X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME_example"; // String | Optional registered access credentials to use for creation - Integer endTimestamp = 56; // Integer | Milliseconds since Unix epoch, copy will use open_at functionality to copy notebook created at the specific timestamp - try { - NotebookCopied result = apiInstance.handleCopyNotebook(workspace, teamspace, array, notebookCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling NotebookApi#handleCopyNotebook"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + NotebookApi apiInstance = new NotebookApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String array = "array_example"; // String | The name of the notebook + NotebookCopy notebookCopy = new NotebookCopy(); // NotebookCopy | Input/Output information to create a new TileDB file + String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME = "X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME_example"; // String | Optional registered access credentials to use for creation + Integer endTimestamp = 56; // Integer | Milliseconds since Unix epoch, copy will use open_at functionality to copy notebook created at the specific timestamp + try { + NotebookCopied result = apiInstance.handleCopyNotebook(workspace, teamspace, array, notebookCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NotebookApi#handleCopyNotebook"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -165,7 +163,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -179,7 +177,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **handleUploadNotebook** > FileUploaded handleUploadNotebook(workspace, teamspace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name) @@ -188,50 +186,49 @@ public class Example { Upload a notebook at the specified location ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.NotebookApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - NotebookApi apiInstance = new NotebookApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - File inputFile = new File("/path/to/file"); // File | the notebook to upload - String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME = "X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME_example"; // String | Optional registered access credentials to use for creation - String outputUri = "outputUri_example"; // String | output location of the TileDB File - String name = "name_example"; // String | name to set for registered file - try { - FileUploaded result = apiInstance.handleUploadNotebook(workspace, teamspace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling NotebookApi#handleUploadNotebook"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + NotebookApi apiInstance = new NotebookApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + File inputFile = new File("/path/to/file"); // File | the notebook to upload + String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME = "X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME_example"; // String | Optional registered access credentials to use for creation + String outputUri = "outputUri_example"; // String | output location of the TileDB File + String name = "name_example"; // String | name to set for registered file + try { + FileUploaded result = apiInstance.handleUploadNotebook(workspace, teamspace, inputFile, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, outputUri, name); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NotebookApi#handleUploadNotebook"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -252,7 +249,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -266,7 +263,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **shutdownNotebookServer** > shutdownNotebookServer(workspace, teamspace) @@ -275,45 +272,44 @@ public class Example { Shutdown a notebook server ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.NotebookApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - NotebookApi apiInstance = new NotebookApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - try { - apiInstance.shutdownNotebookServer(workspace, teamspace); - } catch (ApiException e) { - System.err.println("Exception when calling NotebookApi#shutdownNotebookServer"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + NotebookApi apiInstance = new NotebookApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + try { + apiInstance.shutdownNotebookServer(workspace, teamspace); + } catch (ApiException e) { + System.err.println("Exception when calling NotebookApi#shutdownNotebookServer"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -330,7 +326,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -345,7 +341,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **updateNotebookName** > updateNotebookName(workspace, teamspace, array, notebookMetadata) @@ -354,47 +350,46 @@ null (empty response body) update name on a notebok, moving related S3 object to new location ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.NotebookApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - NotebookApi apiInstance = new NotebookApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String array = "array_example"; // String | name/uri of notebook (array) that is url-encoded - ArrayInfoUpdate notebookMetadata = new ArrayInfoUpdate(); // ArrayInfoUpdate | notebook (array) metadata to update - try { - apiInstance.updateNotebookName(workspace, teamspace, array, notebookMetadata); - } catch (ApiException e) { - System.err.println("Exception when calling NotebookApi#updateNotebookName"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + NotebookApi apiInstance = new NotebookApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String array = "array_example"; // String | name/uri of notebook (array) that is url-encoded + ArrayInfoUpdate notebookMetadata = new ArrayInfoUpdate(); // ArrayInfoUpdate | notebook (array) metadata to update + try { + apiInstance.updateNotebookName(workspace, teamspace, array, notebookMetadata); + } catch (ApiException e) { + System.err.println("Exception when calling NotebookApi#updateNotebookName"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -413,7 +408,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers diff --git a/docs/NotebooksApi.md b/docs/NotebooksApi.md index c84091a..d4b401b 100644 --- a/docs/NotebooksApi.md +++ b/docs/NotebooksApi.md @@ -8,7 +8,7 @@ All URIs are relative to */v1* | [**notebooksWorkspaceTeamspaceArrayPrunePost**](NotebooksApi.md#notebooksWorkspaceTeamspaceArrayPrunePost) | **POST** /notebooks/{workspace}/{teamspace}/{array}/prune | | - + # **notebooksWorkspaceTeamspaceArrayEndTimestampsGet** > ArrayEndTimestampData notebooksWorkspaceTeamspaceArrayEndTimestampsGet(workspace, teamspace, array, page, perPage) @@ -17,49 +17,48 @@ All URIs are relative to */v1* retrieve a list of timestamps from the array fragment info listing in milliseconds, paginated ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.NotebooksApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - NotebooksApi apiInstance = new NotebooksApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String array = "array_example"; // String | name/uri of array that is url-encoded - Integer page = 56; // Integer | pagination offset - Integer perPage = 56; // Integer | pagination limit - try { - ArrayEndTimestampData result = apiInstance.notebooksWorkspaceTeamspaceArrayEndTimestampsGet(workspace, teamspace, array, page, perPage); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling NotebooksApi#notebooksWorkspaceTeamspaceArrayEndTimestampsGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + NotebooksApi apiInstance = new NotebooksApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String array = "array_example"; // String | name/uri of array that is url-encoded + Integer page = 56; // Integer | pagination offset + Integer perPage = 56; // Integer | pagination limit + try { + ArrayEndTimestampData result = apiInstance.notebooksWorkspaceTeamspaceArrayEndTimestampsGet(workspace, teamspace, array, page, perPage); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NotebooksApi#notebooksWorkspaceTeamspaceArrayEndTimestampsGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -79,7 +78,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -93,7 +92,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **notebooksWorkspaceTeamspaceArrayPrunePost** > notebooksWorkspaceTeamspaceArrayPrunePost(workspace, teamspace, array, keepVersions) @@ -102,47 +101,46 @@ public class Example { prune fragments of the notebook ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.NotebooksApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - NotebooksApi apiInstance = new NotebooksApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String array = "array_example"; // String | name/uri of array that is url-encoded - Integer keepVersions = 56; // Integer | The number of most recents fragment to preserve - try { - apiInstance.notebooksWorkspaceTeamspaceArrayPrunePost(workspace, teamspace, array, keepVersions); - } catch (ApiException e) { - System.err.println("Exception when calling NotebooksApi#notebooksWorkspaceTeamspaceArrayPrunePost"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + NotebooksApi apiInstance = new NotebooksApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String array = "array_example"; // String | name/uri of array that is url-encoded + Integer keepVersions = 56; // Integer | The number of most recents fragment to preserve + try { + apiInstance.notebooksWorkspaceTeamspaceArrayPrunePost(workspace, teamspace, array, keepVersions); + } catch (ApiException e) { + System.err.println("Exception when calling NotebooksApi#notebooksWorkspaceTeamspaceArrayPrunePost"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -161,7 +159,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers diff --git a/docs/OrganizationApi.md b/docs/OrganizationApi.md index bd366bb..5fc979e 100644 --- a/docs/OrganizationApi.md +++ b/docs/OrganizationApi.md @@ -26,7 +26,7 @@ All URIs are relative to */v1* | [**updateUserInOrganization**](OrganizationApi.md#updateUserInOrganization) | **PATCH** /organizations/{organization}/{username} | | - + # **addAWSAccessCredentials** > addAWSAccessCredentials(workspace, teamspace, awsAccessCredentials) @@ -35,46 +35,45 @@ All URIs are relative to */v1* Add aws keys ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - AWSAccessCredentials awsAccessCredentials = new AWSAccessCredentials(); // AWSAccessCredentials | aws access credentials to store for a namespace - try { - apiInstance.addAWSAccessCredentials(workspace, teamspace, awsAccessCredentials); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#addAWSAccessCredentials"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the credentials belongs to + AWSAccessCredentials awsAccessCredentials = new AWSAccessCredentials(); // AWSAccessCredentials | aws access credentials to store for a namespace + try { + apiInstance.addAWSAccessCredentials(workspace, teamspace, awsAccessCredentials); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#addAWSAccessCredentials"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -83,7 +82,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **workspace** | **String**| the workspace containing the teamspace the array belongs to | | -| **teamspace** | **String**| the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the credentials belongs to | | | **awsAccessCredentials** | [**AWSAccessCredentials**](AWSAccessCredentials.md)| aws access credentials to store for a namespace | | ### Return type @@ -92,7 +91,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -106,7 +105,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **addUserToOrganization** > addUserToOrganization(organization, user) @@ -115,45 +114,44 @@ null (empty response body) add a user to an organization ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String organization = "organization_example"; // String | organization name - OrganizationUser user = new OrganizationUser(); // OrganizationUser | user to add - try { - apiInstance.addUserToOrganization(organization, user); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#addUserToOrganization"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String organization = "organization_example"; // String | organization name + OrganizationUser user = new OrganizationUser(); // OrganizationUser | user to add + try { + apiInstance.addUserToOrganization(organization, user); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#addUserToOrganization"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -170,7 +168,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -184,7 +182,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **checkAWSAccessCredentials** > List<AWSAccessCredentials> checkAWSAccessCredentials(workspace, teamspace) @@ -193,46 +191,45 @@ null (empty response body) Check if aws keys are set ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - try { - List result = apiInstance.checkAWSAccessCredentials(workspace, teamspace); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#checkAWSAccessCredentials"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the credentials belongs to + try { + List result = apiInstance.checkAWSAccessCredentials(workspace, teamspace); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#checkAWSAccessCredentials"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -241,7 +238,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **workspace** | **String**| the workspace containing the teamspace the array belongs to | | -| **teamspace** | **String**| the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the credentials belongs to | | ### Return type @@ -249,7 +246,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -263,7 +260,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **checkAWSAccessCredentialsByName** > AWSAccessCredentials checkAWSAccessCredentialsByName(workspace, teamspace, name) @@ -272,47 +269,46 @@ public class Example { Check if aws keys are set by name ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String name = "name_example"; // String | name - try { - AWSAccessCredentials result = apiInstance.checkAWSAccessCredentialsByName(workspace, teamspace, name); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#checkAWSAccessCredentialsByName"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the credentials belongs to + String name = "name_example"; // String | name + try { + AWSAccessCredentials result = apiInstance.checkAWSAccessCredentialsByName(workspace, teamspace, name); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#checkAWSAccessCredentialsByName"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -321,7 +317,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **workspace** | **String**| the workspace containing the teamspace the array belongs to | | -| **teamspace** | **String**| the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the credentials belongs to | | | **name** | **String**| name | | ### Return type @@ -330,7 +326,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -344,7 +340,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **checkSSODomain** > DomainCheckResult checkSSODomain(organization, uuid) @@ -353,46 +349,45 @@ public class Example { Immediately verify ownership of the specified SSO domain ownership claim. ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String organization = "organization_example"; // String | organization name - String uuid = "uuid_example"; // String | configuration ID - try { - DomainCheckResult result = apiInstance.checkSSODomain(organization, uuid); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#checkSSODomain"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String organization = "organization_example"; // String | organization name + String uuid = "uuid_example"; // String | configuration ID + try { + DomainCheckResult result = apiInstance.checkSSODomain(organization, uuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#checkSSODomain"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -409,7 +404,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -422,7 +417,7 @@ public class Example { | **200** | The check executed. Detailed results are available in the response. | - | | **0** | error response | - | - + # **createOrganization** > createOrganization(organization) @@ -431,44 +426,43 @@ public class Example { create a organization, the user creating will be listed as owner ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - Organization organization = new Organization(); // Organization | organization to create - try { - apiInstance.createOrganization(organization); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#createOrganization"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + Organization organization = new Organization(); // Organization | organization to create + try { + apiInstance.createOrganization(organization); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#createOrganization"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -484,7 +478,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -498,7 +492,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **createSSODomain** > SSODomainConfig createSSODomain(organization, config) @@ -507,46 +501,45 @@ null (empty response body) Create a new SSO connection that connects this organization to this domain. ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String organization = "organization_example"; // String | organization name - SSODomainConfig config = new SSODomainConfig(); // SSODomainConfig | The SSO connection to create. - try { - SSODomainConfig result = apiInstance.createSSODomain(organization, config); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#createSSODomain"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String organization = "organization_example"; // String | organization name + SSODomainConfig config = new SSODomainConfig(); // SSODomainConfig | The SSO connection to create. + try { + SSODomainConfig result = apiInstance.createSSODomain(organization, config); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#createSSODomain"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -563,7 +556,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -576,7 +569,7 @@ public class Example { | **200** | Claim created successfully. | - | | **0** | error response | - | - + # **deleteAWSAccessCredentials** > deleteAWSAccessCredentials(workspace, teamspace, name) @@ -585,46 +578,45 @@ public class Example { delete a AWS Access credentials in a namespace. This will likely cause arrays to become unreachable ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String name = "name_example"; // String | name - try { - apiInstance.deleteAWSAccessCredentials(workspace, teamspace, name); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#deleteAWSAccessCredentials"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the credentials belongs to + String name = "name_example"; // String | name + try { + apiInstance.deleteAWSAccessCredentials(workspace, teamspace, name); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#deleteAWSAccessCredentials"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -633,7 +625,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **workspace** | **String**| the workspace containing the teamspace the array belongs to | | -| **teamspace** | **String**| the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the credentials belongs to | | | **name** | **String**| name | | ### Return type @@ -642,7 +634,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -656,7 +648,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **deleteOrganization** > deleteOrganization(organization) @@ -665,44 +657,43 @@ null (empty response body) delete a organization ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String organization = "organization_example"; // String | organization name or ID - try { - apiInstance.deleteOrganization(organization); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#deleteOrganization"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String organization = "organization_example"; // String | organization name or ID + try { + apiInstance.deleteOrganization(organization); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#deleteOrganization"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -718,7 +709,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -732,7 +723,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **deleteSSODomain** > deleteSSODomain(organization, uuid) @@ -741,45 +732,44 @@ null (empty response body) Deletes the configuration for the given SSO connection. ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String organization = "organization_example"; // String | organization name - String uuid = "uuid_example"; // String | configuration ID - try { - apiInstance.deleteSSODomain(organization, uuid); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#deleteSSODomain"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String organization = "organization_example"; // String | organization name + String uuid = "uuid_example"; // String | configuration ID + try { + apiInstance.deleteSSODomain(organization, uuid); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#deleteSSODomain"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -796,7 +786,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -809,7 +799,7 @@ null (empty response body) | **204** | Deletion successful. | - | | **0** | error response | - | - + # **deleteUserFromOrganization** > deleteUserFromOrganization(organization, username) @@ -818,45 +808,44 @@ null (empty response body) delete a user from an organization ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String organization = "organization_example"; // String | organization name - String username = "username_example"; // String | username to manipulate - try { - apiInstance.deleteUserFromOrganization(organization, username); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#deleteUserFromOrganization"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String organization = "organization_example"; // String | organization name + String username = "username_example"; // String | username to manipulate + try { + apiInstance.deleteUserFromOrganization(organization, username); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#deleteUserFromOrganization"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -873,7 +862,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -887,7 +876,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getAllOrganizations** > List<Organization> getAllOrganizations() @@ -896,44 +885,43 @@ null (empty response body) get all organizations that the user is member of ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - try { - List result = apiInstance.getAllOrganizations(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#getAllOrganizations"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + try { + List result = apiInstance.getAllOrganizations(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#getAllOrganizations"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -946,7 +934,7 @@ This endpoint does not need any parameter. ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -962,7 +950,7 @@ This endpoint does not need any parameter. | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getOrganization** > Organization getOrganization(organization) @@ -971,45 +959,44 @@ This endpoint does not need any parameter. get a organization ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String organization = "organization_example"; // String | organization name or ID - try { - Organization result = apiInstance.getOrganization(organization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#getOrganization"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String organization = "organization_example"; // String | organization name or ID + try { + Organization result = apiInstance.getOrganization(organization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#getOrganization"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1025,7 +1012,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1040,7 +1027,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getOrganizationUser** > OrganizationUser getOrganizationUser(organization, username) @@ -1049,46 +1036,45 @@ public class Example { get a user from an organization ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String organization = "organization_example"; // String | organization name - String username = "username_example"; // String | username to manipulate - try { - OrganizationUser result = apiInstance.getOrganizationUser(organization, username); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#getOrganizationUser"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String organization = "organization_example"; // String | organization name + String username = "username_example"; // String | username to manipulate + try { + OrganizationUser result = apiInstance.getOrganizationUser(organization, username); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#getOrganizationUser"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1105,7 +1091,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1120,7 +1106,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getSSODomain** > SSODomainConfig getSSODomain(organization, uuid) @@ -1129,46 +1115,45 @@ public class Example { Gets details about the given SSO domain connection. ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String organization = "organization_example"; // String | organization name - String uuid = "uuid_example"; // String | configuration ID - try { - SSODomainConfig result = apiInstance.getSSODomain(organization, uuid); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#getSSODomain"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String organization = "organization_example"; // String | organization name + String uuid = "uuid_example"; // String | configuration ID + try { + SSODomainConfig result = apiInstance.getSSODomain(organization, uuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#getSSODomain"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1185,7 +1170,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1198,7 +1183,7 @@ public class Example { | **200** | The details about this domain connection. | - | | **0** | error response | - | - + # **getSSODomains** > SSODomainConfigResponse getSSODomains(organization) @@ -1207,45 +1192,44 @@ public class Example { Lists all the SSO connections associated with the given organization. ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String organization = "organization_example"; // String | organization name - try { - SSODomainConfigResponse result = apiInstance.getSSODomains(organization); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#getSSODomains"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String organization = "organization_example"; // String | organization name + try { + SSODomainConfigResponse result = apiInstance.getSSODomains(organization); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#getSSODomains"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1261,7 +1245,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1274,7 +1258,7 @@ public class Example { | **200** | The SSO domains associated with the org. | - | | **0** | error response | - | - + # **updateAWSAccessCredentials** > updateAWSAccessCredentials(workspace, teamspace, name, awsAccessCredentials) @@ -1283,47 +1267,46 @@ public class Example { Update aws keys or associated buckets. This will update the key associations for each array in the namespace ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String name = "name_example"; // String | name - AWSAccessCredentials awsAccessCredentials = new AWSAccessCredentials(); // AWSAccessCredentials | aws credentials to update - try { - apiInstance.updateAWSAccessCredentials(workspace, teamspace, name, awsAccessCredentials); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#updateAWSAccessCredentials"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the credentials belongs to + String name = "name_example"; // String | name + AWSAccessCredentials awsAccessCredentials = new AWSAccessCredentials(); // AWSAccessCredentials | aws credentials to update + try { + apiInstance.updateAWSAccessCredentials(workspace, teamspace, name, awsAccessCredentials); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#updateAWSAccessCredentials"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1332,7 +1315,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **workspace** | **String**| the workspace containing the teamspace the array belongs to | | -| **teamspace** | **String**| the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the credentials belongs to | | | **name** | **String**| name | | | **awsAccessCredentials** | [**AWSAccessCredentials**](AWSAccessCredentials.md)| aws credentials to update | | @@ -1342,7 +1325,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1356,7 +1339,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **updateOrganization** > updateOrganization(organization, organizationDetails) @@ -1365,45 +1348,44 @@ null (empty response body) update a organization ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String organization = "organization_example"; // String | organization name or ID - OrganizationUpdate organizationDetails = new OrganizationUpdate(); // OrganizationUpdate | organization details to update - try { - apiInstance.updateOrganization(organization, organizationDetails); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#updateOrganization"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String organization = "organization_example"; // String | organization name or ID + OrganizationUpdate organizationDetails = new OrganizationUpdate(); // OrganizationUpdate | organization details to update + try { + apiInstance.updateOrganization(organization, organizationDetails); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#updateOrganization"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1420,7 +1402,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1434,7 +1416,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **updateSSODomain** > SSODomainConfig updateSSODomain(organization, uuid, config) @@ -1443,47 +1425,46 @@ null (empty response body) Updates the configuration for the given SSO connection. ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String organization = "organization_example"; // String | organization name - String uuid = "uuid_example"; // String | configuration ID - SSODomainConfig config = new SSODomainConfig(); // SSODomainConfig | The changes to make to the configuration. - try { - SSODomainConfig result = apiInstance.updateSSODomain(organization, uuid, config); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#updateSSODomain"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String organization = "organization_example"; // String | organization name + String uuid = "uuid_example"; // String | configuration ID + SSODomainConfig config = new SSODomainConfig(); // SSODomainConfig | The changes to make to the configuration. + try { + SSODomainConfig result = apiInstance.updateSSODomain(organization, uuid, config); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#updateSSODomain"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1501,7 +1482,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1514,7 +1495,7 @@ public class Example { | **200** | The updated details about the SSO connection. | - | | **0** | error response | - | - + # **updateUserInOrganization** > updateUserInOrganization(organization, username, user) @@ -1523,46 +1504,45 @@ public class Example { update a user in an organization ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.OrganizationApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - OrganizationApi apiInstance = new OrganizationApi(defaultClient); - String organization = "organization_example"; // String | organization name - String username = "username_example"; // String | username to manipulate - OrganizationUser user = new OrganizationUser(); // OrganizationUser | user details to update - try { - apiInstance.updateUserInOrganization(organization, username, user); - } catch (ApiException e) { - System.err.println("Exception when calling OrganizationApi#updateUserInOrganization"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + OrganizationApi apiInstance = new OrganizationApi(defaultClient); + String organization = "organization_example"; // String | organization name + String username = "username_example"; // String | username to manipulate + OrganizationUser user = new OrganizationUser(); // OrganizationUser | user details to update + try { + apiInstance.updateUserInOrganization(organization, username, user); + } catch (ApiException e) { + System.err.println("Exception when calling OrganizationApi#updateUserInOrganization"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1580,7 +1560,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers diff --git a/docs/QueryApi.md b/docs/QueryApi.md index 1cc25e3..b4159db 100644 --- a/docs/QueryApi.md +++ b/docs/QueryApi.md @@ -11,7 +11,7 @@ All URIs are relative to */v1* | [**submitQueryJson**](QueryApi.md#submitQueryJson) | **POST** /arrays/{workspace}/{teamspace}/{array}/query/submit_query_json | | - + # **finalizeQuery** > Query finalizeQuery(workspace, teamspace, array, type, contentType, query, xPayer, openAt) @@ -20,52 +20,51 @@ All URIs are relative to */v1* send a query to run against a specified array/URI registered to a group/project ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.QueryApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - QueryApi apiInstance = new QueryApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String array = "array_example"; // String | name/uri of array that is url-encoded - String type = "type_example"; // String | type of query - String contentType = "application/json"; // String | Content Type of input and return mime - Query query = new Query(); // Query | query to run - String xPayer = "xPayer_example"; // String | Name of organization or user who should be charged for this request - Integer openAt = 56; // Integer | open_at for array in unix epoch - try { - Query result = apiInstance.finalizeQuery(workspace, teamspace, array, type, contentType, query, xPayer, openAt); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling QueryApi#finalizeQuery"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + QueryApi apiInstance = new QueryApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String array = "array_example"; // String | name/uri of array that is url-encoded + String type = "type_example"; // String | type of query + String contentType = "application/json"; // String | Content Type of input and return mime + Query query = new Query(); // Query | query to run + String xPayer = "xPayer_example"; // String | Name of organization or user who should be charged for this request + Integer openAt = 56; // Integer | open_at for array in unix epoch + try { + Query result = apiInstance.finalizeQuery(workspace, teamspace, array, type, contentType, query, xPayer, openAt); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling QueryApi#finalizeQuery"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -88,7 +87,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -103,7 +102,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getEstResultSizes** > Query getEstResultSizes(workspace, teamspace, array, type, contentType, query, xPayer, openAt) @@ -112,52 +111,51 @@ public class Example { send a query to run against a specified array/URI registered to a group/project ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.QueryApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - QueryApi apiInstance = new QueryApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String array = "array_example"; // String | name/uri of array that is url-encoded - String type = "type_example"; // String | type of query - String contentType = "application/json"; // String | Content Type of input and return mime - Query query = new Query(); // Query | query to run - String xPayer = "xPayer_example"; // String | Name of organization or user who should be charged for this request - Integer openAt = 56; // Integer | open_at for array in unix epoch - try { - Query result = apiInstance.getEstResultSizes(workspace, teamspace, array, type, contentType, query, xPayer, openAt); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling QueryApi#getEstResultSizes"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + QueryApi apiInstance = new QueryApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String array = "array_example"; // String | name/uri of array that is url-encoded + String type = "type_example"; // String | type of query + String contentType = "application/json"; // String | Content Type of input and return mime + Query query = new Query(); // Query | query to run + String xPayer = "xPayer_example"; // String | Name of organization or user who should be charged for this request + Integer openAt = 56; // Integer | open_at for array in unix epoch + try { + Query result = apiInstance.getEstResultSizes(workspace, teamspace, array, type, contentType, query, xPayer, openAt); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling QueryApi#getEstResultSizes"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -180,7 +178,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -195,7 +193,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getFile** > File getFile(workspace, teamspace, array, contentType, xPayer) @@ -204,49 +202,48 @@ public class Example { send a query to run against a specified array/URI registered to a group/project, returns file bytes ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.QueryApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - QueryApi apiInstance = new QueryApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String array = "array_example"; // String | name/uri of array that is url-encoded - String contentType = "application/json"; // String | Content Type of input and return mime - String xPayer = "xPayer_example"; // String | Name of organization or user who should be charged for this request - try { - File result = apiInstance.getFile(workspace, teamspace, array, contentType, xPayer); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling QueryApi#getFile"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + QueryApi apiInstance = new QueryApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String array = "array_example"; // String | name/uri of array that is url-encoded + String contentType = "application/json"; // String | Content Type of input and return mime + String xPayer = "xPayer_example"; // String | Name of organization or user who should be charged for this request + try { + File result = apiInstance.getFile(workspace, teamspace, array, contentType, xPayer); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling QueryApi#getFile"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -266,7 +263,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -280,7 +277,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **submitQuery** > Query submitQuery(workspace, teamspace, array, type, contentType, query, xPayer, openAt) @@ -289,52 +286,51 @@ public class Example { send a query to run against a specified array/URI registered to a group/project ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.QueryApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - QueryApi apiInstance = new QueryApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String array = "array_example"; // String | name/uri of array that is url-encoded - String type = "type_example"; // String | type of query - String contentType = "application/json"; // String | Content Type of input and return mime - Query query = new Query(); // Query | query to run - String xPayer = "xPayer_example"; // String | Name of organization or user who should be charged for this request - Integer openAt = 56; // Integer | open_at for array in unix epoch - try { - Query result = apiInstance.submitQuery(workspace, teamspace, array, type, contentType, query, xPayer, openAt); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling QueryApi#submitQuery"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + QueryApi apiInstance = new QueryApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String array = "array_example"; // String | name/uri of array that is url-encoded + String type = "type_example"; // String | type of query + String contentType = "application/json"; // String | Content Type of input and return mime + Query query = new Query(); // Query | query to run + String xPayer = "xPayer_example"; // String | Name of organization or user who should be charged for this request + Integer openAt = 56; // Integer | open_at for array in unix epoch + try { + Query result = apiInstance.submitQuery(workspace, teamspace, array, type, contentType, query, xPayer, openAt); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling QueryApi#submitQuery"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -357,7 +353,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -372,7 +368,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **submitQueryJson** > Object submitQueryJson(workspace, teamspace, array, contentType, queryJson, xPayer) @@ -381,50 +377,49 @@ public class Example { send a query to run against a specified array/URI registered to a group/project, returns JSON results ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.QueryApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - QueryApi apiInstance = new QueryApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String array = "array_example"; // String | name/uri of array that is url-encoded - String contentType = "application/json"; // String | Content Type of input and return mime - QueryJson queryJson = new QueryJson(); // QueryJson | query to run - String xPayer = "xPayer_example"; // String | Name of organization or user who should be charged for this request - try { - Object result = apiInstance.submitQueryJson(workspace, teamspace, array, contentType, queryJson, xPayer); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling QueryApi#submitQueryJson"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + QueryApi apiInstance = new QueryApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String array = "array_example"; // String | name/uri of array that is url-encoded + String contentType = "application/json"; // String | Content Type of input and return mime + QueryJson queryJson = new QueryJson(); // QueryJson | query to run + String xPayer = "xPayer_example"; // String | Name of organization or user who should be charged for this request + try { + Object result = apiInstance.submitQueryJson(workspace, teamspace, array, contentType, queryJson, xPayer); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling QueryApi#submitQueryJson"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -445,7 +440,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers diff --git a/docs/RegisteredTaskGraphsApi.md b/docs/RegisteredTaskGraphsApi.md index 17b1ca5..f95d794 100644 --- a/docs/RegisteredTaskGraphsApi.md +++ b/docs/RegisteredTaskGraphsApi.md @@ -12,7 +12,7 @@ All URIs are relative to */v1* | [**updateRegisteredTaskGraph**](RegisteredTaskGraphsApi.md#updateRegisteredTaskGraph) | **PATCH** /taskgraphs/{workspace}/registered/{name} | | - + # **deleteRegisteredTaskGraph** > deleteRegisteredTaskGraph(workspace, name) @@ -21,45 +21,44 @@ All URIs are relative to */v1* Delete the given registered task graph. ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.RegisteredTaskGraphsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - RegisteredTaskGraphsApi apiInstance = new RegisteredTaskGraphsApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String name = "name_example"; // String | The name of the registered task graph. - try { - apiInstance.deleteRegisteredTaskGraph(workspace, name); - } catch (ApiException e) { - System.err.println("Exception when calling RegisteredTaskGraphsApi#deleteRegisteredTaskGraph"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + RegisteredTaskGraphsApi apiInstance = new RegisteredTaskGraphsApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String name = "name_example"; // String | The name of the registered task graph. + try { + apiInstance.deleteRegisteredTaskGraph(workspace, name); + } catch (ApiException e) { + System.err.println("Exception when calling RegisteredTaskGraphsApi#deleteRegisteredTaskGraph"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -76,7 +75,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -90,7 +89,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getRegisteredTaskGraph** > RegisteredTaskGraph getRegisteredTaskGraph(workspace, name) @@ -99,46 +98,45 @@ null (empty response body) Fetch the contents of this registered task graph. ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.RegisteredTaskGraphsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - RegisteredTaskGraphsApi apiInstance = new RegisteredTaskGraphsApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String name = "name_example"; // String | The name of the registered task graph. - try { - RegisteredTaskGraph result = apiInstance.getRegisteredTaskGraph(workspace, name); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling RegisteredTaskGraphsApi#getRegisteredTaskGraph"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + RegisteredTaskGraphsApi apiInstance = new RegisteredTaskGraphsApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String name = "name_example"; // String | The name of the registered task graph. + try { + RegisteredTaskGraph result = apiInstance.getRegisteredTaskGraph(workspace, name); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RegisteredTaskGraphsApi#getRegisteredTaskGraph"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -155,7 +153,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -169,7 +167,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getRegisteredTaskGraphSharingPolicies** > List<TaskGraphSharing> getRegisteredTaskGraphSharingPolicies(workspace, name) @@ -178,46 +176,45 @@ public class Example { Get sharing policies for the task graph. ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.RegisteredTaskGraphsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - RegisteredTaskGraphsApi apiInstance = new RegisteredTaskGraphsApi(defaultClient); - String workspace = "workspace_example"; // String | The workspace that owns the registered task graph. - String name = "name_example"; // String | The name of the task graph. - try { - List result = apiInstance.getRegisteredTaskGraphSharingPolicies(workspace, name); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling RegisteredTaskGraphsApi#getRegisteredTaskGraphSharingPolicies"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + RegisteredTaskGraphsApi apiInstance = new RegisteredTaskGraphsApi(defaultClient); + String workspace = "workspace_example"; // String | The workspace that owns the registered task graph. + String name = "name_example"; // String | The name of the task graph. + try { + List result = apiInstance.getRegisteredTaskGraphSharingPolicies(workspace, name); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RegisteredTaskGraphsApi#getRegisteredTaskGraphSharingPolicies"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -234,7 +231,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -249,7 +246,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **registerRegisteredTaskGraph** > registerRegisteredTaskGraph(workspace, name, graph) @@ -258,46 +255,45 @@ public class Example { Register a task graph in the given namespace, with the given name. ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.RegisteredTaskGraphsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - RegisteredTaskGraphsApi apiInstance = new RegisteredTaskGraphsApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String name = "name_example"; // String | The name of the registered task graph. - RegisteredTaskGraph graph = new RegisteredTaskGraph(); // RegisteredTaskGraph | Task graph to register. - try { - apiInstance.registerRegisteredTaskGraph(workspace, name, graph); - } catch (ApiException e) { - System.err.println("Exception when calling RegisteredTaskGraphsApi#registerRegisteredTaskGraph"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + RegisteredTaskGraphsApi apiInstance = new RegisteredTaskGraphsApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String name = "name_example"; // String | The name of the registered task graph. + RegisteredTaskGraph graph = new RegisteredTaskGraph(); // RegisteredTaskGraph | Task graph to register. + try { + apiInstance.registerRegisteredTaskGraph(workspace, name, graph); + } catch (ApiException e) { + System.err.println("Exception when calling RegisteredTaskGraphsApi#registerRegisteredTaskGraph"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -315,7 +311,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -329,7 +325,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **shareRegisteredTaskGraph** > shareRegisteredTaskGraph(workspace, name, taskGraphSharing) @@ -338,46 +334,45 @@ null (empty response body) Share a task graph. ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.RegisteredTaskGraphsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - RegisteredTaskGraphsApi apiInstance = new RegisteredTaskGraphsApi(defaultClient); - String workspace = "workspace_example"; // String | The workspace that owns the registered task graph. - String name = "name_example"; // String | The name of the task graph. - TaskGraphSharing taskGraphSharing = new TaskGraphSharing(); // TaskGraphSharing | Namespace and list of permissions to share with. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the UDF will not be shared with the namespace at all. - try { - apiInstance.shareRegisteredTaskGraph(workspace, name, taskGraphSharing); - } catch (ApiException e) { - System.err.println("Exception when calling RegisteredTaskGraphsApi#shareRegisteredTaskGraph"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + RegisteredTaskGraphsApi apiInstance = new RegisteredTaskGraphsApi(defaultClient); + String workspace = "workspace_example"; // String | The workspace that owns the registered task graph. + String name = "name_example"; // String | The name of the task graph. + TaskGraphSharing taskGraphSharing = new TaskGraphSharing(); // TaskGraphSharing | Namespace and list of permissions to share with. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the UDF will not be shared with the namespace at all. + try { + apiInstance.shareRegisteredTaskGraph(workspace, name, taskGraphSharing); + } catch (ApiException e) { + System.err.println("Exception when calling RegisteredTaskGraphsApi#shareRegisteredTaskGraph"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -395,7 +390,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -410,7 +405,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **updateRegisteredTaskGraph** > updateRegisteredTaskGraph(workspace, name, graph) @@ -419,46 +414,45 @@ null (empty response body) Update the contents of an existing registered task graph. ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.RegisteredTaskGraphsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - RegisteredTaskGraphsApi apiInstance = new RegisteredTaskGraphsApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String name = "name_example"; // String | The name of the registered task graph. - RegisteredTaskGraph graph = new RegisteredTaskGraph(); // RegisteredTaskGraph | The new contents of the task graph. - try { - apiInstance.updateRegisteredTaskGraph(workspace, name, graph); - } catch (ApiException e) { - System.err.println("Exception when calling RegisteredTaskGraphsApi#updateRegisteredTaskGraph"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + RegisteredTaskGraphsApi apiInstance = new RegisteredTaskGraphsApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String name = "name_example"; // String | The name of the registered task graph. + RegisteredTaskGraph graph = new RegisteredTaskGraph(); // RegisteredTaskGraph | The new contents of the task graph. + try { + apiInstance.updateRegisteredTaskGraph(workspace, name, graph); + } catch (ApiException e) { + System.err.println("Exception when calling RegisteredTaskGraphsApi#updateRegisteredTaskGraph"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -476,7 +470,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers diff --git a/docs/RetryPolicy.md b/docs/RetryPolicy.md index c202480..d41a45a 100644 --- a/docs/RetryPolicy.md +++ b/docs/RetryPolicy.md @@ -7,11 +7,11 @@ * `ALWAYS` (value: `"Always"`) -* `ONFAILURE` (value: `"OnFailure"`) +* `ON_FAILURE` (value: `"OnFailure"`) -* `ONERROR` (value: `"OnError"`) +* `ON_ERROR` (value: `"OnError"`) -* `ONTRANSIENTERROR` (value: `"OnTransientError"`) +* `ON_TRANSIENT_ERROR` (value: `"OnTransientError"`) diff --git a/docs/SqlApi.md b/docs/SqlApi.md index 78d814e..c8167dc 100644 --- a/docs/SqlApi.md +++ b/docs/SqlApi.md @@ -7,57 +7,56 @@ All URIs are relative to */v1* | [**runSQL**](SqlApi.md#runSQL) | **POST** /sql/{workspace}/{teamspace} | | - + # **runSQL** -> List<Object> runSQL(workspace, teamspace, sql, acceptEncoding) +> List<Map<String, Object>> runSQL(workspace, teamspace, sql, acceptEncoding) Run a sql query ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.SqlApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - SqlApi apiInstance = new SqlApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - SQLParameters sql = new SQLParameters(); // SQLParameters | sql being submitted - String acceptEncoding = "acceptEncoding_example"; // String | Encoding to use - try { - List result = apiInstance.runSQL(workspace, teamspace, sql, acceptEncoding); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling SqlApi#runSQL"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + SqlApi apiInstance = new SqlApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the sql query belongs to + SQLParameters sql = new SQLParameters(); // SQLParameters | sql being submitted + String acceptEncoding = "acceptEncoding_example"; // String | Encoding to use + try { + List> result = apiInstance.runSQL(workspace, teamspace, sql, acceptEncoding); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SqlApi#runSQL"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -66,17 +65,17 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **workspace** | **String**| the workspace containing the teamspace the array belongs to | | -| **teamspace** | **String**| the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the sql query belongs to | | | **sql** | [**SQLParameters**](SQLParameters.md)| sql being submitted | | | **acceptEncoding** | **String**| Encoding to use | [optional] | ### Return type -**List<Object>** +[**List<Map<String, Object>>**](Map.md) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers diff --git a/docs/StatsApi.md b/docs/StatsApi.md index 8d97f39..829caeb 100644 --- a/docs/StatsApi.md +++ b/docs/StatsApi.md @@ -7,7 +7,7 @@ All URIs are relative to */v1* | [**getTiledbStats**](StatsApi.md#getTiledbStats) | **GET** /.stats | | - + # **getTiledbStats** > GetTiledbStats200Response getTiledbStats() @@ -16,44 +16,43 @@ All URIs are relative to */v1* Fetch libtiledb stat ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.StatsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - StatsApi apiInstance = new StatsApi(defaultClient); - try { - GetTiledbStats200Response result = apiInstance.getTiledbStats(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling StatsApi#getTiledbStats"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + StatsApi apiInstance = new StatsApi(defaultClient); + try { + GetTiledbStats200Response result = apiInstance.getTiledbStats(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling StatsApi#getTiledbStats"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -66,7 +65,7 @@ This endpoint does not need any parameter. ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers diff --git a/docs/TaskGraphLogsApi.md b/docs/TaskGraphLogsApi.md index 30bab18..9cf7d39 100644 --- a/docs/TaskGraphLogsApi.md +++ b/docs/TaskGraphLogsApi.md @@ -15,7 +15,7 @@ All URIs are relative to */v1* | [**updateTaskGraphLog**](TaskGraphLogsApi.md#updateTaskGraphLog) | **PATCH** /taskgraphs/{workspace}/logs/{id} | | - + # **createTaskGraphLog** > TaskGraphLog createTaskGraphLog(workspace, log) @@ -24,46 +24,45 @@ All URIs are relative to */v1* Create a task graph log. ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.TaskGraphLogsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - TaskGraphLog log = new TaskGraphLog(); // TaskGraphLog | - try { - TaskGraphLog result = apiInstance.createTaskGraphLog(workspace, log); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling TaskGraphLogsApi#createTaskGraphLog"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + TaskGraphLog log = new TaskGraphLog(); // TaskGraphLog | + try { + TaskGraphLog result = apiInstance.createTaskGraphLog(workspace, log); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling TaskGraphLogsApi#createTaskGraphLog"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -80,7 +79,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -94,7 +93,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getTaskGraphLog** > TaskGraphLog getTaskGraphLog(workspace, id) @@ -103,46 +102,45 @@ public class Example { Fetch information about a single task graph execution. ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.TaskGraphLogsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String id = "id_example"; // String | The UUID of the task graph log entry. - try { - TaskGraphLog result = apiInstance.getTaskGraphLog(workspace, id); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling TaskGraphLogsApi#getTaskGraphLog"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String id = "id_example"; // String | The UUID of the task graph log entry. + try { + TaskGraphLog result = apiInstance.getTaskGraphLog(workspace, id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling TaskGraphLogsApi#getTaskGraphLog"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -159,7 +157,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -173,7 +171,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **listTaskGraphLogs** > TaskGraphLogsData listTaskGraphLogs(namespace, createdBy, status, search, startTime, endTime, page, perPage) @@ -182,52 +180,51 @@ public class Example { Fetch the task graph logs of a namespace the user has access to. The returned entries will include only summary data, and will not include information about the individual tasks that were executed. (This information is available when requesting an individual task graph log.) Entries in the response are ordered from newest to oldest. Pagination parameters work as in other API methods; see PaginationMetadata. ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.TaskGraphLogsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); - String namespace = "namespace_example"; // String | Include logs for this namespace. - String createdBy = "createdBy_example"; // String | Include logs from only this user. - String status = "status_example"; // String | Filter to only return these statuses - String search = "search_example"; // String | search string that will look at name. - OffsetDateTime startTime = OffsetDateTime.now(); // OffsetDateTime | Include logs created after this time. - OffsetDateTime endTime = OffsetDateTime.now(); // OffsetDateTime | Include logs created before this time. - Integer page = 56; // Integer | pagination offset - Integer perPage = 56; // Integer | pagination limit - try { - TaskGraphLogsData result = apiInstance.listTaskGraphLogs(namespace, createdBy, status, search, startTime, endTime, page, perPage); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling TaskGraphLogsApi#listTaskGraphLogs"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); + String namespace = "namespace_example"; // String | Include logs for this namespace. + String createdBy = "createdBy_example"; // String | Include logs from only this user. + String status = "status_example"; // String | Filter to only return these statuses + String search = "search_example"; // String | search string that will look at name. + OffsetDateTime startTime = OffsetDateTime.now(); // OffsetDateTime | Include logs created after this time. + OffsetDateTime endTime = OffsetDateTime.now(); // OffsetDateTime | Include logs created before this time. + Integer page = 56; // Integer | pagination offset + Integer perPage = 56; // Integer | pagination limit + try { + TaskGraphLogsData result = apiInstance.listTaskGraphLogs(namespace, createdBy, status, search, startTime, endTime, page, perPage); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling TaskGraphLogsApi#listTaskGraphLogs"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -250,7 +247,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -264,53 +261,52 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **reportClientNode** > reportClientNode(workspace, id, report) ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.TaskGraphLogsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String id = "id_example"; // String | The UUID of the task graph log entry. - TaskGraphClientNodeStatus report = new TaskGraphClientNodeStatus(); // TaskGraphClientNodeStatus | The node status to report. - try { - apiInstance.reportClientNode(workspace, id, report); - } catch (ApiException e) { - System.err.println("Exception when calling TaskGraphLogsApi#reportClientNode"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String id = "id_example"; // String | The UUID of the task graph log entry. + TaskGraphClientNodeStatus report = new TaskGraphClientNodeStatus(); // TaskGraphClientNodeStatus | The node status to report. + try { + apiInstance.reportClientNode(workspace, id, report); + } catch (ApiException e) { + System.err.println("Exception when calling TaskGraphLogsApi#reportClientNode"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -328,7 +324,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -342,7 +338,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **resubmitTaskGraphExecution** > TaskGraphLog resubmitTaskGraphExecution(workspace, id) @@ -351,46 +347,45 @@ null (empty response body) Resubmits a task graph in the given namespace using the associated execution id. ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.TaskGraphLogsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String id = "id_example"; // String | The UUID of the task graph execution (TaskGraphLog). - try { - TaskGraphLog result = apiInstance.resubmitTaskGraphExecution(workspace, id); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling TaskGraphLogsApi#resubmitTaskGraphExecution"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String id = "id_example"; // String | The UUID of the task graph execution (TaskGraphLog). + try { + TaskGraphLog result = apiInstance.resubmitTaskGraphExecution(workspace, id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling TaskGraphLogsApi#resubmitTaskGraphExecution"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -407,7 +402,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -421,7 +416,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **retryTaskGraphExecution** > TaskGraphLog retryTaskGraphExecution(workspace, id) @@ -430,46 +425,45 @@ public class Example { Retries failed tasks of a task graph in the given namespace using the associated execution id. ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.TaskGraphLogsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String id = "id_example"; // String | The UUID of the task graph execution (TaskGraphLog). - try { - TaskGraphLog result = apiInstance.retryTaskGraphExecution(workspace, id); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling TaskGraphLogsApi#retryTaskGraphExecution"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String id = "id_example"; // String | The UUID of the task graph execution (TaskGraphLog). + try { + TaskGraphLog result = apiInstance.retryTaskGraphExecution(workspace, id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling TaskGraphLogsApi#retryTaskGraphExecution"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -486,7 +480,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -500,7 +494,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **stopTaskGraphExecution** > stopTaskGraphExecution(workspace, id) @@ -509,45 +503,44 @@ public class Example { Stops a task graph execution in the given namespace using the associated associated execution id. ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.TaskGraphLogsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String id = "id_example"; // String | The UUID of the task graph execution (TaskGraphLog). - try { - apiInstance.stopTaskGraphExecution(workspace, id); - } catch (ApiException e) { - System.err.println("Exception when calling TaskGraphLogsApi#stopTaskGraphExecution"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String id = "id_example"; // String | The UUID of the task graph execution (TaskGraphLog). + try { + apiInstance.stopTaskGraphExecution(workspace, id); + } catch (ApiException e) { + System.err.println("Exception when calling TaskGraphLogsApi#stopTaskGraphExecution"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -564,7 +557,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -578,7 +571,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **submitTaskGraph** > TaskGraphLog submitTaskGraph(workspace, id, rootTaskGraphUuid) @@ -587,47 +580,46 @@ null (empty response body) Submit a single task graph for execution. ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.TaskGraphLogsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String id = "id_example"; // String | The UUID of the task graph entry. - String rootTaskGraphUuid = "rootTaskGraphUuid_example"; // String | UUID of the root taskgraph that this graph is assosiated with - try { - TaskGraphLog result = apiInstance.submitTaskGraph(workspace, id, rootTaskGraphUuid); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling TaskGraphLogsApi#submitTaskGraph"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String id = "id_example"; // String | The UUID of the task graph entry. + String rootTaskGraphUuid = "rootTaskGraphUuid_example"; // String | UUID of the root taskgraph that this graph is assosiated with + try { + TaskGraphLog result = apiInstance.submitTaskGraph(workspace, id, rootTaskGraphUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling TaskGraphLogsApi#submitTaskGraph"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -645,7 +637,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -659,7 +651,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **updateTaskGraphLog** > updateTaskGraphLog(workspace, id, log) @@ -668,46 +660,45 @@ public class Example { Update information about a single task graph execution. ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.TaskGraphLogsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String id = "id_example"; // String | The UUID of the task graph log entry. - TaskGraphLog log = new TaskGraphLog(); // TaskGraphLog | Updates to make to the task graph log. The only manual update that a client should need to make to a task graph log is to update its completion status to `succeeded`, `failed`, or `cancelled`. - try { - apiInstance.updateTaskGraphLog(workspace, id, log); - } catch (ApiException e) { - System.err.println("Exception when calling TaskGraphLogsApi#updateTaskGraphLog"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + TaskGraphLogsApi apiInstance = new TaskGraphLogsApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String id = "id_example"; // String | The UUID of the task graph log entry. + TaskGraphLog log = new TaskGraphLog(); // TaskGraphLog | Updates to make to the task graph log. The only manual update that a client should need to make to a task graph log is to update its completion status to `succeeded`, `failed`, or `cancelled`. + try { + apiInstance.updateTaskGraphLog(workspace, id, log); + } catch (ApiException e) { + System.err.println("Exception when calling TaskGraphLogsApi#updateTaskGraphLog"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -725,7 +716,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers diff --git a/docs/TaskGraphsApi.md b/docs/TaskGraphsApi.md index 1fabfce..ff259ab 100644 --- a/docs/TaskGraphsApi.md +++ b/docs/TaskGraphsApi.md @@ -11,7 +11,7 @@ All URIs are relative to */v1* | [**updateTaskGraph**](TaskGraphsApi.md#updateTaskGraph) | **PATCH** /taskgraphs/{workspace}/graphs/{id} | | - + # **createTaskGraph** > TaskGraph createTaskGraph(workspace, graph) @@ -20,46 +20,45 @@ All URIs are relative to */v1* Create a single task graph for execution. ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.TaskGraphsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - TaskGraphsApi apiInstance = new TaskGraphsApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - TaskGraph graph = new TaskGraph(); // TaskGraph | Create the task graph. - try { - TaskGraph result = apiInstance.createTaskGraph(workspace, graph); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling TaskGraphsApi#createTaskGraph"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + TaskGraphsApi apiInstance = new TaskGraphsApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + TaskGraph graph = new TaskGraph(); // TaskGraph | Create the task graph. + try { + TaskGraph result = apiInstance.createTaskGraph(workspace, graph); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling TaskGraphsApi#createTaskGraph"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -76,7 +75,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -90,7 +89,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getTaskGraph** > TaskGraph getTaskGraph(workspace, id) @@ -99,46 +98,45 @@ public class Example { Fetch information about a single task graph. ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.TaskGraphsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - TaskGraphsApi apiInstance = new TaskGraphsApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String id = "id_example"; // String | The UUID of the task graph entry. - try { - TaskGraph result = apiInstance.getTaskGraph(workspace, id); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling TaskGraphsApi#getTaskGraph"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + TaskGraphsApi apiInstance = new TaskGraphsApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String id = "id_example"; // String | The UUID of the task graph entry. + try { + TaskGraph result = apiInstance.getTaskGraph(workspace, id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling TaskGraphsApi#getTaskGraph"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -155,7 +153,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -169,7 +167,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **listTaskGraphs** > TaskGraphs listTaskGraphs(workspace) @@ -178,45 +176,44 @@ public class Example { Fetch the task graphs of a namespace the user has access to. The returned entries will include only summary data, and will not include information about the individual tasks that were executed. (This information is available when requesting an individual task graph log.) Entries in the response are ordered from newest to oldest. Pagination parameters work as in other API methods; see PaginationMetadata. ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.TaskGraphsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - TaskGraphsApi apiInstance = new TaskGraphsApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - try { - TaskGraphs result = apiInstance.listTaskGraphs(workspace); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling TaskGraphsApi#listTaskGraphs"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + TaskGraphsApi apiInstance = new TaskGraphsApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + try { + TaskGraphs result = apiInstance.listTaskGraphs(workspace); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling TaskGraphsApi#listTaskGraphs"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -232,7 +229,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -246,7 +243,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **submitTaskGraph** > TaskGraphLog submitTaskGraph(workspace, id, rootTaskGraphUuid) @@ -255,47 +252,46 @@ public class Example { Submit a single task graph for execution. ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.TaskGraphsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - TaskGraphsApi apiInstance = new TaskGraphsApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String id = "id_example"; // String | The UUID of the task graph entry. - String rootTaskGraphUuid = "rootTaskGraphUuid_example"; // String | UUID of the root taskgraph that this graph is assosiated with - try { - TaskGraphLog result = apiInstance.submitTaskGraph(workspace, id, rootTaskGraphUuid); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling TaskGraphsApi#submitTaskGraph"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + TaskGraphsApi apiInstance = new TaskGraphsApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String id = "id_example"; // String | The UUID of the task graph entry. + String rootTaskGraphUuid = "rootTaskGraphUuid_example"; // String | UUID of the root taskgraph that this graph is assosiated with + try { + TaskGraphLog result = apiInstance.submitTaskGraph(workspace, id, rootTaskGraphUuid); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling TaskGraphsApi#submitTaskGraph"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -313,7 +309,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -327,7 +323,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **updateTaskGraph** > updateTaskGraph(workspace, id, graph) @@ -336,46 +332,45 @@ public class Example { Update information about a single task graph execution. ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.TaskGraphsApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - TaskGraphsApi apiInstance = new TaskGraphsApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String id = "id_example"; // String | The UUID of the task graph entry. - TaskGraph graph = new TaskGraph(); // TaskGraph | Updates to make to the task graph. - try { - apiInstance.updateTaskGraph(workspace, id, graph); - } catch (ApiException e) { - System.err.println("Exception when calling TaskGraphsApi#updateTaskGraph"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + TaskGraphsApi apiInstance = new TaskGraphsApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String id = "id_example"; // String | The UUID of the task graph entry. + TaskGraph graph = new TaskGraph(); // TaskGraph | Updates to make to the task graph. + try { + apiInstance.updateTaskGraph(workspace, id, graph); + } catch (ApiException e) { + System.err.println("Exception when calling TaskGraphsApi#updateTaskGraph"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -393,7 +388,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers diff --git a/docs/TasksApi.md b/docs/TasksApi.md index 75a7ed4..160cb10 100644 --- a/docs/TasksApi.md +++ b/docs/TasksApi.md @@ -10,57 +10,56 @@ All URIs are relative to */v1* | [**tasksGet**](TasksApi.md#tasksGet) | **GET** /tasks | | - + # **runSQL** -> List<Object> runSQL(workspace, teamspace, sql, acceptEncoding) +> List<Map<String, Object>> runSQL(workspace, teamspace, sql, acceptEncoding) Run a sql query ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.TasksApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - TasksApi apiInstance = new TasksApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - SQLParameters sql = new SQLParameters(); // SQLParameters | sql being submitted - String acceptEncoding = "acceptEncoding_example"; // String | Encoding to use - try { - List result = apiInstance.runSQL(workspace, teamspace, sql, acceptEncoding); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling TasksApi#runSQL"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + TasksApi apiInstance = new TasksApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the sql query belongs to + SQLParameters sql = new SQLParameters(); // SQLParameters | sql being submitted + String acceptEncoding = "acceptEncoding_example"; // String | Encoding to use + try { + List> result = apiInstance.runSQL(workspace, teamspace, sql, acceptEncoding); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling TasksApi#runSQL"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -69,17 +68,17 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **workspace** | **String**| the workspace containing the teamspace the array belongs to | | -| **teamspace** | **String**| the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the sql query belongs to | | | **sql** | [**SQLParameters**](SQLParameters.md)| sql being submitted | | | **acceptEncoding** | **String**| Encoding to use | [optional] | ### Return type -**List<Object>** +[**List<Map<String, Object>>**](Map.md) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -94,7 +93,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **taskIdGet** > ArrayTask taskIdGet(id) @@ -103,45 +102,44 @@ public class Example { Fetch an array task ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.TasksApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - TasksApi apiInstance = new TasksApi(defaultClient); - String id = "id_example"; // String | task ID to fetch - try { - ArrayTask result = apiInstance.taskIdGet(id); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling TasksApi#taskIdGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + TasksApi apiInstance = new TasksApi(defaultClient); + String id = "id_example"; // String | task ID to fetch + try { + ArrayTask result = apiInstance.taskIdGet(id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling TasksApi#taskIdGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -157,7 +155,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -171,7 +169,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **taskIdResultGet** > String taskIdResultGet(id, acceptEncoding) @@ -180,46 +178,45 @@ public class Example { Retrieve results of an array task ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.TasksApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - TasksApi apiInstance = new TasksApi(defaultClient); - String id = "id_example"; // String | task ID to retrieve stored results - String acceptEncoding = "acceptEncoding_example"; // String | Encoding to use - try { - String result = apiInstance.taskIdResultGet(id, acceptEncoding); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling TasksApi#taskIdResultGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + TasksApi apiInstance = new TasksApi(defaultClient); + String id = "id_example"; // String | task ID to retrieve stored results + String acceptEncoding = "acceptEncoding_example"; // String | Encoding to use + try { + String result = apiInstance.taskIdResultGet(id, acceptEncoding); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling TasksApi#taskIdResultGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -236,7 +233,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -252,7 +249,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **tasksGet** > ArrayTaskData tasksGet(namespace, createdBy, array, start, end, page, perPage, type, excludeType, fileType, excludeFileType, status, search, orderby) @@ -261,58 +258,57 @@ public class Example { Fetch a list of all array tasks a user has access to ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.TasksApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - TasksApi apiInstance = new TasksApi(defaultClient); - String namespace = "namespace_example"; // String | namespace to filter - String createdBy = "createdBy_example"; // String | username to filter - String array = "array_example"; // String | name/uri of array that is url-encoded to filter - Integer start = 56; // Integer | start time for tasks to filter by - Integer end = 56; // Integer | end time for tasks to filter by - Integer page = 56; // Integer | pagination offset - Integer perPage = 56; // Integer | pagination limit - String type = "type_example"; // String | task type, \"QUERY\", \"SQL\", \"UDF\", \"GENERIC_UDF\" - List excludeType = Arrays.asList(); // List | task_type to exclude matching array in results, more than one can be included - List fileType = Arrays.asList(); // List | match file_type of task array, more than one can be included - List excludeFileType = Arrays.asList(); // List | exclude file_type of task arrays, more than one can be included - String status = "status_example"; // String | Filter to only return these statuses - String search = "search_example"; // String | search string that will look at name, namespace or description fields - String orderby = "orderby_example"; // String | sort by which field valid values include start_time, name - try { - ArrayTaskData result = apiInstance.tasksGet(namespace, createdBy, array, start, end, page, perPage, type, excludeType, fileType, excludeFileType, status, search, orderby); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling TasksApi#tasksGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + TasksApi apiInstance = new TasksApi(defaultClient); + String namespace = "namespace_example"; // String | namespace to filter + String createdBy = "createdBy_example"; // String | username to filter + String array = "array_example"; // String | name/uri of array that is url-encoded to filter + Integer start = 56; // Integer | start time for tasks to filter by + Integer end = 56; // Integer | end time for tasks to filter by + Integer page = 56; // Integer | pagination offset + Integer perPage = 56; // Integer | pagination limit + String type = "type_example"; // String | task type, \"QUERY\", \"SQL\", \"UDF\", \"GENERIC_UDF\" + List excludeType = Arrays.asList(); // List | task_type to exclude matching array in results, more than one can be included + List fileType = Arrays.asList(); // List | match file_type of task array, more than one can be included + List excludeFileType = Arrays.asList(); // List | exclude file_type of task arrays, more than one can be included + String status = "status_example"; // String | Filter to only return these statuses + String search = "search_example"; // String | search string that will look at name, namespace or description fields + String orderby = "orderby_example"; // String | sort by which field valid values include start_time, name + try { + ArrayTaskData result = apiInstance.tasksGet(namespace, createdBy, array, start, end, page, perPage, type, excludeType, fileType, excludeFileType, status, search, orderby); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling TasksApi#tasksGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -341,7 +337,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers diff --git a/docs/UdfApi.md b/docs/UdfApi.md index c6da072..32f3893 100644 --- a/docs/UdfApi.md +++ b/docs/UdfApi.md @@ -17,7 +17,7 @@ All URIs are relative to */v1* | [**updateUDFInfo**](UdfApi.md#updateUDFInfo) | **PATCH** /udf/{workspace}/{name} | | - + # **deleteUDFInfo** > deleteUDFInfo(workspace, name) @@ -26,45 +26,44 @@ All URIs are relative to */v1* delete a registered UDF -- this will remove all sharing and can not be undone ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.UdfApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UdfApi apiInstance = new UdfApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String name = "name_example"; // String | name to register UDF under - try { - apiInstance.deleteUDFInfo(workspace, name); - } catch (ApiException e) { - System.err.println("Exception when calling UdfApi#deleteUDFInfo"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + UdfApi apiInstance = new UdfApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String name = "name_example"; // String | name to register UDF under + try { + apiInstance.deleteUDFInfo(workspace, name); + } catch (ApiException e) { + System.err.println("Exception when calling UdfApi#deleteUDFInfo"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -81,7 +80,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -95,7 +94,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getUDFInfo** > UDFInfo getUDFInfo(workspace, name) @@ -104,46 +103,45 @@ null (empty response body) get a specific UDF in the given namespace ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.UdfApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UdfApi apiInstance = new UdfApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String name = "name_example"; // String | name to register UDF under - try { - UDFInfo result = apiInstance.getUDFInfo(workspace, name); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling UdfApi#getUDFInfo"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + UdfApi apiInstance = new UdfApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String name = "name_example"; // String | name to register UDF under + try { + UDFInfo result = apiInstance.getUDFInfo(workspace, name); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling UdfApi#getUDFInfo"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -160,7 +158,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -175,7 +173,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getUDFInfoSharingPolicies** > List<UDFSharing> getUDFInfoSharingPolicies(workspace, name) @@ -184,46 +182,45 @@ public class Example { Get all sharing details of the UDF ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.UdfApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UdfApi apiInstance = new UdfApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String name = "name_example"; // String | name of UDFInfo - try { - List result = apiInstance.getUDFInfoSharingPolicies(workspace, name); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling UdfApi#getUDFInfoSharingPolicies"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + UdfApi apiInstance = new UdfApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String name = "name_example"; // String | name of UDFInfo + try { + List result = apiInstance.getUDFInfoSharingPolicies(workspace, name); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling UdfApi#getUDFInfoSharingPolicies"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -240,7 +237,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -255,7 +252,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **handleCopyUDF** > UDFCopied handleCopyUDF(workspace, name, udFCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp) @@ -264,49 +261,48 @@ public class Example { Copy a tiledb udf at the specified location ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.UdfApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UdfApi apiInstance = new UdfApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String name = "name_example"; // String | name of UDFInfo - UDFCopy udFCopy = new UDFCopy(); // UDFCopy | Input/Output information to copy a UDF - String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME = "X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME_example"; // String | Optional registered access credentials to use for creation - Integer endTimestamp = 56; // Integer | Milliseconds since Unix epoch - try { - UDFCopied result = apiInstance.handleCopyUDF(workspace, name, udFCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling UdfApi#handleCopyUDF"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + UdfApi apiInstance = new UdfApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String name = "name_example"; // String | name of UDFInfo + UDFCopy udFCopy = new UDFCopy(); // UDFCopy | Input/Output information to copy a UDF + String X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME = "X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME_example"; // String | Optional registered access credentials to use for creation + Integer endTimestamp = 56; // Integer | Milliseconds since Unix epoch + try { + UDFCopied result = apiInstance.handleCopyUDF(workspace, name, udFCopy, X_TILEDB_CLOUD_ACCESS_CREDENTIALS_NAME, endTimestamp); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling UdfApi#handleCopyUDF"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -326,7 +322,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -340,7 +336,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **registerUDFInfo** > registerUDFInfo(workspace, name, udf) @@ -349,46 +345,45 @@ public class Example { register a UDF in the given namespace ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.UdfApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UdfApi apiInstance = new UdfApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String name = "name_example"; // String | name to register UDF under - UDFInfoUpdate udf = new UDFInfoUpdate(); // UDFInfoUpdate | UDF to register - try { - apiInstance.registerUDFInfo(workspace, name, udf); - } catch (ApiException e) { - System.err.println("Exception when calling UdfApi#registerUDFInfo"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + UdfApi apiInstance = new UdfApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String name = "name_example"; // String | name to register UDF under + UDFInfoUpdate udf = new UDFInfoUpdate(); // UDFInfoUpdate | UDF to register + try { + apiInstance.registerUDFInfo(workspace, name, udf); + } catch (ApiException e) { + System.err.println("Exception when calling UdfApi#registerUDFInfo"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -406,7 +401,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -420,7 +415,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **shareUDFInfo** > shareUDFInfo(workspace, name, udfSharing) @@ -429,46 +424,45 @@ null (empty response body) Share a UDF with a user ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.UdfApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UdfApi apiInstance = new UdfApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String name = "name_example"; // String | name of UDFInfo - UDFSharing udfSharing = new UDFSharing(); // UDFSharing | Namespace and list of permissions to share with. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the UDF will not be shared with the namespace at all. - try { - apiInstance.shareUDFInfo(workspace, name, udfSharing); - } catch (ApiException e) { - System.err.println("Exception when calling UdfApi#shareUDFInfo"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + UdfApi apiInstance = new UdfApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String name = "name_example"; // String | name of UDFInfo + UDFSharing udfSharing = new UDFSharing(); // UDFSharing | Namespace and list of permissions to share with. An empty list of permissions will remove the namespace; if permissions already exist they will be deleted then new ones added. In the event of a failure, the new policies will be rolled back to prevent partial policies, and it's likely the UDF will not be shared with the namespace at all. + try { + apiInstance.shareUDFInfo(workspace, name, udfSharing); + } catch (ApiException e) { + System.err.println("Exception when calling UdfApi#shareUDFInfo"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -486,7 +480,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -501,7 +495,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **submitGenericUDF** > File submitGenericUDF(workspace, udf, acceptEncoding) @@ -510,47 +504,46 @@ null (empty response body) submit a generic UDF in the given namespace ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.UdfApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UdfApi apiInstance = new UdfApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - GenericUDF udf = new GenericUDF(); // GenericUDF | UDF to run - String acceptEncoding = "acceptEncoding_example"; // String | Encoding to use - try { - File result = apiInstance.submitGenericUDF(workspace, udf, acceptEncoding); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling UdfApi#submitGenericUDF"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + UdfApi apiInstance = new UdfApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + GenericUDF udf = new GenericUDF(); // GenericUDF | UDF to run + String acceptEncoding = "acceptEncoding_example"; // String | Encoding to use + try { + File result = apiInstance.submitGenericUDF(workspace, udf, acceptEncoding); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling UdfApi#submitGenericUDF"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -568,7 +561,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -582,7 +575,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request | - + # **submitMultiArrayUDF** > File submitMultiArrayUDF(workspace, udf, acceptEncoding) @@ -591,47 +584,46 @@ public class Example { submit a multi-array UDF in the given namespace ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.UdfApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UdfApi apiInstance = new UdfApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - MultiArrayUDF udf = new MultiArrayUDF(); // MultiArrayUDF | UDF to run - String acceptEncoding = "acceptEncoding_example"; // String | Encoding to use - try { - File result = apiInstance.submitMultiArrayUDF(workspace, udf, acceptEncoding); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling UdfApi#submitMultiArrayUDF"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + UdfApi apiInstance = new UdfApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + MultiArrayUDF udf = new MultiArrayUDF(); // MultiArrayUDF | UDF to run + String acceptEncoding = "acceptEncoding_example"; // String | Encoding to use + try { + File result = apiInstance.submitMultiArrayUDF(workspace, udf, acceptEncoding); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling UdfApi#submitMultiArrayUDF"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -649,7 +641,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -663,7 +655,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request | - + # **submitUDF** > File submitUDF(workspace, teamspace, array, udf, xPayer, acceptEncoding, v2) @@ -672,51 +664,50 @@ public class Example { send a UDF to run against a specified array/URI registered to a group/project ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.UdfApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UdfApi apiInstance = new UdfApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String array = "array_example"; // String | name/uri of array that is url-encoded - MultiArrayUDF udf = new MultiArrayUDF(); // MultiArrayUDF | UDF to run - String xPayer = "xPayer_example"; // String | Name of organization or user who should be charged for this request - String acceptEncoding = "acceptEncoding_example"; // String | Encoding to use - String v2 = "v2_example"; // String | flag to indicate if v2 array UDFs should be used, currently in beta testing. Setting any value will enable v2 array UDFs. - try { - File result = apiInstance.submitUDF(workspace, teamspace, array, udf, xPayer, acceptEncoding, v2); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling UdfApi#submitUDF"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + UdfApi apiInstance = new UdfApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the array belongs to + String array = "array_example"; // String | name/uri of array that is url-encoded + MultiArrayUDF udf = new MultiArrayUDF(); // MultiArrayUDF | UDF to run + String xPayer = "xPayer_example"; // String | Name of organization or user who should be charged for this request + String acceptEncoding = "acceptEncoding_example"; // String | Encoding to use + String v2 = "v2_example"; // String | flag to indicate if v2 array UDFs should be used, currently in beta testing. Setting any value will enable v2 array UDFs. + try { + File result = apiInstance.submitUDF(workspace, teamspace, array, udf, xPayer, acceptEncoding, v2); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling UdfApi#submitUDF"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -738,7 +729,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -752,7 +743,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request | - + # **udfWorkspaceArrayEndTimestampsGet** > ArrayEndTimestampData udfWorkspaceArrayEndTimestampsGet(workspace, array, page, perPage) @@ -761,48 +752,47 @@ public class Example { retrieve a list of timestamps from the array fragment info listing in milliseconds, paginated ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.UdfApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UdfApi apiInstance = new UdfApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String array = "array_example"; // String | name/uri of array that is url-encoded - Integer page = 56; // Integer | pagination offset - Integer perPage = 56; // Integer | pagination limit - try { - ArrayEndTimestampData result = apiInstance.udfWorkspaceArrayEndTimestampsGet(workspace, array, page, perPage); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling UdfApi#udfWorkspaceArrayEndTimestampsGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + UdfApi apiInstance = new UdfApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String array = "array_example"; // String | name/uri of array that is url-encoded + Integer page = 56; // Integer | pagination offset + Integer perPage = 56; // Integer | pagination limit + try { + ArrayEndTimestampData result = apiInstance.udfWorkspaceArrayEndTimestampsGet(workspace, array, page, perPage); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling UdfApi#udfWorkspaceArrayEndTimestampsGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -821,7 +811,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -835,7 +825,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **updateUDFInfo** > updateUDFInfo(workspace, name, udf) @@ -844,46 +834,45 @@ public class Example { update an existing registered UDF in the given namespace ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.UdfApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UdfApi apiInstance = new UdfApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String name = "name_example"; // String | name to register UDF under - UDFInfoUpdate udf = new UDFInfoUpdate(); // UDFInfoUpdate | UDF to update - try { - apiInstance.updateUDFInfo(workspace, name, udf); - } catch (ApiException e) { - System.err.println("Exception when calling UdfApi#updateUDFInfo"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + UdfApi apiInstance = new UdfApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String name = "name_example"; // String | name to register UDF under + UDFInfoUpdate udf = new UDFInfoUpdate(); // UDFInfoUpdate | UDF to update + try { + apiInstance.updateUDFInfo(workspace, name, udf); + } catch (ApiException e) { + System.err.println("Exception when calling UdfApi#updateUDFInfo"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -901,7 +890,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers diff --git a/docs/UserApi.md b/docs/UserApi.md index 7586113..898b5c7 100644 --- a/docs/UserApi.md +++ b/docs/UserApi.md @@ -28,7 +28,7 @@ All URIs are relative to */v1* | [**updateUserInOrganization**](UserApi.md#updateUserInOrganization) | **PATCH** /organizations/{organization}/{username} | | - + # **addAWSAccessCredentials** > addAWSAccessCredentials(workspace, teamspace, awsAccessCredentials) @@ -37,46 +37,45 @@ All URIs are relative to */v1* Add aws keys ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UserApi apiInstance = new UserApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - AWSAccessCredentials awsAccessCredentials = new AWSAccessCredentials(); // AWSAccessCredentials | aws access credentials to store for a namespace - try { - apiInstance.addAWSAccessCredentials(workspace, teamspace, awsAccessCredentials); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#addAWSAccessCredentials"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + UserApi apiInstance = new UserApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the credentials belongs to + AWSAccessCredentials awsAccessCredentials = new AWSAccessCredentials(); // AWSAccessCredentials | aws access credentials to store for a namespace + try { + apiInstance.addAWSAccessCredentials(workspace, teamspace, awsAccessCredentials); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#addAWSAccessCredentials"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -85,7 +84,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **workspace** | **String**| the workspace containing the teamspace the array belongs to | | -| **teamspace** | **String**| the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the credentials belongs to | | | **awsAccessCredentials** | [**AWSAccessCredentials**](AWSAccessCredentials.md)| aws access credentials to store for a namespace | | ### Return type @@ -94,7 +93,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -108,7 +107,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **addUserToOrganization** > addUserToOrganization(organization, user) @@ -117,45 +116,44 @@ null (empty response body) add a user to an organization ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UserApi apiInstance = new UserApi(defaultClient); - String organization = "organization_example"; // String | organization name - OrganizationUser user = new OrganizationUser(); // OrganizationUser | user to add - try { - apiInstance.addUserToOrganization(organization, user); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#addUserToOrganization"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + UserApi apiInstance = new UserApi(defaultClient); + String organization = "organization_example"; // String | organization name + OrganizationUser user = new OrganizationUser(); // OrganizationUser | user to add + try { + apiInstance.addUserToOrganization(organization, user); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#addUserToOrganization"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -172,7 +170,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -186,7 +184,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **checkAWSAccessCredentials** > List<AWSAccessCredentials> checkAWSAccessCredentials(workspace, teamspace) @@ -195,46 +193,45 @@ null (empty response body) Check if aws keys are set ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UserApi apiInstance = new UserApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - try { - List result = apiInstance.checkAWSAccessCredentials(workspace, teamspace); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#checkAWSAccessCredentials"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + UserApi apiInstance = new UserApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the credentials belongs to + try { + List result = apiInstance.checkAWSAccessCredentials(workspace, teamspace); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#checkAWSAccessCredentials"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -243,7 +240,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **workspace** | **String**| the workspace containing the teamspace the array belongs to | | -| **teamspace** | **String**| the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the credentials belongs to | | ### Return type @@ -251,7 +248,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -265,7 +262,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **checkAWSAccessCredentialsByName** > AWSAccessCredentials checkAWSAccessCredentialsByName(workspace, teamspace, name) @@ -274,47 +271,46 @@ public class Example { Check if aws keys are set by name ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UserApi apiInstance = new UserApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String name = "name_example"; // String | name - try { - AWSAccessCredentials result = apiInstance.checkAWSAccessCredentialsByName(workspace, teamspace, name); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#checkAWSAccessCredentialsByName"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + UserApi apiInstance = new UserApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the credentials belongs to + String name = "name_example"; // String | name + try { + AWSAccessCredentials result = apiInstance.checkAWSAccessCredentialsByName(workspace, teamspace, name); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#checkAWSAccessCredentialsByName"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -323,7 +319,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **workspace** | **String**| the workspace containing the teamspace the array belongs to | | -| **teamspace** | **String**| the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the credentials belongs to | | | **name** | **String**| name | | ### Return type @@ -332,7 +328,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -346,7 +342,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **confirmEmail** > confirmEmail() @@ -355,43 +351,42 @@ public class Example { confirm user email ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UserApi apiInstance = new UserApi(defaultClient); - try { - apiInstance.confirmEmail(); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#confirmEmail"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + UserApi apiInstance = new UserApi(defaultClient); + try { + apiInstance.confirmEmail(); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#confirmEmail"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -404,7 +399,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -418,7 +413,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **createUser** > createUser(user) @@ -427,44 +422,31 @@ null (empty response body) create a user ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UserApi apiInstance = new UserApi(defaultClient); - User user = new User(); // User | user to create - try { - apiInstance.createUser(user); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#createUser"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + UserApi apiInstance = new UserApi(defaultClient); + User user = new User(); // User | user to create + try { + apiInstance.createUser(user); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#createUser"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -480,7 +462,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +No authorization required ### HTTP request headers @@ -494,7 +476,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **deleteAWSAccessCredentials** > deleteAWSAccessCredentials(workspace, teamspace, name) @@ -503,46 +485,45 @@ null (empty response body) delete a AWS Access credentials in a namespace. This will likely cause arrays to become unreachable ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UserApi apiInstance = new UserApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String name = "name_example"; // String | name - try { - apiInstance.deleteAWSAccessCredentials(workspace, teamspace, name); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#deleteAWSAccessCredentials"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + UserApi apiInstance = new UserApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the credentials belongs to + String name = "name_example"; // String | name + try { + apiInstance.deleteAWSAccessCredentials(workspace, teamspace, name); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#deleteAWSAccessCredentials"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -551,7 +532,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **workspace** | **String**| the workspace containing the teamspace the array belongs to | | -| **teamspace** | **String**| the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the credentials belongs to | | | **name** | **String**| name | | ### Return type @@ -560,7 +541,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -574,7 +555,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **deleteUser** > deleteUser(username) @@ -583,44 +564,43 @@ null (empty response body) delete a user ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UserApi apiInstance = new UserApi(defaultClient); - String username = "username_example"; // String | username or ID - try { - apiInstance.deleteUser(username); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#deleteUser"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + UserApi apiInstance = new UserApi(defaultClient); + String username = "username_example"; // String | username or ID + try { + apiInstance.deleteUser(username); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#deleteUser"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -636,7 +616,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -650,7 +630,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **deleteUserFromOrganization** > deleteUserFromOrganization(organization, username) @@ -659,45 +639,44 @@ null (empty response body) delete a user from an organization ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UserApi apiInstance = new UserApi(defaultClient); - String organization = "organization_example"; // String | organization name - String username = "username_example"; // String | username to manipulate - try { - apiInstance.deleteUserFromOrganization(organization, username); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#deleteUserFromOrganization"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + UserApi apiInstance = new UserApi(defaultClient); + String organization = "organization_example"; // String | organization name + String username = "username_example"; // String | username to manipulate + try { + apiInstance.deleteUserFromOrganization(organization, username); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#deleteUserFromOrganization"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -714,7 +693,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -728,7 +707,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getOrganizationUser** > OrganizationUser getOrganizationUser(organization, username) @@ -737,46 +716,45 @@ null (empty response body) get a user from an organization ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UserApi apiInstance = new UserApi(defaultClient); - String organization = "organization_example"; // String | organization name - String username = "username_example"; // String | username to manipulate - try { - OrganizationUser result = apiInstance.getOrganizationUser(organization, username); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#getOrganizationUser"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + UserApi apiInstance = new UserApi(defaultClient); + String organization = "organization_example"; // String | organization name + String username = "username_example"; // String | username to manipulate + try { + OrganizationUser result = apiInstance.getOrganizationUser(organization, username); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#getOrganizationUser"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -793,7 +771,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -808,7 +786,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getSession** > Token getSession(rememberMe, expires) @@ -817,46 +795,45 @@ public class Example { Get session token for user ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UserApi apiInstance = new UserApi(defaultClient); - String rememberMe = "rememberMe_example"; // String | flag to create a token with expiration of 30 days, default is false - OffsetDateTime expires = OffsetDateTime.now(); // OffsetDateTime | Expiration date for token, if empty token defaults to 30 minutes - try { - Token result = apiInstance.getSession(rememberMe, expires); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#getSession"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + UserApi apiInstance = new UserApi(defaultClient); + String rememberMe = "rememberMe_example"; // String | flag to create a token with expiration of 30 days, default is false + OffsetDateTime expires = OffsetDateTime.now(); // OffsetDateTime | Expiration date for token, if empty token defaults to 30 minutes + try { + Token result = apiInstance.getSession(rememberMe, expires); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#getSession"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -873,7 +850,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -887,7 +864,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getTokenScopes** > List<TokenScope> getTokenScopes() @@ -896,44 +873,43 @@ public class Example { retrieves available token scopes for a user ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UserApi apiInstance = new UserApi(defaultClient); - try { - List result = apiInstance.getTokenScopes(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#getTokenScopes"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + UserApi apiInstance = new UserApi(defaultClient); + try { + List result = apiInstance.getTokenScopes(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#getTokenScopes"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -946,7 +922,7 @@ This endpoint does not need any parameter. ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -960,7 +936,7 @@ This endpoint does not need any parameter. | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getUser** > User getUser() @@ -969,44 +945,43 @@ This endpoint does not need any parameter. get a user ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UserApi apiInstance = new UserApi(defaultClient); - try { - User result = apiInstance.getUser(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#getUser"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + UserApi apiInstance = new UserApi(defaultClient); + try { + User result = apiInstance.getUser(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#getUser"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1019,7 +994,7 @@ This endpoint does not need any parameter. ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1033,7 +1008,7 @@ This endpoint does not need any parameter. | **502** | Bad Gateway | - | | **0** | error response | - | - + # **getUserWithUsername** > User getUserWithUsername(username) @@ -1042,45 +1017,44 @@ This endpoint does not need any parameter. get a user ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UserApi apiInstance = new UserApi(defaultClient); - String username = "username_example"; // String | username or ID - try { - User result = apiInstance.getUserWithUsername(username); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#getUserWithUsername"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + UserApi apiInstance = new UserApi(defaultClient); + String username = "username_example"; // String | username or ID + try { + User result = apiInstance.getUserWithUsername(username); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#getUserWithUsername"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1096,7 +1070,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1111,7 +1085,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **requestToken** > Token requestToken(tokenRequest) @@ -1120,45 +1094,44 @@ public class Example { Request an authorization token, optionally taken a TokenRequest object to set parameters on the token ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UserApi apiInstance = new UserApi(defaultClient); - TokenRequest tokenRequest = new TokenRequest(); // TokenRequest | token request object - try { - Token result = apiInstance.requestToken(tokenRequest); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#requestToken"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + UserApi apiInstance = new UserApi(defaultClient); + TokenRequest tokenRequest = new TokenRequest(); // TokenRequest | token request object + try { + Token result = apiInstance.requestToken(tokenRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#requestToken"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1174,7 +1147,7 @@ public class Example { ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1188,7 +1161,7 @@ public class Example { | **502** | Bad Gateway | - | | **0** | error response | - | - + # **resetUserPassword** > resetUserPassword(user) @@ -1197,44 +1170,43 @@ public class Example { reset user password ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UserApi apiInstance = new UserApi(defaultClient); - ResetUserPasswordRequest user = new ResetUserPasswordRequest(); // ResetUserPasswordRequest | password to update for user requesting update - try { - apiInstance.resetUserPassword(user); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#resetUserPassword"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + UserApi apiInstance = new UserApi(defaultClient); + ResetUserPasswordRequest user = new ResetUserPasswordRequest(); // ResetUserPasswordRequest | password to update for user requesting update + try { + apiInstance.resetUserPassword(user); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#resetUserPassword"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1250,7 +1222,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1265,7 +1237,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **revokeToken** > revokeToken(token) @@ -1274,44 +1246,43 @@ null (empty response body) revoke an authorization token ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UserApi apiInstance = new UserApi(defaultClient); - String token = "token_example"; // String | token name or token itself - try { - apiInstance.revokeToken(token); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#revokeToken"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + UserApi apiInstance = new UserApi(defaultClient); + String token = "token_example"; // String | token name or token itself + try { + apiInstance.revokeToken(token); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#revokeToken"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1327,7 +1298,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1341,7 +1312,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **tokensGet** > List<Token> tokensGet() @@ -1350,44 +1321,43 @@ null (empty response body) Fetch a list of user tokens ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UserApi apiInstance = new UserApi(defaultClient); - try { - List result = apiInstance.tokensGet(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#tokensGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + UserApi apiInstance = new UserApi(defaultClient); + try { + List result = apiInstance.tokensGet(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#tokensGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1400,7 +1370,7 @@ This endpoint does not need any parameter. ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1414,7 +1384,7 @@ This endpoint does not need any parameter. | **502** | Bad Gateway | - | | **0** | error response | - | - + # **tokensSessionGet** > List<Token> tokensSessionGet() @@ -1423,44 +1393,43 @@ This endpoint does not need any parameter. Fetch a list of user session tokens ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UserApi apiInstance = new UserApi(defaultClient); - try { - List result = apiInstance.tokensSessionGet(); - System.out.println(result); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#tokensSessionGet"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + UserApi apiInstance = new UserApi(defaultClient); + try { + List result = apiInstance.tokensSessionGet(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#tokensSessionGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1473,7 +1442,7 @@ This endpoint does not need any parameter. ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1487,7 +1456,7 @@ This endpoint does not need any parameter. | **502** | Bad Gateway | - | | **0** | error response | - | - + # **updateAWSAccessCredentials** > updateAWSAccessCredentials(workspace, teamspace, name, awsAccessCredentials) @@ -1496,47 +1465,46 @@ This endpoint does not need any parameter. Update aws keys or associated buckets. This will update the key associations for each array in the namespace ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UserApi apiInstance = new UserApi(defaultClient); - String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to - String teamspace = "teamspace_example"; // String | the teamspace the array belongs to - String name = "name_example"; // String | name - AWSAccessCredentials awsAccessCredentials = new AWSAccessCredentials(); // AWSAccessCredentials | aws credentials to update - try { - apiInstance.updateAWSAccessCredentials(workspace, teamspace, name, awsAccessCredentials); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#updateAWSAccessCredentials"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + UserApi apiInstance = new UserApi(defaultClient); + String workspace = "workspace_example"; // String | the workspace containing the teamspace the array belongs to + String teamspace = "teamspace_example"; // String | the teamspace the credentials belongs to + String name = "name_example"; // String | name + AWSAccessCredentials awsAccessCredentials = new AWSAccessCredentials(); // AWSAccessCredentials | aws credentials to update + try { + apiInstance.updateAWSAccessCredentials(workspace, teamspace, name, awsAccessCredentials); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#updateAWSAccessCredentials"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1545,7 +1513,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **workspace** | **String**| the workspace containing the teamspace the array belongs to | | -| **teamspace** | **String**| the teamspace the array belongs to | | +| **teamspace** | **String**| the teamspace the credentials belongs to | | | **name** | **String**| name | | | **awsAccessCredentials** | [**AWSAccessCredentials**](AWSAccessCredentials.md)| aws credentials to update | | @@ -1555,7 +1523,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1569,7 +1537,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **updateUser** > updateUser(username, user) @@ -1578,45 +1546,44 @@ null (empty response body) update a user ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UserApi apiInstance = new UserApi(defaultClient); - String username = "username_example"; // String | username or ID - User user = new User(); // User | user details to update - try { - apiInstance.updateUser(username, user); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#updateUser"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + UserApi apiInstance = new UserApi(defaultClient); + String username = "username_example"; // String | username or ID + User user = new User(); // User | user details to update + try { + apiInstance.updateUser(username, user); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#updateUser"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1633,7 +1600,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers @@ -1647,7 +1614,7 @@ null (empty response body) | **502** | Bad Gateway | - | | **0** | error response | - | - + # **updateUserInOrganization** > updateUserInOrganization(organization, username, user) @@ -1656,46 +1623,45 @@ null (empty response body) update a user in an organization ### Example - ```java // Import classes: - import io.tiledb.cloud.rest_api.ApiClient; import io.tiledb.cloud.rest_api.ApiException; import io.tiledb.cloud.rest_api.Configuration; -import io.tiledb.cloud.models.*; +import io.tiledb.cloud.rest_api.auth.*; +import io.tiledb.cloud.rest_api.models.*; import io.tiledb.cloud.rest_api.api.UserApi; public class Example { - public static void main(String[] args) { - ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/v1"); - - // Configure API key authorization: ApiKeyAuth - ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); - ApiKeyAuth.setApiKey("YOUR API KEY"); - // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) - //ApiKeyAuth.setApiKeyPrefix("Token"); - - // Configure HTTP basic authorization: BasicAuth - HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); - BasicAuth.setUsername("YOUR USERNAME"); - BasicAuth.setPassword("YOUR PASSWORD"); - - UserApi apiInstance = new UserApi(defaultClient); - String organization = "organization_example"; // String | organization name - String username = "username_example"; // String | username to manipulate - OrganizationUser user = new OrganizationUser(); // OrganizationUser | user details to update - try { - apiInstance.updateUserInOrganization(organization, username, user); - } catch (ApiException e) { - System.err.println("Exception when calling UserApi#updateUserInOrganization"); - System.err.println("Status code: " + e.getCode()); - System.err.println("Reason: " + e.getResponseBody()); - System.err.println("Response headers: " + e.getResponseHeaders()); - e.printStackTrace(); - } + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("/v1"); + + // Configure HTTP basic authorization: BasicAuth + HttpBasicAuth BasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth"); + BasicAuth.setUsername("YOUR USERNAME"); + BasicAuth.setPassword("YOUR PASSWORD"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + UserApi apiInstance = new UserApi(defaultClient); + String organization = "organization_example"; // String | organization name + String username = "username_example"; // String | username to manipulate + OrganizationUser user = new OrganizationUser(); // OrganizationUser | user details to update + try { + apiInstance.updateUserInOrganization(organization, username, user); + } catch (ApiException e) { + System.err.println("Exception when calling UserApi#updateUserInOrganization"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); } + } } ``` @@ -1713,7 +1679,7 @@ null (empty response body) ### Authorization -[ApiKeyAuth](../README.md#ApiKeyAuth), [BasicAuth](../README.md#BasicAuth) +[BasicAuth](../README.md#BasicAuth), [ApiKeyAuth](../README.md#ApiKeyAuth) ### HTTP request headers diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar index 7454180..e644113 100644 Binary files a/gradle/wrapper/gradle-wrapper.jar and b/gradle/wrapper/gradle-wrapper.jar differ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index ffed3a2..9623276 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,7 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists distributionUrl=https\://services.gradle.org/distributions/gradle-7.2-bin.zip +networkTimeout=10000 +validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists diff --git a/gradlew b/gradlew index 005bcde..9d0ce63 100755 --- a/gradlew +++ b/gradlew @@ -55,7 +55,7 @@ # Darwin, MinGW, and NonStop. # # (3) This script is generated from the Groovy template -# https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt +# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt # within the Gradle project. # # You can find Gradle at https://github.com/gradle/gradle/. @@ -69,37 +69,35 @@ app_path=$0 # Need this for daisy-chained symlinks. while - APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path - [ -h "$app_path" ] +APP_HOME=${app_path%"${app_path##*/}"} # leaves a trailing /; empty if no leading path +[ -h "$app_path" ] do - ls=$( ls -ld "$app_path" ) - link=${ls#*' -> '} - case $link in #( - /*) app_path=$link ;; #( - *) app_path=$APP_HOME$link ;; - esac +ls=$( ls -ld "$app_path" ) +link=${ls#*' -> '} +case $link in #( +/*) app_path=$link ;; #( +*) app_path=$APP_HOME$link ;; +esac done -APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit - -APP_NAME="Gradle" +# This is normally unused +# shellcheck disable=SC2034 APP_BASE_NAME=${0##*/} - -# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -DEFAULT_JVM_OPTS='-Dfile.encoding=UTF-8 "-Xmx64m" "-Xms64m"' +# Discard cd standard output in case $CDPATH is set (https://github.com/gradle/gradle/issues/25036) +APP_HOME=$( cd "${APP_HOME:-./}" > /dev/null && pwd -P ) || exit # Use the maximum available, or set MAX_FD != -1 to use that value. MAX_FD=maximum warn () { - echo "$*" +echo "$*" } >&2 die () { - echo - echo "$*" - echo - exit 1 +echo +echo "$*" +echo +exit 1 } >&2 # OS specific support (must be 'true' or 'false'). @@ -108,10 +106,10 @@ msys=false darwin=false nonstop=false case "$( uname )" in #( - CYGWIN* ) cygwin=true ;; #( - Darwin* ) darwin=true ;; #( - MSYS* | MINGW* ) msys=true ;; #( - NONSTOP* ) nonstop=true ;; +CYGWIN* ) cygwin=true ;; #( +Darwin* ) darwin=true ;; #( +MSYS* | MINGW* ) msys=true ;; #( +NONSTOP* ) nonstop=true ;; esac CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar @@ -119,39 +117,46 @@ CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar # Determine the Java command to use to start the JVM. if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD=$JAVA_HOME/jre/sh/java - else - JAVACMD=$JAVA_HOME/bin/java - fi - if [ ! -x "$JAVACMD" ] ; then - die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME +if [ -x "$JAVA_HOME/jre/sh/java" ] ; then +# IBM's JDK on AIX uses strange locations for the executables +JAVACMD=$JAVA_HOME/jre/sh/java +else +JAVACMD=$JAVA_HOME/bin/java +fi +if [ ! -x "$JAVACMD" ] ; then +die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME Please set the JAVA_HOME variable in your environment to match the location of your Java installation." - fi +fi else - JAVACMD=java - which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +JAVACMD=java +if ! command -v java >/dev/null 2>&1 +then +die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. Please set the JAVA_HOME variable in your environment to match the location of your Java installation." fi +fi # Increase the maximum file descriptors if we can. if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then - case $MAX_FD in #( - max*) - MAX_FD=$( ulimit -H -n ) || - warn "Could not query maximum file descriptor limit" - esac - case $MAX_FD in #( - '' | soft) :;; #( - *) - ulimit -n "$MAX_FD" || - warn "Could not set maximum file descriptor limit to $MAX_FD" - esac +case $MAX_FD in #( +max*) +# In POSIX sh, ulimit -H is undefined. That's why the result is checked to see if it worked. +# shellcheck disable=SC2039,SC3045 +MAX_FD=$( ulimit -H -n ) || +warn "Could not query maximum file descriptor limit" +esac +case $MAX_FD in #( +'' | soft) :;; #( +*) +# In POSIX sh, ulimit -n is undefined. That's why the result is checked to see if it worked. +# shellcheck disable=SC2039,SC3045 +ulimit -n "$MAX_FD" || +warn "Could not set maximum file descriptor limit to $MAX_FD" +esac fi # Collect all arguments for the java command, stacking in reverse order: @@ -164,46 +169,56 @@ fi # For Cygwin or MSYS, switch paths to Windows format before running java if "$cygwin" || "$msys" ; then - APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) - CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) - - JAVACMD=$( cygpath --unix "$JAVACMD" ) - - # Now convert the arguments - kludge to limit ourselves to /bin/sh - for arg do - if - case $arg in #( - -*) false ;; # don't mess with options #( - /?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath - [ -e "$t" ] ;; #( - *) false ;; - esac - then - arg=$( cygpath --path --ignore --mixed "$arg" ) - fi - # Roll the args list around exactly as many times as the number of - # args, so each arg winds up back in the position where it started, but - # possibly modified. - # - # NB: a `for` loop captures its iteration list before it begins, so - # changing the positional parameters here affects neither the number of - # iterations, nor the values presented in `arg`. - shift # remove old arg - set -- "$@" "$arg" # push replacement arg - done +APP_HOME=$( cygpath --path --mixed "$APP_HOME" ) +CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" ) + +JAVACMD=$( cygpath --unix "$JAVACMD" ) + +# Now convert the arguments - kludge to limit ourselves to /bin/sh +for arg do +if +case $arg in #( +-*) false ;; # don't mess with options #( +/?*) t=${arg#/} t=/${t%%/*} # looks like a POSIX filepath +[ -e "$t" ] ;; #( +*) false ;; +esac +then +arg=$( cygpath --path --ignore --mixed "$arg" ) +fi +# Roll the args list around exactly as many times as the number of +# args, so each arg winds up back in the position where it started, but +# possibly modified. +# +# NB: a `for` loop captures its iteration list before it begins, so +# changing the positional parameters here affects neither the number of +# iterations, nor the values presented in `arg`. +shift # remove old arg +set -- "$@" "$arg" # push replacement arg +done fi -# Collect all arguments for the java command; -# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of -# shell script including quotes and variable substitutions, so put them in -# double quotes to make sure that they get re-expanded; and -# * put everything else in single quotes, so that it's not re-expanded. + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Collect all arguments for the java command: +# * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments, +# and any embedded shellness will be escaped. +# * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be +# treated as '${Hostname}' itself on the command line. set -- \ - "-Dorg.gradle.appname=$APP_BASE_NAME" \ - -classpath "$CLASSPATH" \ - org.gradle.wrapper.GradleWrapperMain \ - "$@" +"-Dorg.gradle.appname=$APP_BASE_NAME" \ +-classpath "$CLASSPATH" \ +org.gradle.wrapper.GradleWrapperMain \ +"$@" + +# Stop when "xargs" is not available. +if ! command -v xargs >/dev/null 2>&1 +then +die "xargs is not available" +fi # Use "xargs" to parse quoted args. # @@ -225,10 +240,10 @@ set -- \ # eval "set -- $( - printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | - xargs -n1 | - sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | - tr '\n' ' ' - )" '"$@"' +printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" | +xargs -n1 | +sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' | +tr '\n' ' ' +)" '"$@"' exec "$JAVACMD" "$@" diff --git a/gradlew.bat b/gradlew.bat index 6a68175..25da30d 100644 --- a/gradlew.bat +++ b/gradlew.bat @@ -14,7 +14,7 @@ @rem limitations under the License. @rem -@if "%DEBUG%" == "" @echo off +@if "%DEBUG%"=="" @echo off @rem ########################################################################## @rem @rem Gradle startup script for Windows @@ -25,7 +25,8 @@ if "%OS%"=="Windows_NT" setlocal set DIRNAME=%~dp0 -if "%DIRNAME%" == "" set DIRNAME=. +if "%DIRNAME%"=="" set DIRNAME=. +@rem This is normally unused set APP_BASE_NAME=%~n0 set APP_HOME=%DIRNAME% @@ -33,20 +34,20 @@ set APP_HOME=%DIRNAME% for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -set DEFAULT_JVM_OPTS=-Dfile.encoding=UTF-8 "-Xmx64m" "-Xms64m" +set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" @rem Find java.exe if defined JAVA_HOME goto findJavaFromJavaHome set JAVA_EXE=java.exe %JAVA_EXE% -version >NUL 2>&1 -if "%ERRORLEVEL%" == "0" goto execute +if %ERRORLEVEL% equ 0 goto execute -echo. -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. +echo. 1>&2 +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 goto fail @@ -56,11 +57,11 @@ set JAVA_EXE=%JAVA_HOME%/bin/java.exe if exist "%JAVA_EXE%" goto execute -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. +echo. 1>&2 +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% 1>&2 +echo. 1>&2 +echo Please set the JAVA_HOME variable in your environment to match the 1>&2 +echo location of your Java installation. 1>&2 goto fail @@ -75,13 +76,15 @@ set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar :end @rem End local scope for the variables with windows NT shell -if "%ERRORLEVEL%"=="0" goto mainEnd +if %ERRORLEVEL% equ 0 goto mainEnd :fail rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of rem the _cmd.exe /c_ return code! -if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 -exit /b 1 +set EXIT_CODE=%ERRORLEVEL% +if %EXIT_CODE% equ 0 set EXIT_CODE=1 +if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE% +exit /b %EXIT_CODE% :mainEnd if "%OS%"=="Windows_NT" endlocal diff --git a/openapi-v1.yaml b/openapi-v1.yaml index f5db8cc..d431c99 100644 --- a/openapi-v1.yaml +++ b/openapi-v1.yaml @@ -5612,7 +5612,7 @@ paths: required: true - name: array in: path - description: name/uri of array that is url-encoded + description: asset id or path of array that is url-encoded type: string required: true post: @@ -6772,7 +6772,7 @@ paths: required: true - name: teamspace in: path - description: the teamspace the array belongs to + description: the teamspace the credentials belongs to type: string required: true get: @@ -6826,7 +6826,7 @@ paths: required: true - name: teamspace in: path - description: the teamspace the array belongs to + description: the teamspace the credentials belongs to type: string required: true - name: name @@ -7593,7 +7593,7 @@ paths: required: true - name: teamspace in: path - description: the teamspace the array belongs to + description: the teamspace the sql query belongs to type: string required: true - name: Accept-Encoding diff --git a/openapitools.json b/openapitools.json new file mode 100644 index 0000000..f227cf2 --- /dev/null +++ b/openapitools.json @@ -0,0 +1,7 @@ +{ + "$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json", + "spaces": 2, + "generator-cli": { + "version": "7.7.0" + } +} diff --git a/regen.sh b/regen.sh new file mode 100755 index 0000000..90edf6c --- /dev/null +++ b/regen.sh @@ -0,0 +1,23 @@ +#!/usr/bin/env bash + +set -ex + +# Regenerate client code +openapi-generator-cli generate -i openapi-v1.yaml -g java -c config.yaml + +# Add all src files +git add src/{main,test}/java +# Add any other existing Git-tracked files (e.g. `.openapi-generator/FILES`) +git add -u . +# openapi-generator-cli tries to bump our Gradle version +git checkout HEAD -- gradle/wrapper/gradle-wrapper.properties + +# Apply custom code / patches +git cherry-pick -n patch + +# Commit changes +if git diff --quiet HEAD; then + echo "Nothing to commit" +else + git commit -m '`regen.sh`' +fi diff --git a/src/main/AndroidManifest.xml b/src/main/AndroidManifest.xml new file mode 100644 index 0000000..5648d96 --- /dev/null +++ b/src/main/AndroidManifest.xml @@ -0,0 +1,3 @@ + + + diff --git a/src/main/java/io/tiledb/cloud/CustomCode.txt b/src/main/java/io/tiledb/cloud/CustomCode.txt index bb670c0..cff7227 100644 --- a/src/main/java/io/tiledb/cloud/CustomCode.txt +++ b/src/main/java/io/tiledb/cloud/CustomCode.txt @@ -18,8 +18,8 @@ SqlApi.java 0 error response - */ -public ApiResponse runSQLWithHttpInfoBytes(String namespace, SQLParameters sql, String acceptEncoding) throws ApiException { - okhttp3.Call localVarCall = runSQLValidateBeforeCall(namespace, sql, acceptEncoding, null); +public ApiResponse runSQLWithHttpInfoBytes(String workspace, String namespace, SQLParameters sql, String acceptEncoding) throws ApiException { + okhttp3.Call localVarCall = runSQLValidateBeforeCall(workspace, namespace, sql, acceptEncoding, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -40,8 +40,8 @@ public ApiResponse runSQLWithHttpInfoBytes(String namespace, SQLParamete 0 error response - */ -public byte[] runSQLBytes(String namespace, SQLParameters sql, String acceptEncoding) throws ApiException { - ApiResponse localVarResp = runSQLWithHttpInfoBytes(namespace, sql, acceptEncoding); +public byte[] runSQLBytes(String workspace, String namespace, SQLParameters sql, String acceptEncoding) throws ApiException { + ApiResponse localVarResp = runSQLWithHttpInfoBytes(workspace, namespace, sql, acceptEncoding); return localVarResp.getData(); } @@ -49,208 +49,208 @@ public byte[] runSQLBytes(String namespace, SQLParameters sql, String acceptEnco UdfApi.java /** -* -* submit a generic UDF in the given namespace -* @param namespace namespace array is in (an organization name or user's username) (required) -* @param udf UDF to run (required) -* @param acceptEncoding Encoding to use (optional) -* @return ApiResponse<String> -* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body -* @http.response.details + * + * submit a generic UDF in the given namespace + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param udf UDF to run (required) + * @param acceptEncoding Encoding to use (optional) + * @return ApiResponse<String> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details Status Code Description Response Headers 200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request 0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request -*/ + */ public ApiResponse submitGenericUDFWithHttpInfoString(String namespace, GenericUDF udf, String acceptEncoding) throws ApiException { - okhttp3.Call localVarCall = submitGenericUDFValidateBeforeCall(namespace, udf, acceptEncoding, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + okhttp3.Call localVarCall = submitGenericUDFValidateBeforeCall(namespace, udf, acceptEncoding, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** -* -* submit a generic UDF in the given namespace -* @param namespace namespace array is in (an organization name or user's username) (required) -* @param udf UDF to run (required) -* @param acceptEncoding Encoding to use (optional) -* @return String -* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body -* @http.response.details + * + * submit a generic UDF in the given namespace + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param udf UDF to run (required) + * @param acceptEncoding Encoding to use (optional) + * @return String + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details Status Code Description Response Headers 200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request 0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request -*/ + */ public String submitGenericUDFString(String namespace, GenericUDF udf, String acceptEncoding) throws ApiException { - ApiResponse localVarResp = submitGenericUDFWithHttpInfoString(namespace, udf, acceptEncoding); - return localVarResp.getData(); + ApiResponse localVarResp = submitGenericUDFWithHttpInfoString(namespace, udf, acceptEncoding); + return localVarResp.getData(); } /** -* -* submit a generic UDF in the given namespace -* @param namespace namespace array is in (an organization name or user's username) (required) -* @param udf UDF to run (required) -* @param acceptEncoding Encoding to use (optional) -* @return byte[] -* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body -* @http.response.details + * + * submit a generic UDF in the given namespace + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param udf UDF to run (required) + * @param acceptEncoding Encoding to use (optional) + * @return byte[] + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details Status Code Description Response Headers 200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request 0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request -*/ + */ public byte[] submitGenericUDFBytes(String namespace, GenericUDF udf, String acceptEncoding) throws ApiException { - ApiResponse localVarResp = submitGenericUDFWithHttpInfoBytes(namespace, udf, acceptEncoding); - return localVarResp.getData(); + ApiResponse localVarResp = submitGenericUDFWithHttpInfoBytes(namespace, udf, acceptEncoding); + return localVarResp.getData(); } /** -* -* submit a generic UDF in the given namespace -* @param namespace namespace array is in (an organization name or user's username) (required) -* @param udf UDF to run (required) -* @param acceptEncoding Encoding to use (optional) -* @return ApiResponse<byte[]> -* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body -* @http.response.details + * + * submit a generic UDF in the given namespace + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param udf UDF to run (required) + * @param acceptEncoding Encoding to use (optional) + * @return ApiResponse<byte[]> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details Status Code Description Response Headers 200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request 0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request -*/ + */ public ApiResponse submitGenericUDFWithHttpInfoBytes(String namespace, GenericUDF udf, String acceptEncoding) throws ApiException { - okhttp3.Call localVarCall = submitGenericUDFValidateBeforeCall(namespace, udf, acceptEncoding, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + okhttp3.Call localVarCall = submitGenericUDFValidateBeforeCall(namespace, udf, acceptEncoding, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** -* -* submit a generic UDF in the given namespace -* @param namespace namespace array is in (an organization name or user's username) (required) -* @param udf UDF to run (required) -* @param acceptEncoding Encoding to use (optional) -* @return Object -* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body -* @http.response.details + * + * submit a generic UDF in the given namespace + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param udf UDF to run (required) + * @param acceptEncoding Encoding to use (optional) + * @return Object + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details Status Code Description Response Headers 200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request 0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request -*/ + */ public Object submitGenericUDFObj(String namespace, GenericUDF udf, String acceptEncoding) throws ApiException { - ApiResponse localVarResp = submitGenericUDFWithHttpInfoObj(namespace, udf, acceptEncoding); - return localVarResp.getData(); + ApiResponse localVarResp = submitGenericUDFWithHttpInfoObj(namespace, udf, acceptEncoding); + return localVarResp.getData(); } /** -* -* submit a generic UDF in the given namespace -* @param namespace namespace array is in (an organization name or user's username) (required) -* @param udf UDF to run (required) -* @param acceptEncoding Encoding to use (optional) -* @return ApiResponse<Object> -* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body -* @http.response.details + * + * submit a generic UDF in the given namespace + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param udf UDF to run (required) + * @param acceptEncoding Encoding to use (optional) + * @return ApiResponse<Object> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details Status Code Description Response Headers 200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request 0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request -*/ + */ public ApiResponse submitGenericUDFWithHttpInfoObj(String namespace, GenericUDF udf, String acceptEncoding) throws ApiException { - okhttp3.Call localVarCall = submitGenericUDFValidateBeforeCall(namespace, udf, acceptEncoding, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + okhttp3.Call localVarCall = submitGenericUDFValidateBeforeCall(namespace, udf, acceptEncoding, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** -* -* submit a multi-array UDF in the given namespace -* @param namespace namespace array is in (an organization name or user's username) (required) -* @param udf UDF to run (required) -* @param acceptEncoding Encoding to use (optional) -* @return String -* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body -* @http.response.details + * + * submit a multi-array UDF in the given namespace + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param udf UDF to run (required) + * @param acceptEncoding Encoding to use (optional) + * @return String + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details Status Code Description Response Headers 200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request 0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request -*/ + */ public String submitMultiArrayUDFString(String namespace, MultiArrayUDF udf, String acceptEncoding) throws ApiException { - ApiResponse localVarResp = submitMultiArrayUDFWithHttpInfoString(namespace, udf, acceptEncoding); - return localVarResp.getData(); + ApiResponse localVarResp = submitMultiArrayUDFWithHttpInfoString(namespace, udf, acceptEncoding); + return localVarResp.getData(); } /** -* -* submit a multi-array UDF in the given namespace -* @param namespace namespace array is in (an organization name or user's username) (required) -* @param udf UDF to run (required) -* @param acceptEncoding Encoding to use (optional) -* @return ApiResponse<String> -* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body -* @http.response.details + * + * submit a multi-array UDF in the given namespace + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param udf UDF to run (required) + * @param acceptEncoding Encoding to use (optional) + * @return ApiResponse<String> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details Status Code Description Response Headers 200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request 0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request -*/ + */ public ApiResponse submitMultiArrayUDFWithHttpInfoString(String namespace, MultiArrayUDF udf, String acceptEncoding) throws ApiException { - okhttp3.Call localVarCall = submitMultiArrayUDFValidateBeforeCall(namespace, udf, acceptEncoding, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + okhttp3.Call localVarCall = submitMultiArrayUDFValidateBeforeCall(namespace, udf, acceptEncoding, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** -* -* submit a multi-array UDF in the given namespace -* @param namespace namespace array is in (an organization name or user's username) (required) -* @param udf UDF to run (required) -* @param acceptEncoding Encoding to use (optional) -* @return byte[] -* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body -* @http.response.details + * + * submit a multi-array UDF in the given namespace + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param udf UDF to run (required) + * @param acceptEncoding Encoding to use (optional) + * @return byte[] + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details Status Code Description Response Headers 200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request 0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request -*/ + */ public byte[] submitMultiArrayUDFBytes(String namespace, MultiArrayUDF udf, String acceptEncoding) throws ApiException { - ApiResponse localVarResp = submitMultiArrayUDFWithHttpInfoBytes(namespace, udf, acceptEncoding); - return localVarResp.getData(); + ApiResponse localVarResp = submitMultiArrayUDFWithHttpInfoBytes(namespace, udf, acceptEncoding); + return localVarResp.getData(); } /** -* -* submit a multi-array UDF in the given namespace -* @param namespace namespace array is in (an organization name or user's username) (required) -* @param udf UDF to run (required) -* @param acceptEncoding Encoding to use (optional) -* @return ApiResponse<byte[]> -* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body -* @http.response.details + * + * submit a multi-array UDF in the given namespace + * @param namespace namespace array is in (an organization name or user's username) (required) + * @param udf UDF to run (required) + * @param acceptEncoding Encoding to use (optional) + * @return ApiResponse<byte[]> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details Status Code Description Response Headers 200 UDF completed and the UDF-type specific result is returned * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request 0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request -*/ + */ public ApiResponse submitMultiArrayUDFWithHttpInfoBytes(String namespace, MultiArrayUDF udf, String acceptEncoding) throws ApiException { - okhttp3.Call localVarCall = submitMultiArrayUDFValidateBeforeCall(namespace, udf, acceptEncoding, null); - Type localVarReturnType = new TypeToken(){}.getType(); - return localVarApiClient.execute(localVarCall, localVarReturnType); + okhttp3.Call localVarCall = submitMultiArrayUDFValidateBeforeCall(namespace, udf, acceptEncoding, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); } /** @@ -271,8 +271,8 @@ public ApiResponse submitMultiArrayUDFWithHttpInfoBytes(String namespace 0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request */ -public String submitUDFString(String namespace, String array, MultiArrayUDF udf, String xPayer, String acceptEncoding, String v2) throws ApiException { - ApiResponse localVarResp = submitUDFWithHttpInfoString(namespace, array, udf, xPayer, acceptEncoding, v2); +public String submitUDFString(String workspace, String namespace, String array, MultiArrayUDF udf, String xPayer, String acceptEncoding, String v2) throws ApiException { + ApiResponse localVarResp = submitUDFWithHttpInfoString(workspace, namespace, array, udf, xPayer, acceptEncoding, v2); return localVarResp.getData(); } @@ -294,8 +294,8 @@ public String submitUDFString(String namespace, String array, MultiArrayUDF udf, 0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request */ -public ApiResponse submitUDFWithHttpInfoString(String namespace, String array, MultiArrayUDF udf, String xPayer, String acceptEncoding, String v2) throws ApiException { - okhttp3.Call localVarCall = submitUDFValidateBeforeCall(namespace, array, udf, xPayer, acceptEncoding, v2, null); +public ApiResponse submitUDFWithHttpInfoString(String workspace, String namespace, String array, MultiArrayUDF udf, String xPayer, String acceptEncoding, String v2) throws ApiException { + okhttp3.Call localVarCall = submitUDFValidateBeforeCall(workspace, namespace, array, udf, xPayer, acceptEncoding, v2, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -318,8 +318,8 @@ public ApiResponse submitUDFWithHttpInfoString(String namespace, String 0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request */ -public byte[] submitUDFBytes(String namespace, String array, MultiArrayUDF udf, String xPayer, String acceptEncoding, String v2) throws ApiException { - ApiResponse localVarResp = submitUDFWithHttpInfoBytes(namespace, array, udf, xPayer, acceptEncoding, v2); +public byte[] submitUDFBytes(String workspace, String namespace, String array, MultiArrayUDF udf, String xPayer, String acceptEncoding, String v2) throws ApiException { + ApiResponse localVarResp = submitUDFWithHttpInfoBytes(workspace, namespace, array, udf, xPayer, acceptEncoding, v2); return localVarResp.getData(); } @@ -341,8 +341,8 @@ public byte[] submitUDFBytes(String namespace, String array, MultiArrayUDF udf, 0 error response * X-TILEDB-CLOUD-TASK-ID - Task ID for just completed request */ -public ApiResponse submitUDFWithHttpInfoBytes(String namespace, String array, MultiArrayUDF udf, String xPayer, String acceptEncoding, String v2) throws ApiException { - okhttp3.Call localVarCall = submitUDFValidateBeforeCall(namespace, array, udf, xPayer, acceptEncoding, v2, null); +public ApiResponse submitUDFWithHttpInfoBytes(String workspace, String namespace, String array, MultiArrayUDF udf, String xPayer, String acceptEncoding, String v2) throws ApiException { + okhttp3.Call localVarCall = submitUDFValidateBeforeCall(workspace, namespace, array, udf, xPayer, acceptEncoding, v2, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); -} \ No newline at end of file +} diff --git a/src/main/java/io/tiledb/cloud/rest_api/ApiClient.java b/src/main/java/io/tiledb/cloud/rest_api/ApiClient.java index f11a2bd..59e35be 100644 --- a/src/main/java/io/tiledb/cloud/rest_api/ApiClient.java +++ b/src/main/java/io/tiledb/cloud/rest_api/ApiClient.java @@ -22,6 +22,7 @@ import okio.BufferedSink; import okio.Okio; import org.apache.oltu.oauth2.client.request.OAuthClientRequest.TokenRequestBuilder; +import org.apache.oltu.oauth2.common.message.types.GrantType; import javax.net.ssl.*; import java.io.File; @@ -48,11 +49,13 @@ import java.util.*; import java.util.Map.Entry; import java.util.concurrent.TimeUnit; +import java.util.function.Supplier; import java.util.regex.Matcher; import java.util.regex.Pattern; import io.tiledb.cloud.rest_api.auth.Authentication; import io.tiledb.cloud.rest_api.auth.HttpBasicAuth; +import io.tiledb.cloud.rest_api.auth.HttpBearerAuth; import io.tiledb.cloud.rest_api.auth.ApiKeyAuth; import io.tiledb.cloud.rest_api.auth.OAuth; import io.tiledb.cloud.rest_api.auth.RetryingOAuth; @@ -64,6 +67,15 @@ public class ApiClient { private String basePath = "/v1"; + protected List servers = new ArrayList(Arrays.asList( + new ServerConfiguration( + "/v1", + "No description provided", + new HashMap() + ) + )); + protected Integer serverIndex = 0; + protected Map serverVariables = null; private boolean debugging = false; private Map defaultHeaderMap = new HashMap(); private Map defaultCookieMap = new HashMap(); @@ -93,8 +105,8 @@ public ApiClient() { initHttpClient(); // Setup authentications (key: authentication name, value: authentication). - authentications.put("ApiKeyAuth", new ApiKeyAuth("header", "X-TILEDB-REST-API-KEY")); authentications.put("BasicAuth", new HttpBasicAuth()); + authentications.put("ApiKeyAuth", new ApiKeyAuth("header", "X-TILEDB-REST-API-KEY")); authentications.put("OAuth2", new OAuth()); // Prevent the authentications from being modified. authentications = Collections.unmodifiableMap(authentications); @@ -111,8 +123,8 @@ public ApiClient(OkHttpClient client) { httpClient = client; // Setup authentications (key: authentication name, value: authentication). - authentications.put("ApiKeyAuth", new ApiKeyAuth("header", "X-TILEDB-REST-API-KEY")); authentications.put("BasicAuth", new HttpBasicAuth()); + authentications.put("ApiKeyAuth", new ApiKeyAuth("header", "X-TILEDB-REST-API-KEY")); authentications.put("OAuth2", new OAuth()); // Prevent the authentications from being modified. authentications = Collections.unmodifiableMap(authentications); @@ -179,8 +191,8 @@ public ApiClient(String basePath, String clientId, String clientSecret, MapsingletonList(retryingOAuth)); // Setup authentications (key: authentication name, value: authentication). - authentications.put("ApiKeyAuth", new ApiKeyAuth("header", "X-TILEDB-REST-API-KEY")); authentications.put("BasicAuth", new HttpBasicAuth()); + authentications.put("ApiKeyAuth", new ApiKeyAuth("header", "X-TILEDB-REST-API-KEY")); // Prevent the authentications from being modified. authentications = Collections.unmodifiableMap(authentications); @@ -228,6 +240,34 @@ public String getBasePath() { */ public ApiClient setBasePath(String basePath) { this.basePath = basePath; + this.serverIndex = null; + return this; + } + + public List